Closed speaknowpotato closed 8 months ago
When developing the extension I meet some problems with img2img, as the format of image from A1111 is wield:
Error: Cannot convert <ImagingCore object at 0x000002AAEA7B6B30> to JSON compatile format.
Error: Cannot convert b'\x00\x00\x0cHLino\x02\x10\x00\x00mntrRGB XYZ \x07\xce\x00\x02\x00\t\x00\x06\x001\x00\x00acspMSFT\x00\x00\x00\x00IEC sRGB\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf6\xd6\x00\x01\x00\x00\x00\x00\xd3-HP \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
For single img2img init_image, there is a ImagingCore object and a piece of byte data. That's how things are passed to ScriptRunner
.
Vlad previously suggested replacing all actual images with [base64image goes here]
placeholders, as later you probably want to specify other inputs in the payload. WDYT?
first, thanks @huchenlei so much for this extension. it is super useful!
It works great in txt2img api, but when i copy the json file in img2img tab,
init_images
is a list of dict instead of base64 formatted data.According to the test script in Auto's webui repo https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/master/test/test_img2img.py#L20, it is something like,
Thanks!