https://github.com/alexgenovese/cog-flowedit
Cog implementation of FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Models
https://github.com/alexgenovese/cog-flowedit
cog generative-ai generative-api replicate replicate-ai replicate-api serverless
Last synced: 5 months ago
JSON representation
Cog implementation of FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Models
- Host: GitHub
- URL: https://github.com/alexgenovese/cog-flowedit
- Owner: alexgenovese
- Created: 2024-12-22T11:08:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-22T15:58:27.000Z (over 1 year ago)
- Last Synced: 2025-10-07T11:45:28.512Z (10 months ago)
- Topics: cog, generative-ai, generative-api, replicate, replicate-ai, replicate-api, serverless
- Language: Python
- Homepage: https://replicate.com/alexgenovese/flux-sd3-flow-edit
- Size: 1.19 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cog implementation of FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Models
[]([https://github.com/topics/video-editing](https://github.com/topics/text-guided-image-editing))
[](https://www.python.org/downloads/release/python-38/)

## How to use
Make sure you have [cog](https://github.com/replicate/cog) installed.
To run a prediction:
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"

## Recommend settings
### FLUX
- Steps = 28
- Guidance (CFG) = 1.5
- TAR guidance = 5.5
– n_max = 24
### SD3
- Steps = 50
- Guidance (CFG) = 3.5
- TAR guidance = 13.5
– n_max = 33
## Credits: FlowEdit
[Project](https://matankleiner.github.io/flowedit/) | [Arxiv](https://arxiv.org/abs/2412.08629) | [Demo](https://huggingface.co/spaces/fallenshock/FlowEdit) | [ComfyUI](#comfyui-implementation-for-different-models)
### Official Pytorch implementation of the paper: "FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Models"

## License
The code in this repository is licensed under the [Apache-2.0 License](LICENSE).
Flux Dev falls under the [`FLUX.1 [dev]` Non-Commercial License](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
`FLUX.1 [dev]` fine-tuned weights and their outputs are non-commercial by default, but can be used commercially when running on Replicate.