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

Fix for controlnet(integrated)'s api

Open papuSpartan opened this issue 2 years ago • 0 comments

Description

Currently, sending an api request to controlnet integrated may result in issues. This is due to the base64 encoded images being accidentally left in base64 format. A check fails here because unit.image (and later unit.mask_image also) are always of type dict. The original comparison looks to be checking if contents are type str to infer if they are encoded. In practice, this fails without checking the image key for each which should actually contain the b64 image string.

May resolve: #439, #259, papuSpartan/stable-diffusion-webui-distributed#25

Checklist:

papuSpartan avatar Mar 10 '24 09:03 papuSpartan