HiDream-ai / VAREdit

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: February 04 2026
image-to-image

Introduction of VAREdit

Model Details of VAREdit

VAREdit

VAREdit Demo

VAREdit is an advanced image editing model built on the Infinity models, designed for high-quality instruction-based image editing.

Try our online demos: ๐Ÿค—VAREdit-8B-1024 and ๐Ÿค—VAREdit-8B-512 .

๐ŸŒŸ Key Features
  • Strong Instruction Follow : Follows instructions more accurately due to the autoregressive nature of the model.
  • Efficient Inference : Optimized for fast generation with less than 1 seconds for 8B model.
  • Flexible Resolution : Supports 512ร—512 and 1024ร—1024 image resolutions VAREdit Demo
๐Ÿ“Š Model Variants
Model Variant Resolutions HuggingFace Model Time (H800) VRAM (GB)
VAREdit-8B-512 512ร—512 VAREdit-8B-512 ~0.7s 50.41
VAREdit-8B-1024 1024ร—1024 VAREdit-8B-1024 ~1.99s 50.41
๐Ÿš€ Quick Start
Prerequisites

Before starting, ensure you have:

  • Python 3.8+
  • CUDA-compatible GPU with sufficient VRAM (8GB+ for 2B model, 24GB+ for 8B model)
  • Required dependencies installed
Installation
  1. Clone the repository
git clone https://github.com/HiDream-ai/VAREdit.git
cd VAREdit
  1. Install dependencies
pip install -r requirements.txt
  1. Download model checkpoints

Download the VAREdit model checkpoints:

# Download from HuggingFace
git lfs install
git clone https://huggingface.co/HiDream-ai/VAREdit
Basic Usage
from infer import load_model, generate_image

model_components = load_model(
    pretrain_root="HiDream-ai/VAREdit",
    model_path="HiDream-ai/VAREdit/8B-1024.pth",
    model_size="8B",
    image_size=1024
)

# Generate edited image
edited_image = generate_image(
    model_components,
    src_img_path="assets/test.jpg",
    instruction="Add glasses to this girl and change hair color to red",
    cfg=3.0,  # Classifier-free guidance scale
    tau=0.1,  # Temperature parameter
    seed=42  # Optional random seed
)
๐Ÿ“ Detailed Configuration
Model Sampling Parameters
Parameter Description Default
cfg Classifier-free guidance scale 3.0
tau Temperature for sampling 0.1
seed Random seed for reproducibility -1 (random)
๐Ÿ“‚ Project Structure
VAREdit/
โ”œโ”€โ”€ infer.py              # Main inference script
โ”œโ”€โ”€ infinity/             # Core model implementations
โ”‚   โ”œโ”€โ”€ models/          # Model architectures
โ”‚   โ”œโ”€โ”€ dataset/         # Data processing utilities
โ”‚   โ””โ”€โ”€ utils/           # Helper functions
โ”œโ”€โ”€ tools/               # Additional tools and scripts
โ”‚   โ””โ”€โ”€ run_infinity.py  # Model execution utilities
โ”œโ”€โ”€ assets/              # Demo images and resources
โ””โ”€โ”€ README.md           # This file
๐Ÿ“Š Performance Benchmarks
Method Size EMU-Edit Bal. PIE-Bench Bal. Time (A800)
InstructPix2Pix 1.1B 2.923 4.034 3.5s
UltraEdit 7.7B 4.541 5.580 2.6s
OmniGen 3.8B 4.674 3.492 16.5s
AnySD 2.9B 3.129 3.326 3.4s
EditAR 0.8B 3.305 4.707 45.5s
ACE++ 16.9B 2.076 2.574 5.7s
ICEdit 17.0B 4.785 4.933 8.4s
VAREdit (256px) 2.2B 5.565 6.684 0.5s
VAREdit (512px) 2.2B 5.662 6.996 0.7s
VAREdit (512px) 8.4B 7.792 8.105 1.2s
VAREdit (1024px) 8.4B 7.379 7.688 3.9s

Note : The released 8B models are trained longer and on more data, so the performances are better than that in the paper.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ“š Citation

If you use VAREdit in your research, please cite:

@article{varedit2025,
  title={Visual Autoregressive Modeling for Instruction-Guided Image Editing},
  author={Mao, Qingyang and Cai, Qi and Li, Yehao and Pan, Yingwei and Cheng, Mingyue and Yao, Ting and Liu, Qi and Mei, Tao},
  journal={arXiv preprint},
  year={2025}
}
๐Ÿ™ Acknowledgments

Note : This project is under active development. Features and code may change.

Runs of HiDream-ai VAREdit on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About VAREdit huggingface.co Model

More VAREdit license Visit here:

https://choosealicense.com/licenses/mit

VAREdit huggingface.co

VAREdit huggingface.co is an AI model on huggingface.co that provides VAREdit's model effect (), which can be used instantly with this HiDream-ai VAREdit model. huggingface.co supports a free trial of the VAREdit model, and also provides paid use of the VAREdit. Support call VAREdit model through api, including Node.js, Python, http.

HiDream-ai VAREdit online free

VAREdit huggingface.co is an online trial and call api platform, which integrates VAREdit's modeling effects, including api services, and provides a free online trial of VAREdit, you can try VAREdit online for free by clicking the link below.

HiDream-ai VAREdit online free url in huggingface.co:

https://huggingface.co/HiDream-ai/VAREdit

VAREdit install

VAREdit is an open source model from GitHub that offers a free installation service, and any user can find VAREdit on GitHub to install. At the same time, huggingface.co provides the effect of VAREdit install, users can directly use VAREdit installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

VAREdit install url in huggingface.co:

https://huggingface.co/HiDream-ai/VAREdit

Url of VAREdit

Provider of VAREdit huggingface.co

HiDream-ai
ORGANIZATIONS

Other API from HiDream-ai

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 13 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 24 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 10 2025