sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

Support batch workflow for image processing

Open ebceu4 opened this issue 2 years ago • 1 comments

Currently, the image processing only allows for processing a single image at a time with ControlNet, trying to use batch tab but getting AttributeError: 'numpy.ndarray' object has no attribute 'save'

File "/workspace/stable-diffusion-webui/modules/call_queue.py", line 56, in f res = list(func(*args, **kwargs)) File "/workspace/stable-diffusion-webui/modules/call_queue.py", line 37, in f res = func(*args, **kwargs) File "/workspace/stable-diffusion-webui/modules/img2img.py", line 163, in img2img process_batch(p, img2img_batch_input_dir, img2img_batch_output_dir, img2img_batch_inpaint_mask_dir, args) File "/workspace/stable-diffusion-webui/modules/img2img.py", line 76, in process_batch processed_image.save(os.path.join(output_dir, filename)) AttributeError: 'numpy.ndarray' object has no attribute 'save'

ebceu4 avatar Feb 17 '23 06:02 ebceu4

See https://github.com/Mikubill/sd-webui-controlnet/discussions/111

In settings tab, tick the "Do not append map to output" checkbox.

Should fix the issue. See also #126, #46, #123, #119

ljleb avatar Feb 17 '23 06:02 ljleb