Skip to content

Using WebAPI img2img w/ multiple ControlNet units #13622

Closed Answered by BobFrederick
BobFrederick asked this question in Q&A
Discussion options

You must be logged in to vote

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')

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BobFrederick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant