How can I do image-to-image batched inference with FLUX.2 Klein, with one-to-one input image-prompt pairing? #13431
Unanswered
joshchristo
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I implemented something similar to the code below, but it appears that the model treats all provided images as shared context. As a result, each prompt is paired with all passed images (e.g., prompt_a is processed with image_a, image_b, and image_c).
What I am trying to achieve instead is batched inference with one-to-one pairing, so each prompt is processed only with its corresponding image (e.g., prompt_a with image_a, prompt_b with image_b, etc.).
What is the correct way to structure the inputs or batching logic to ensure this one-to-one mapping?
I would greatly appreciate any help with this. Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions