← 开源
wangjiangshan0725

RF-Solver-Edit

[🚀ICML 2025] "Taming Rectified Flow for Inversion and Editing" Using FLUX and HunyuanVideo for image and video editing!

ApplicationsContent creationPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
639
Star
20
Fork
+1
本周
2
贡献者
创建于 2024-11-05 · 更新于 2026-10-09 · 今日第 15700 名
主要开发者

wangjiangshan0725/RF-Solver-Edit 排名第 15,700,有 639 个星标。

同类别比较

wangjiangshan0725/RF-Solver-Edit 排名第 15,700,此处有 8 个同类条目;PromtEngineer/localGPT-Vision 排名第 15,703。

同类别比较
名称排名指标
junhoyeo/BetterOCR15,677
语言:
Python
星标数:
640
分叉数:
43
简介:
🔍 Better text detection by combining multiple OCR engines (EasyOCR, Tesseract, and Pororo) with 🧠 LLM.
Azzedde/brainstormers15,683
语言:
TypeScript
星标数:
639
分叉数:
68
简介:
This repository hosts a suite of specialized agents designed to power your brainstorming sessions. Each agent brings a unique perspective and tailored approach to generate creative, targeted solutions for diverse challenges. Choose the right agent for your specific brainstorming needs and unlock innovative ideas with precision.
DanRuta/xVA-Synth15,684
语言:
JavaScript
星标数:
639
分叉数:
56
简介:
Machine learning based speech synthesis Electron app, with voices from specific characters from video games
ThorOdinson246/whatisit-nl2sh15,688
语言:
Python
星标数:
639
分叉数:
34
简介:
Local natural-language-to-shell command generator. A 941 MB fine-tuned Qwen2.5-Coder-1.5B running on CPU in ~1s.
PromtEngineer/localGPT-Vision15,703
语言:
Python
星标数:
638
分叉数:
129
简介:
Chat with your documents using Vision Language Models. This repo implements an End to End RAG pipeline with both local and proprietary VLMs
Ryan-yang125/ChatLLM-Web15,704
语言:
TypeScript
星标数:
638
分叉数:
48
简介:
Private local model studio, AI chat, and agent workspace powered by WebGPU and WebLLM.
lamm-mit/SciAgentsDiscovery15,711
语言:
Python
星标数:
638
分叉数:
106
caioricciuti/duck-ui15,726
语言:
TypeScript
星标数:
637
分叉数:
42
关键参数与规格
关键参数与规格
参数值
语言Python
类别Applications
子类别Content creation
关键词Image production, Video production
星标数639
分叉数20
贡献者2
创建日期2024-11-05
更新日期2026-10-09
1 天星标数0
7 天星标数1
排名15,700
上次排名15,505
排名变化-195
7 天星标排名11,077
上次 7 天星标排名11,145
7 天星标排名变化68
总星标排名16,005
上次总星标排名15,982
总星标排名变化-23
国家China
README 摘录

Taming Rectified Flow for Inversion and Editing Jiangshan Wang 1,2 , Junfu Pu 2 , Zhongang Qi 2 , Jiayi Guo 1 , Yue Ma 3 , Nisha Huang 1 , Yuxin Chen 2 , Xiu Li 1 , Ying Shan 2 1 Tsinghua University, 2 Tencent ARC Lab, 3 HKUST We propose RF-Solver to solve the rectified flow ODE with less error, thus enhancing both sampling quality and inversion-reconstruction accuracy for rectified-flow-based generative models. Furthermore, we propose RF-Edit to leverage the

RF-Solver for image and video editing tasks. Our methods achieve impressive performance on various tasks, including text-to-image generation, image/video inversion, and image/video editing. 1] 🎉 Our paper is accepted by ICML 2025. 24] We have re-organized our code, and releasing the code for video editing! 30] Our demo is available on 🤗 Huggingface Space! 24] Thanks @logtd for implementing RF-Solver in LTX-Video! 18] More examples for style transfer are available! 18] Gradio Demo for

image editing is available! 16] Thanks @logtd for integrating RF-Solver into ComfyUI! 11] The homepage of the project is available! Double blocks independently modulate text and image features, while single blocks concatenate these features for unified modulation. In this architecture, RF-Edit shares features within the single blocks, as they capture information from both the source image and the source prompt, enhancing the ability of the model to preserve the structural information of the source image. We have provided

the code and demo for image editing using FLUX as the backbone, which can be found Here . 🎥 Code for Video Editing For video editing, in our paper, we employ OpenSora as the backbone. The DiT blocks in OpenSora include spatial attention, temporal attention, and text cross-attention. Within this architecture, the structural information of the source video is captured in the spatial attention module, where we implement feature sharing. Note that the more powerful video generation model HunyuanVideo is released

recently, which is also a RF-based method. The code for video editing in this Repo is implemented based on HunyuanVideo. We have provided the code and demo for video editing using HunyuanVideo as the backbone, which can be found Here . 🎨 Gallery Image Stylization Image Editing Video Editing Inversion and Reconstruction 📖 Method RF-Solver We derive the exact formulation of the solution for Rectified Flow ODE. The non-linear part in this solution is processed by Taylor Expansion. Through higher

order expansion, the approximation error in the solution is significantly reduced, thus achieving impressive performance on both text-to-image sampling and image/video inversion. RF-Edit Based on RF-Solver, we further propose the RF-Edit for image and video editing. RF-Edit framework leverages the features from inversion in the denoising process, which enables high-quality editing while preserving the structural information of source image/video. RF-Edit contains two sub-modules, especially for image editing and video

editing. 🖋️ Citation If you find our work helpful, please **star 🌟** this repo and **cite 📑** our paper. Acknowledgements We thank FLUX

常见问题

记录了多少星标和分叉?

wangjiangshan0725/RF-Solver-Edit 有 639 个星标和 20 个分叉。

仓库排名是多少?

wangjiangshan0725/RF-Solver-Edit 排名第 15,700。

记录的语言和类别是什么?

wangjiangshan0725/RF-Solver-Edit 有 639 个星标,语言为 Python,类别为 Applications。

哪个仓库排名最接近?

wangjiangshan0725/RF-Solver-Edit 与 PromtEngineer/localGPT-Vision 比较,后者排名第 15,703,有 638 个星标。

README

Taming Rectified Flow for Inversion and Editing

Jiangshan Wang1,2, Junfu Pu2, Zhongang Qi2, Jiayi Guo1, Yue Ma3,
Nisha Huang1, Yuxin Chen2, Xiu Li1, Ying Shan2

1 Tsinghua University, 2 Tencent ARC Lab, 3 HKUST

We propose RF-Solver to solve the rectified flow ODE with less error, thus enhancing both sampling quality and inversion-reconstruction accuracy for rectified-flow-based generative models. Furthermore, we propose RF-Edit to leverage the RF-Solver for image and video editing tasks. Our methods achieve impressive performance on various tasks, including text-to-image generation, image/video inversion, and image/video editing.

🔥 News

  • [2025.5.1] 🎉 Our paper is accepted by ICML 2025.
  • [2025.3.24] We have re-organized our code, and releasing the code for video editing!
  • [2024.11.30] Our demo is available on 🤗 Huggingface Space!
  • [2024.11.24] Thanks @logtd for implementing RF-Solver in LTX-Video!
  • [2024.11.18] More examples for style transfer are available!
  • [2024.11.18] Gradio Demo for image editing is available!
  • [2024.11.16] Thanks @logtd for integrating RF-Solver into ComfyUI!
  • [2024.11.11] The homepage of the project is available!
  • [2024.11.08] Code for image editing is released!
  • [2024.11.08] Paper released!

👨‍💻 ToDo

  • ☑️ Release the gradio demo
  • ☑️ Release scripts for more image editing cases
  • ☑️ Release the code for video editing

🖼️ Code for Image Editing

For image editing, RF-Edit employs FLUX as the backbone, which comprises several double blocks and single blocks. Double blocks independently modulate text and image features, while single blocks concatenate these features for unified modulation. In this architecture, RF-Edit shares features within the single blocks, as they capture information from both the source image and the source prompt, enhancing the ability of the model to preserve the structural information of the source image.

We have provided the code and demo for image editing using FLUX as the backbone, which can be found Here.

🎥 Code for Video Editing

For video editing, in our paper, we employ OpenSora as the backbone. The DiT blocks in OpenSora include spatial attention, temporal attention, and text cross-attention. Within this architecture, the structural information of the source video is captured in the spatial attention module, where we implement feature sharing.

Note that the more powerful video generation model HunyuanVideo is released recently, which is also a RF-based method. The code for video editing in this Repo is implemented based on HunyuanVideo.

We have provided the code and demo for video editing using HunyuanVideo as the backbone, which can be found Here.

🎨 Gallery

Image Stylization

Image Editing

Video Editing

Inversion and Reconstruction

📖 Method

RF-Solver

We derive the exact formulation of the solution for Rectified Flow ODE. The non-linear part in this solution is processed by Taylor Expansion. Through higher order expansion, the approximation error in the solution is significantly reduced, thus achieving impressive performance on both text-to-image sampling and image/video inversion.

RF-Edit

Based on RF-Solver, we further propose the RF-Edit for image and video editing. RF-Edit framework leverages the features from inversion in the denoising process, which enables high-quality editing while preserving the structural information of source image/video. RF-Edit contains two sub-modules, especially for image editing and video editing.

🖋️ Citation

If you find our work helpful, please star 🌟 this repo and cite 📑 our paper. Thanks for your support!

@article{wang2024taming,
  title={Taming Rectified Flow for Inversion and Editing},
  author={Wang, Jiangshan and Pu, Junfu and Qi, Zhongang and Guo, Jiayi and Ma, Yue and Huang, Nisha and Chen, Yuxin and Li, Xiu and Shan, Ying},
  journal={arXiv preprint arXiv:2411.04746},
  year={2024}
}

Acknowledgements

We thank FLUX and HunyuanVideo for their clean codebase.

Contact

The code in this repository is still being reorganized. Errors that may arise during the organizing process could lead to code malfunctions or discrepancies from the original research results. If you have any questions or concerns, please send emails to wjs23@mails.tsinghua.edu.cn.

排名相邻
同类项目