stable-diffusion-webui-forge
stable-diffusion-webui-forge copied to clipboard
Fix for controlnet(integrated)'s api
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:
- [x] I have read contributing wiki page
- [x] I have performed a self-review of my own code
- [x] My code follows the style guidelines
- [ ] My code passes tests