Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

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

Closed
rafalePOP opened this issue Apr 4, 2023 · 2 comments
Closed

Comments

@rafalePOP
Copy link

rafalePOP commented Apr 4, 2023

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
Copy link
Owner

When loading another image you should select none for annotators.

@rafalePOP
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants