alexgenovese / flux-sd3-flow-edit

FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Models

  • Public
  • 331 runs
  • GitHub
  • Paper
  • License

Run time and cost

This model costs approximately $0.14 to run on Replicate, or 7 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 147 seconds. The predict time for this model varies significantly based on the inputs.

Readme

About

It’s a Cog implementation of FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Models

I removed SD3 due to technical constraints – If you need the SD3 implementation, contact me.

Shout out to me if you need customizations or deployment on your stack.

Follow me on Twitter/X | Website


How to use the Cog

Make sure you have cog installed.

To run a prediction using the GitHub code:

cog predict -i image="./image.png" -i model_type="FLUX" -i source_prompt="a cat sitting in the grass"  -i target_prompt="a puppy sitting in the grass"

Credits

FlowEdit Project | Arxiv

License

The code in this repository is licensed under the Apache-2.0 License.

Flux Dev falls under the FLUX.1 [dev] Non-Commercial License.

FLUX.1 [dev] fine-tuned weights and their outputs are non-commercial by default, but can be used commercially when running on Replicate.