Using WebAPI img2img w/ multiple ControlNet units #13622
-
I've searched the discussions trying to find examples of using multiple ControlNet units with img2img and the WebAPI but i'm not seeing anything specific enough to provide clarity with my situation. I am able to get txt2img to work fine but I'm getting a HTTP 500 Error when sending the following payload. Does this seem correct? Many thanks! 🙏
|
Beta Was this translation helpful? Give feedback.
Answered by
BobFrederick
Oct 14, 2023
Replies: 1 comment
-
I solved this issue and the payload request above was correctly structured however how I was encoding the images to base64 was specific to my application... I had to use:
instead of:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BobFrederick
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved this issue and the payload request above was correctly structured however how I was encoding the images to base64 was specific to my application...
I had to use:
encoded_inital_img2img = base64.b64encode(open(image_filepath, 'rb').read()).decode('utf-8')
instead of:
encoded_inital_img2img = base64.b64encode(image_filepath).decode('utf-8')