-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: controlnet is enabled but no input image is given #17
Comments
Error log looks like as below. *** Error running process: /home/lxj/Documents/code/ScenarioTool/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py |
When I use another json params to test sd-webui --nowebui, error happened again.
The json params like this. |
It seems that controlnet batch_images dir not work.
My api payload looked like as follow:
{
"alwayson_scripts": {
"API payload": {
"args": []
},
"Comments": {
"args": []
},
"ControlNet": {
"args": [
{
"advanced_weighting": null,
"batch_images": "/home/lxj/Documents/code/ScenarioTool/stable-diffusion-webui/images-prac",
"control_mode": "Balanced",
"enabled": true,
"guidance_end": 1,
"guidance_start": 0,
"hr_option": "Both",
"image": null,
"inpaint_crop_input_image": false,
"input_mode": "batch",
"is_ui": true,
"loopback": false,
"low_vram": false,
"model": "control_v11p_sd15_lineart [43d4be0d]",
"module": "lineart_realistic",
"output_dir": "",
"pixel_perfect": true,
"processor_res": 512,
"resize_mode": "Crop and Resize",
"save_detected_map": true,
"threshold_a": -1,
"threshold_b": -1,
"weight": 1.1
},
{
"advanced_weighting": null,
"batch_images": "/home/lxj/Documents/code/ScenarioTool/stable-diffusion-webui/images-prac",
"control_mode": "Balanced",
"enabled": true,
"guidance_end": 1,
"guidance_start": 0,
"hr_option": "Both",
"image": null,
"inpaint_crop_input_image": false,
"input_mode": "batch",
"is_ui": true,
"loopback": false,
"low_vram": false,
"model": "control_v11p_sd15_seg [e1f51eb9]",
"module": "seg_ofade20k",
"output_dir": "",
"pixel_perfect": true,
"processor_res": 512,
"resize_mode": "Crop and Resize",
"save_detected_map": true,
"threshold_a": -1,
"threshold_b": -1,
"weight": 1
},
{
"advanced_weighting": null,
"batch_images": "",
"control_mode": "Balanced",
"enabled": false,
"guidance_end": 1,
"guidance_start": 0,
"hr_option": "Both",
"image": null,
"inpaint_crop_input_image": false,
"input_mode": "simple",
"is_ui": true,
"loopback": false,
"low_vram": false,
"model": "None",
"module": "none",
"output_dir": "",
"pixel_perfect": false,
"processor_res": -1,
"resize_mode": "Crop and Resize",
"save_detected_map": true,
"threshold_a": -1,
"threshold_b": -1,
"weight": 1
}
]
},
"Extra options": {
"args": []
},
"Hypertile": {
"args": []
},
"Refiner": {
"args": [
false,
"",
0.8
]
},
"Seed": {
"args": [
1739178872,
false,
-1,
0,
0,
0
]
},
"Segment Anything": {
"args": [
false,
false,
0,
null,
[],
0,
false,
[],
[],
false,
0,
1,
false,
false,
0,
null,
[],
-2,
false,
[],
false,
0,
null,
null
]
},
"Tiled Diffusion": {
"args": [
false,
"MultiDiffusion",
false,
true,
1024,
1024,
96,
96,
48,
4,
"None",
2,
false,
10,
1,
1,
64,
false,
false,
false,
false,
false,
0.4,
0.4,
0.2,
0.2,
"",
"",
"Background",
0.2,
-1.0,
false,
0.4,
0.4,
0.2,
0.2,
"",
"",
"Background",
0.2,
-1.0,
false,
0.4,
0.4,
0.2,
0.2,
"",
"",
"Background",
0.2,
-1.0,
false,
0.4,
0.4,
0.2,
0.2,
"",
"",
"Background",
0.2,
-1.0,
false,
0.4,
0.4,
0.2,
0.2,
"",
"",
"Background",
0.2,
-1.0,
false,
0.4,
0.4,
0.2,
0.2,
"",
"",
"Background",
0.2,
-1.0,
false,
0.4,
0.4,
0.2,
0.2,
"",
"",
"Background",
0.2,
-1.0,
false,
0.4,
0.4,
0.2,
0.2,
"",
"",
"Background",
0.2,
-1.0
]
},
"Tiled VAE": {
"args": [
false,
3072,
192,
true,
true,
true,
false
]
},
"demofusion": {
"args": [
false,
"DemoFusion",
false,
128,
64,
4,
2,
false,
10,
1,
1,
64,
false,
true,
3,
1,
1,
true,
0.85,
0.6,
4,
false
]
}
},
"batch_size": 1,
"cfg_scale": 7,
"comments": {},
"denoising_strength": 0.7,
"disable_extra_networks": false,
"do_not_save_grid": true,
"do_not_save_samples": false,
"enable_hr": true,
"height": 540,
"hr_negative_prompt": "(text:1.2), sun, wired_shapes_cars, overhead_view, distortion_shapes, bad_anatomy, error, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry,(drawing:1.1), (painting:1.1), virtual",
"hr_prompt": "cars driving on the road, (rainy:1.2), tree, detailed_cars break sky break people break street break road_sign break white_lanes break traffic_light, random scenery, (highly detailed), (high fidelity), masterpiece, best quality, realistic, high quality",
"hr_resize_x": 0,
"hr_resize_y": 0,
"hr_scale": 2,
"hr_second_pass_steps": 0,
"hr_upscaler": "ESRGAN_4x",
"n_iter": 1,
"negative_prompt": "(text:1.2), sun, wired_shapes_cars, overhead_view, distortion_shapes, bad_anatomy, error, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry,(drawing:1.1), (painting:1.1), virtual",
"override_settings": {},
"override_settings_restore_afterwards": true,
"prompt": "cars driving on the road, (rainy:1.2), tree, detailed_cars break sky break people break street break road_sign break white_lanes break traffic_light, random scenery, (highly detailed), (high fidelity), masterpiece, best quality, realistic, high quality",
"restore_faces": false,
"s_churn": 0.0,
"s_min_uncond": 0.0,
"s_noise": 1.0,
"s_tmax": null,
"s_tmin": 0.0,
"sampler_name": "DPM++ 2M Karras",
"script_args": [],
"script_name": null,
"seed": 1739178872,
"seed_enable_extras": true,
"seed_resize_from_h": -1,
"seed_resize_from_w": -1,
"steps": 20,
"styles": [],
"subseed": 2841292808,
"subseed_strength": 0,
"tiling": false,
"width": 960
}
The text was updated successfully, but these errors were encountered: