OedoSoldier / sd-webui-image-sequence-toolkit

Extension for AUTOMATIC111's WebUI
Apache License 2.0
564 stars 41 forks source link

AssertionError when using "Use another image as ControlNet input" #24

Closed rafalePOP closed 1 year ago

rafalePOP commented 1 year ago

When using multi-frame rendering and attempting to read in a depth map using another image as ControlNet input, the following error occurs Is this an error on the controlnet side?

Error running process: D:\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py Traceback (most recent call last): File "D:\stable-diffusion-webui\modules\scripts.py", line 417, in process script.process(p, *script_args) File "D:\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 687, in process input_image = HWC3(np.asarray(p_input_image).astype(np.uint8)) File "D:\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\util.py", line 6, in HWC3 assert x.dtype == np.uint8 AssertionError

OedoSoldier commented 1 year ago

When loading another image you should select none for annotators.

rafalePOP commented 1 year ago

If I'm not mistaken, I think the annotator can be omitted. After this, select multi-frame rendering in the script and check "Use another image as ControlNet input", and specify the directory for only the depth map. Sorry if the text is incorrect as it is translated by deepl. Desktop Screenshot 2023 04 06 - 01 52 02 17