🤗 HuggingFace |
🤖 ModelScope |
🖥️ Demo |
📄 Technical Report
🔥 FireRed-Image-Edit
FireRed-Image-Edit-1.1 Based on the FireRed-Image-Edit-1.0 foundation model, it optimizes portrait consistency, multi-element fusion, stylized text reference, and portrait makeup effects.
FireRed-Image-Edit-1.0 is a general-purpose image editing model that delivers high-fidelity and consistent editing across a wide range of scenarios. FireRed-Image-Edit delivers leading open-source results with accurate instruction following, high image quality, and consistent visual coherence.
✨ Key Features
Strong Editing Performance
- 🆔 State-of-the-Art Identity Consistency: Open-source SOTA in character identity preservation, ensuring subjects remain recognizable across complex edits.
- 🧩 Multi-Element Fusion: Freely combine 10+ elements with Agent-powered automatic cropping and stitching—no more struggles with short prompts.
- 💄 Comprehensive Portrait Makeup: Dozens of styles from professional beauty retouching and yellow/olive skin tone brightening to Halloween witch makeup and creative looks.
- 📝 Text Style Reference: Maintains high-fidelity typography and stylized text comparable to closed-source solutions.
- 🖼️ Professional Photo Restoration: High-quality old photo repair and enhancement with superior detail recovery.
Ultimate Engineering Optimization
- 🔧 Open LoRA Training Ecosystem: Full training code released for custom style creation, optimized samplers maximize GPU efficiency for identical tasks, sizes, and input counts.
- ⚡ Extreme Speed Optimization: Complete acceleration suite featuring distillation, quantization, and static compilation—delivering 4.5s end-to-end generation with just 30GB VRAM
- 🤖 Intelligent Agent Workflow: Automatic multi-image processing handles complex compositions like virtual try-on without requiring lengthy prompt engineering
- 🔌 Universal Deployment: Native ComfyUI node support and GGUF lightweight format compatibility for seamless production integration
- 🏋️ Efficient Training Methodology: Offline feature pre-extraction completely decouples VLM inference from training workflow, eliminating generation overhead for maximum convergence speed.
Native Editing Capability from T2I Backbone
- 🏗️ Backbone-Agnostic Architecture: Editing capabilities injected through full Pretrain → SFT → RL pipeline, transferable to any T2I foundation model.
📰 News
- 2026.03.25: ModelScope now supports LoRA training for FireRed-image-edit.
- 2026.03.09: We have released REDEdit-Bench, a new image editing benchmark. REDEdit-Bench covers more diverse scenarios and editing instructions that better align with human language, providing a more comprehensive and realistic evaluation for image editing tasks.
- 2026.03.03: We release FireRed-Image-Edit-1.1, which, based on the FireRed-Image-Edit-1.0 foundation model, optimizes portrait consistency, multi-element fusion, stylized text reference, and portrait makeup effects.
- 2026.03.01: We offer a lightweight inference script (including distilled Lora, quantization, db_cache, and static compilation), now requiring only 30GB VRAM and ~4.5s/sample. 🚀 Try it by simply running
python inference.py --optimized True.
- 2026.02.28: We released the Train, supporting HSDP/FSDP, Disaggregated Training, and Multi-Condition Aware Bucket Sampler.
- 2026.02.27: We released the Agent module for instruction rewriting, multi-image preprocessing, supporting automatic ROI detection, image stitching for editing with more than 3 images.
- 2026.02.27: We provided FireRed-Image-Edit-1.0-ComfyUI workflow. Check more details on Huggingface
- 2026.02.14: We released FireRed-Image-Edit-1.0 model weights. Check more details on Huggingface and ModelScope.
- 2026.02.10: We released the Technical Report of FireRed-Image-Edit-1.0.
🏆 Evaluation Results
FireRed-Image-Edit establishes a new state-of-the-art among open-source models on Imgedit, Gedit, and RedEdit, while surpassing our closed-source competitors in specific dimensions—a distinction further corroborated by human evaluations highlighting its superior prompt following and visual consistency. Detailed information can be found here.
🎨 Showcase
Some real outputs produced by FireRed-Image-Edit across general editing.
case1: 将图2的男人,穿着图2的黑色"New York Bears"棒球夹克和迷彩裤子和蓝黑配色的AJ1高帮球鞋,在图1的空旷的橄榄球场上。球场阳光明媚,他带着图2黑色的帽子,帽檐是红色,夹克上的白色条纹在暗光中格外醒目。他的左肩随意地挎着图3那只复古棕色皮质旅行包,包口微微敞开,露出里面图3那个磨损的棕色橄榄球。右手则轻松地拖着图3的白色滑板,板底那威武的黑色狮子图腾在草地映衬下如同猛兽。图3那只壮实的深棕色斗牛犬安静地蹲坐在他脚边的阴影里,忠诚地望向主人。男人脖子上挂着图2那副黑色Beats耳机,地上放着图3那座复古的青铜奖杯,在阳光下下泛着胜利的光芒。整个场景融合了街头潮流与竞技体育的质感,空旷球场、皮革装备的温润光泽、以及滑板带来的街头气息,共同构成了一个关于青春、热爱与赛后孤独的静谧时刻。
case1: 为人物添加欧美Y2K妆:使用冷白皮哑光粉底均匀肤色,描绘粗平的深棕色挑眉,眼部涂抹亮片银灰眼影并晕染至眉骨,画上黑色上扬眼线,粘贴浓密假睫毛,用浅金色高光提亮卧蚕,在苹果肌扫上蜜桃色腮红,唇部涂抹镜面玻璃唇釉,并在颧骨处轻扫修容粉。
case2: 为人物添加缎光底妆:使用自然色缎光粉底均匀肤色,描绘自然眉形并填充浅棕色眉粉,眼部涂抹深棕色眼影并晕染眼尾,画自然内眼线,刷上浓密睫毛膏,在卧蚕处提亮,涂抹水润感红色豆沙色口红并勾勒唇形,在苹果肌扫上粉色腮红,在鼻梁、颧骨处轻扫银色高光。
🗂️ Model Zoo
| Models |
Task |
Description |
Download Link |
| FireRed-Image-Edit-1.0 |
Image-Editing |
General-purpose image editing model |
🤗 HuggingFace
🤖 ModelScope
|
| FireRed-Image-Edit-1.0-Distilled |
Image-Editing |
Distilled version of FireRed-Image-Edit-1.0 for faster inference |
🤗 HuggingFace
🤖 ModelScope
|
| FireRed-Image-Edit-1.1 |
Image-Editing |
Based on the FireRed-Image-Edit-1.0, it optimizes portrait consistency, multi-element fusion, stylized text reference, and portrait makeup effects. |
🤗 HuggingFace
🤖 ModelScope
|
| FireRed-Image |
Text-to-Image |
High-quality text-to-image generation model |
To be released
|
🏗️ Model Architecture
⚡️ Quick Start
- Install dependencies
pip install -r requirements.txt
- Use the following code snippets to generate or edit images.
python inference.py \
--input_image ./examples/edit_example.png \
--prompt "在书本封面Python的下方,添加一行英文文字2nd Edition" \
--output_image output_edit.png \
--seed 43
🤖 Agent
The Agent module provides Recaption & Multi-Image Preprocessing capabilities.
FireRed-Image-Edit natively supports 1–3 input images. When users need to edit with more than 3 images, the built-in Agent module automatically:
- ROI Detection – Sends all images + the user instruction to a Gemini function-calling model that returns a bounding-box for the most relevant region in each image.
- Crop & Stitch – Crops each image to its ROI, then partitions and stitches them into 2–3 composite images (≈1024×1024 each) while minimising whitespace and preserving content at maximum resolution.
- Recaption – Rewrites the user instruction so that image references (图1/图2/image N …) correctly point to the new composite images, and expands the prompt to ~512 words/characters for richer editing context. The user's original language is preserved.
(Optional) To enable the Recaption feature (rewriting instructions via an LLM for better editing results), set up one of the supported LLM providers:
Option 1: Gemini (default)
export GEMINI_API_KEY="your-gemini-api-key"
Option 2: MiniMax
export RECAPTION_PROVIDER="minimax"
export MINIMAX_API_KEY="your-minimax-api-key"
Uses the MiniMax OpenAI-compatible API with the MiniMax-M2.7 model by default. You can also use MiniMax-M2.7-highspeed for faster responses.
Option 3: Any OpenAI-compatible API
export RECAPTION_PROVIDER="openai_compatible"
export OPENAI_COMPATIBLE_API_KEY="your-api-key"
export OPENAI_COMPATIBLE_BASE_URL="https://your-api.example.com/v1"
export OPENAI_COMPATIBLE_MODEL="your-model-name"
Note: The LLM API is not required for basic usage. Without it, the Agent will still perform ROI detection and image stitching normally, but will skip the instruction rewriting step. Setting an LLM API key is recommended for best results. The ROI detection step always uses Gemini (multimodal required).
🏋️ How to Train
Training is a two-step process:
- Extract VLM embeddings — Run offline extraction on your image–text JSONL.
- SFT training — Train on the extracted embeddings (HSDP/FSDP, multi-node supported).
→ Full details: train/README.md (data format, environment, commands).
📊 Benchmark