-
Couldn't load subscription status.
- Fork 6.4k
[FLUX] add Img2Img pipeline #9070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@shauray8 could you also show us examples? |
|
Hey @sayakpaul @deforum, here I'm just trying out things, in theory img2img should work i guess with FLUX family of models, so as soon as I get somewhere I'll post some results. |
|
I have built a "working" pipeline, however the results are poor/different than what I would expect. I am unsure if it is related to difference in guidance etc.. https://github.com/deforum-studio/flux/blob/main/flux_pipeline.py |
|
i think there is an issue with the noise schedule, what would make this model need more strength? |
|
Probably because it's a distilled model (I'm using dev), I saw people with the same issue and also I see the same results with ComfyUI. I just did a quick test because I need it for diff-diff so I didn't dig that much into since I'm more interested in how it works with inpainting and because img2img is already taken by @shauray8 and this PR. |
|
@shauray8 we would like to ship the img2img pipeline soon (preferably next week) because of its demand. Would it be possible for you to provide your commit address so that we can honor your contributions by adding you as a co-author? In that case, we can close this PR. Upon inactivity, we will close it next week and do a PR. But in any case, please let us know about your commit address. I hope this is okay :) |
|
The img2img is faster in some ways but overall slower than the original "on potato" script. Using the original on potato script is slower to setup the encoders, tokenizers, etc but the image generation takes only seconds. If there was a way to combine the speed of the pipeline setup from img2img with the image generation speed of on_potato then Flux performance would be closer to the other recent Text-to-Image systems (for example Playground v2.5 takes 15 seconds total to generate a 1024x1024 image, including loading models and setting up the pipeline). If anyone can speed these up in any way it would be very helpful. I have added support for Flux to Visions of Chaos and the general consensus is "great image quality, but slow" |
sure @sayakpaul, I don't seem to get good results possible due to how I was passing it through the scheduler so yes, also I mean I did not do any contribution but here you go |
Use you codes, change strength to 0.7 ~0.6 will get a not bad image... |
|
ohhh @shauray8 Would it be ok if I close this one now? if you see any improvement you can make on the flux img2img and inpaint pipeline we, Please let us know! we can make a PR and make you an author, or you are welcomed to make a PR too sorry again |
@yiyixuxu no worries, anyway my code wasn't giving off good results, let's see what I can improve on 🫡 |




What does this PR do?
image-to-image support for the FLUX pipeline.
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
@asomoza @a-r-r-o-w @sayakpaul