{"id":23222651,"url":"https://github.com/fallenshock/FlowEdit","last_synced_at":"2025-08-19T11:32:25.787Z","repository":{"id":267753909,"uuid":"892729604","full_name":"fallenshock/FlowEdit","owner":"fallenshock","description":"Official implementation of the paper: \"FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Models\"","archived":false,"fork":false,"pushed_at":"2024-12-12T07:43:10.000Z","size":21663,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-12T08:29:42.306Z","etag":null,"topics":["diffusion-models","editing","editing-image","generative-model","rectified-flow","text-guided-image-editing","text-guided-image-manipulation"],"latest_commit_sha":null,"homepage":"https://matankleiner.github.io/flowedit/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fallenshock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-22T17:01:07.000Z","updated_at":"2024-12-12T07:43:14.000Z","dependencies_parsed_at":"2024-12-12T08:39:45.066Z","dependency_job_id":null,"html_url":"https://github.com/fallenshock/FlowEdit","commit_stats":null,"previous_names":["fallenshock/flowedit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallenshock%2FFlowEdit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallenshock%2FFlowEdit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallenshock%2FFlowEdit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallenshock%2FFlowEdit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fallenshock","download_url":"https://codeload.github.com/fallenshock/FlowEdit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230351167,"owners_count":18212788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diffusion-models","editing","editing-image","generative-model","rectified-flow","text-guided-image-editing","text-guided-image-manipulation"],"created_at":"2024-12-18T23:01:22.771Z","updated_at":"2024-12-18T23:01:46.145Z","avatar_url":"https://github.com/fallenshock.png","language":"Python","funding_links":[],"categories":["Python","Personalized Restoration"],"sub_categories":[],"readme":"[![Zero-Shot Image Editing](https://img.shields.io/badge/zero%20shot-image%20editing-Green)]([https://github.com/topics/video-editing](https://github.com/topics/text-guided-image-editing))\n[![Python](https://img.shields.io/badge/python-3.8+-blue?python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54)](https://www.python.org/downloads/release/python-38/)\n![PyTorch](https://img.shields.io/badge/torch-2.0.0-red?PyTorch-%23EE4C2C.svg?style=for-the-badge\u0026logo=PyTorch\u0026logoColor=white)\n\n# FlowEdit\n\n[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)\n\n### Official Pytorch implementation of the paper: \"FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Models\"\n\n![](imgs/teaser.png)\n\n## Installation\n1. Clone the repository\n\n2. Install the required dependencies using `pip install torch diffusers transformers accelerate sentencepiece protobuf` \u003cbr\u003e\n\t* Tested with CUDA version 12.4 and diffusers 0.31.0\n\n## Running examples\nRun editing with Stable Diffusion 3: `python run_script.py --exp_yaml SD3_exp.yaml`\n\nRun editing with Flux: `python run_script.py --exp_yaml FLUX_exp.yaml`\n\n## Usage - your own examples\n\n* Upload images to `example_images` folder. \n\n* Create an edits file that specifies: (a) a path to the input image, (b) a source prompt, (c) target prompts, and (d) target codes. The target codes summarize the changes between the source and target prompts and will appear in the output filename. \u003cbr\u003e\nSee `edits.yaml` for example.\n\n* Create an experiment file containing the hyperparamaters needed for running FlowEdit, such as `n_max`, `n_min`. This file also includes the path to the `edits.yaml` file\u003cbr\u003e\nSee `FLUX_exp.yaml` for FLUX usage example and `SD3_exp.yaml` for Stable Diffusion 3 usage example. \u003cbr\u003e\nFor a detailed discussion on the impact of different hyperparameters and the values we used, please refer to our paper.\n\nRun `python run_script.py --exp_yaml \u003cpath to your experiment yaml\u003e`\n\n## ComfyUI implementation for different models \n\n* [FLUX](https://github.com/logtd/ComfyUI-Fluxtapoz)\n* [LTX Video](https://github.com/logtd/ComfyUI-LTXTricks)\n* [HunyuanLoom](https://github.com/logtd/ComfyUI-HunyuanLoom)\n\nImplemented by [logtd](https://x.com/logtdx/status/1869095838016012462?s=48\u0026t=6Yj6BZKooDOmH_JWRWjtHg)\n\n## License\nThis project is licensed under the [MIT License](LICENSE).\n\n\n### Citation\nIf you use this code for your research, please cite our paper:\n\n```\n@article{kulikov2024flowedit,\n\ttitle = {FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Models},\n\tauthor = {Kulikov, Vladimir and Kleiner, Matan and Huberman-Spiegelglas, Inbar and Michaeli, Tomer},\n\tjournal = {arXiv preprint arXiv:2412.08629},\n\tyear = {2024}\n\t}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallenshock%2FFlowEdit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffallenshock%2FFlowEdit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallenshock%2FFlowEdit/lists"}