mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-06 16:09:58 +00:00
Generating from browser works with controlnet. Generating via API wasn't. This is because from_dict() was making 'image' and 'mask_image' a dictionary. In 'controlnet.py' function 'get_input_data' this would cause the following check to throw exception because used to be an incorrect type: elif (unit_image < 5).all() and (unit_image_fg > 5).any(): Now, they are never a dictionary and check is fine