← 开源
black-forest-labs

Self-Flow

[ICML'26] Code and website for Self-Flow: Self-Supervised Flow Matching for Scalable Multi-Modal Synthesis

ModelsVision modelsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
778
Star
27
Fork
+4
本周
1
贡献者
创建于 2026-02-26 · 更新于 2026-10-14 · 今日第 13917 名
主要开发者

black-forest-labs/Self-Flow 排名第 13,917,有 778 个星标。

同类别比较

black-forest-labs/Self-Flow 排名第 13,917,此处有 8 个同类条目;bryanswkim/Chain-of-Zoom 排名第 13,919。

同类别比较
名称排名指标
facebookresearch/contriever13,897
语言:
Python
星标数:
780
分叉数:
69
简介:
Contriever: Unsupervised Dense Information Retrieval with Contrastive Learning
jerryji1993/DNABERT13,898
语言:
Python
星标数:
780
分叉数:
180
简介:
DNABERT: pre-trained Bidirectional Encoder Representations from Transformers model for DNA-language in genome
Boese0601/MagicDance13,910
语言:
Python
星标数:
778
分叉数:
64
简介:
[ICML 2024] MagicPose(also known as MagicDance): Realistic Human Poses and Facial Expressions Retargeting with Identity-aware Diffusion
YuvalNirkin/fsgan13,914
语言:
Jupyter Notebook
星标数:
778
分叉数:
147
简介:
FSGAN - Official PyTorch Implementation
bryanswkim/Chain-of-Zoom13,919
语言:
Python
星标数:
778
分叉数:
76
简介:
[NeurIPS'25 Spotlight] Official repository for "Chain-of-Zoom: Extreme Super-Resolution via Scale Autoregression and Preference Alignment"
bytedance/ibot13,920
语言:
Jupyter Notebook
星标数:
778
分叉数:
93
简介:
iBOT :robot:: Image BERT Pre-Training with Online Tokenizer (ICLR 2022)
youngwanLEE/centermask213,928
语言:
Python
星标数:
778
分叉数:
154
简介:
[CVPR 2020] CenterMask : Real-time Anchor-Free Instance Segmentation
hubertsiuzdak/snac13,935
语言:
Python
星标数:
777
分叉数:
46
简介:
Multi-Scale Neural Audio Codec (SNAC) compresses audio into discrete codes at a low bitrate
关键参数与规格
关键参数与规格
参数值
语言Python
类别Models
子类别Vision models
关键词Benchmarks, Image production, Model architecture
星标数778
分叉数27
贡献者1
创建日期2026-02-26
更新日期2026-10-14
1 天星标数0
7 天星标数4
排名13,917
上次排名6,434
排名变化-7,483
7 天星标排名6,363
上次 7 天星标排名6,363
7 天星标排名变化0
总星标排名13,650
上次总星标排名13,625
总星标排名变化-25
README 摘录

Self-Supervised Flow Matching for Scalable Multi-Modal Synthesis (Self-Flow) [ICML'26] Hila Chefer* · Patrick Esser* Dominik Lorenz · Dustin Podell · Vikash Raja · Vinh Tong · Antonio Torralba · Robin Rombach Black Forest Labs This folder contains inference code for generating images with our Self-Flow trained diffusion model on ImageNet 256×256. Overview **Self-Flow** (Self-Supervised Flow Matching for Scalable Multi-Modal Synthesis) is a training framework that combines the flow matching objective with a self-supervised feature reconstruction objective

. Load a Self-Flow checkpoints (pretrained on ImageNet 256x256) 2. Generate 50,000 images for FID evaluation The generated samples can be evaluated using the ADM evaluation suite. 0 = no guidance, as used in paper) | Evaluation The generated file can be used with the ADM evaluation suite to compute FID, IS, Precision, and Recall. Download Reference Statistics Run Evaluation Model Architecture The Self-Flow model is based on SiT-XL/2 with the following specifications A key architectural modification is

**per-token timestep conditioning**, which allows each token to have a different noise level during training. Project Structure Training Details The model was trained using the following configuration: **Model**: SiT-XL/2 with per-token timestep conditioning **Training**: Self-Flow with per-token masking (25% mask ratio) **Optimizer**: AdamW with gradient clipping (max_norm=1) **Mixed precision**: BFloat16 **Self-distillation**: Teacher at layer 20 (EMA), student at layer 8 Acknowledgments This code builds upon: REPA - Representation Alignment for Generation SiT

- Scalable Interpolant Transformers BibTeX If you use this work, please cite:

常见问题

记录了多少星标和分叉?

black-forest-labs/Self-Flow 有 778 个星标和 27 个分叉。

仓库排名是多少?

black-forest-labs/Self-Flow 排名第 13,917。

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

black-forest-labs/Self-Flow 有 778 个星标,语言为 Python,类别为 Models。

哪个仓库排名最接近?

black-forest-labs/Self-Flow 与 bryanswkim/Chain-of-Zoom 比较,后者排名第 13,919,有 778 个星标。

README

Self-Supervised Flow Matching for Scalable Multi-Modal Synthesis (Self-Flow) [ICML'26]

Hila Chefer* · Patrick Esser*
Dominik Lorenz · Dustin Podell · Vikash Raja · Vinh Tong · Antonio Torralba · Robin Rombach

Black Forest Labs

This folder contains inference code for generating images with our Self-Flow trained diffusion model on ImageNet 256×256.

Overview

Self-Flow (Self-Supervised Flow Matching for Scalable Multi-Modal Synthesis) is a training framework that combines the flow matching objective with a self-supervised feature reconstruction objective.

This inference code allows you to:

  1. Load a Self-Flow checkpoints (pretrained on ImageNet 256x256)
  2. Generate 50,000 images for FID evaluation

The generated samples can be evaluated using the ADM evaluation suite.

Requirements

pip install -r requirements.txt

Quick Start

Download Checkpoint

python -c "
from huggingface_hub import hf_hub_download
hf_hub_download(
    repo_id='Hila/Self-Flow',
    filename='selfflow_imagenet256.pt',
    local_dir='./checkpoints'
)
print('Downloaded!')
"

Generate 50k samples (multi-GPU recommended)

torchrun --nnodes=1 --nproc_per_node=8 sample.py \
    --ckpt checkpoints/selfflow_imagenet256.pt \
    --output-dir ./samples \
    --num-fid-samples 50000

Single GPU

python sample.py \
    --ckpt checkpoints/selfflow_imagenet256.pt \
    --output-dir ./samples \
    --num-fid-samples 50000 \
    --batch-size 64

Command Line Arguments

Argument Default Description
--ckpt required Path to model checkpoint
--output-dir ./samples Output directory for generated samples
--num-fid-samples 50000 Number of samples to generate
--batch-size 64 Batch size per GPU
--num-steps 250 Number of diffusion sampling steps
--mode SDE Sampling mode: SDE or ODE
--seed 31 Random seed for reproducibility
--cfg-scale 1.0 Classifier-free guidance scale (1.0 = no guidance, as used in paper)

Evaluation

The generated .npz file can be used with the ADM evaluation suite to compute FID, IS, Precision, and Recall.

Download Reference Statistics

wget https://openaipublic.blob.core.windows.net/diffusion/jul-2021/ref_batches/imagenet/256/VIRTUAL_imagenet256_labeled.npz

Run Evaluation

python evaluator.py \
    VIRTUAL_imagenet256_labeled.npz \
    ./samples/samples_50000.npz ./samples

Model Architecture

The Self-Flow model is based on SiT-XL/2 with the following specifications

A key architectural modification is per-token timestep conditioning, which allows each token to have a different noise level during training.

Project Structure

Self-Flow/
├── sample.py           # Main sampling script
├── checkpoints/        # Place model checkpoints here
├── requirements.txt    # Python dependencies
├── README.md           # This file
└── src/                # Model and sampling implementations
    ├── model.py        # SelfFlowPerTokenDiT model
    ├── sampling.py     # Diffusion sampling utilities
    └── utils.py        # Position encoding utilities

Training Details

The model was trained using the following configuration:

  • Model: SiT-XL/2 with per-token timestep conditioning
  • Training: Self-Flow with per-token masking (25% mask ratio)
  • Optimizer: AdamW with gradient clipping (max_norm=1)
  • Mixed precision: BFloat16
  • Self-distillation: Teacher at layer 20 (EMA), student at layer 8

Acknowledgments

This code builds upon:

  • REPA - Representation Alignment for Generation
  • SiT - Scalable Interpolant Transformers

BibTeX

If you use this work, please cite:

@article{CheferEsser2026selfflow,
      title={Self-Supervised Flow Matching for Scalable Multi-Modal Synthesis}, 
      author={Hila Chefer and Patrick Esser and Dominik Lorenz and Dustin Podell and Vikash Raja and Vinh Tong and Antonio Torralba and Robin Rombach},
      journal = {arXiv preprint arXiv:2603.06507},
      year={2026},
}
排名相邻
同类项目