Downloads · 30 days
1.1K
1% of all-time downloads
XCLiu/2_rectified_flow_from_sd_1_5
2_rectified_flow_from_sd_1_5 is a machine learning model from XCLiu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as cc-by-nc-4.0.
2-Rectified Flow is a few-step text-to-image generative model fine-tuned from Stabled Diffusion v1.5.
Downloads · 30 days
1.1K
1% of all-time downloads
All-time downloads
142K
Public
Parameters
860M
5.5 GB on disk
Likes
15
Public
Click a slice to open those files.
.safetensors5.5 GB · 100%
From the Hugging Face model README
2-Rectified Flow is a few-step text-to-image generative model fine-tuned from Stabled Diffusion v1.5.
We use text-conditioned reflow as described in our paper.
Reflow has interesting theoretical properties. You may check this ICLR paper and this arXiv paper.
We compare SD 1.5+DPM-Solver and 2-Rectified Flow with random prompts from Diffusion DB using the same random seeds. We observe that 2-Rectiifed Flow is straighter.
![]() |
|---|
| Prompt: a renaissance portrait of dwayne johnson, art in the style of rembrandt. |
![]() |
|---|
| Prompt: a photo of a rabbit head on a grizzly bear body. |
Please refer to the official github repo.
Training pipeline:
The final model is 2-Rectified Flow.
Total Training Cost: It takes 75.2 A100 GPU days to get 2-Rectified Flow.
The following metrics of 2-Rectified Flow are measured on MS COCO 2017 with 5000 images and 25-step Euler solver:
FID-5k = 21.5, CLIP score = 0.315
Few-Step performance:

We evaluate the impact of the guidance scale on 2-Rectified Flow.

Trade-off Curve:

@article{liu2023insta,
title={InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation},
author={Liu, Xingchao and Zhang, Xiwen and Ma, Jianzhu and Peng, Jian and Liu, Qiang},
journal={arXiv preprint arXiv:2309.06380},
year={2023}
}