stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

bugfix: controlnet works in API - image no longer a dictionary

Open IgorAherne opened this issue 6 months ago • 0 comments

Generating from browser works with controlnet. Generating via API didn't. Because from_dict() was making 'image' and 'mask_image' a dictionary.

In 'controlnet.py' the function 'get_input_data' this would cause exception, because unit.image was of incorrect type:

elif (unit_image < 5).all() and (unit_image_fg > 5).any():

Now, they are never a dictionary and check is fine. Both browser and api work with controlnet

IgorAherne avatar Aug 22 '24 23:08 IgorAherne