Sending multiple images as input to img2img api #10974
Anchaliya75
started this conversation in
Optimization
Replies: 3 comments
-
Doesn't sound like that's possible. If you're trying to do a bunch of separate images, you can loop through them: images = [
#put your images here
]
for i in images:
payload = {
"prompt": "cat",
"init_images": [i],
}
response = requests.post(url='http://127.0.0.1:7860/sdapi/v1/img2img', json=payload) If you're trying to send an inpainting mask, use the payload = {
"prompt": "cat",
"init_images": [
"string"
],
mask: "string",
} If you're trying to send images to controlnet, see here. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Probably concatenate the images and send them as one image. |
Beta Was this translation helpful? Give feedback.
0 replies
-
any other solution nowadays? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way where we can send multiple images as an input with just one api call I tried passing 2 images in the array (init images) but It is showing error expected one or less images but got 2images
Beta Was this translation helpful? Give feedback.
All reactions