Downloads · 30 days
0
sairights/dic-h-256x256-sit-sde
dic-h-256x256-sit-sde is a machine learning model from sairights. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository packages the DiC-H ImageNet 256x256 checkpoint provided as:
Downloads · 30 days
0
Access
Public
Updated Jul 15, 2026
Repo size
4.1 GB
Likes
0
Public
Click a slice to open those files.
.pt4.1 GB · 100%
From the Hugging Face model README
This repository packages the DiC-H ImageNet 256x256 checkpoint provided as:
pretrained_models/DiC_H_flow_2000K_256_conv.pt
The checkpoint is a DiC ConvUNet checkpoint trained for the SiT/flow transport setting and sampled with Saining Xie's SiT transport/SDE sampler. It is not the official SiT-XL/2 checkpoint.
| Path | Purpose |
|---|---|
pretrained_models/DiC_H_flow_2000K_256_conv.pt | Provided DiC-H checkpoint |
dic_models.py | DiC model definition, including DiC-H |
sample_dic_sde.py | Single-process DiC-H sampler using SiT SDE transport |
sample_dic_sde_ddp.py | DDP sampler that writes PNGs and an ADM-compatible .npz for FID |
transport/ | SiT transport and SDE sampler code |
logs/ | Local load and smoke-test logs |
samples/dic_h_sde_partial_seed0.png | Smoke-test image generated from this local checkpoint file |
| Field | Value |
|---|---|
| Model | DiC-H |
| Image size | 256x256 |
| Checkpoint file | DiC_H_flow_2000K_256_conv.pt |
| File size | 4,138,243,818 bytes |
| SHA256 | bc24233aab22b33b69e23e1b49d21a1dd25a25e7ebcf44cfab2f08118e9805c5 |
| DiC-H parameter count | 1,034,502,916 |
conda env create -f environment.yml
conda activate SiT
pip install diffusers torchvision tqdm pillow numpy
The sampler downloads stabilityai/sd-vae-ft-mse by default unless it is already cached.
This command uses the DiC-H checkpoint with SiT's SDE sampler and classifier-free guidance:
python sample_dic_sde.py \
--model DiC-H \
--ckpt pretrained_models/DiC_H_flow_2000K_256_conv.pt \
--image-size 256 \
--vae mse \
--labels 207 \
--seed 0 \
--cfg-scale 4.0 \
--num-sampling-steps 250 \
--sampling-method Euler \
--diffusion-form sigma \
--diffusion-norm 1.0 \
--last-step Mean \
--last-step-size 0.04 \
--path-type Linear \
--prediction velocity
For this exact local checkpoint file, the smoke-test run used partial checkpoint recovery:
python sample_dic_sde.py \
--model DiC-H \
--ckpt pretrained_models/DiC_H_flow_2000K_256_conv.pt \
--image-size 256 \
--vae mse \
--labels 207 \
--seed 0 \
--cfg-scale 4.0 \
--num-sampling-steps 250 \
--sampling-method Euler \
--diffusion-form sigma \
--diffusion-norm 1.0 \
--last-step Mean \
--last-step-size 0.04 \
--path-type Linear \
--prediction velocity \
--allow-partial-corrupt-checkpoint
The local smoke-test output is:
samples/dic_h_sde_partial_seed0.png
Use this command for DiC-H FID-50K sampling with the same SiT SDE transport settings:
torchrun --nnodes=1 --nproc_per_node=8 --master_port=29683 sample_dic_sde_ddp.py SDE \
--model DiC-H \
--ckpt pretrained_models/DiC_H_flow_2000K_256_conv.pt \
--image-size 256 \
--vae mse \
--sample-dir samples/dic_h_sit_sde_cfg_fid \
--per-proc-batch-size 4 \
--num-fid-samples 50000 \
--cfg-scale 4.0 \
--num-sampling-steps 250 \
--sampling-method Euler \
--diffusion-form sigma \
--diffusion-norm 1.0 \
--last-step Mean \
--last-step-size 0.04 \
--path-type Linear \
--prediction velocity
The script creates a folder of PNG samples and an ADM-compatible .npz next to that folder.
The packaged code was verified against the provided local file:
python sample_dic_sde.py \
--model DiC-H \
--ckpt pretrained_models/DiC_H_flow_2000K_256_conv.pt \
--image-size 256 \
--dry-run-load \
--allow-partial-corrupt-checkpoint \
--device cpu \
--num-sampling-steps 1
Result:
Partially loaded 692 tensors; skipped 15 corrupt tensors.
DiC-H parameters: 1,034,502,916
Checkpoint loaded successfully.
Dry-run load completed; skipping VAE decode and sampling.
A valid FID-50K number should be reported only from a checkpoint that loads completely with standard torch.load. The exact local checkpoint file packaged here requires partial recovery, so the included smoke-test image is only a loading/sampling sanity check and not a valid FID reproduction.
@article{tian2025dic,
author = {Yuchuan Tian and Jing Han and Chengcheng Wang and Yuchen Liang and Chao Xu and Hanting Chen},
title = {DiC: Rethinking Conv3x3 Designs in Diffusion Models},
journal = {CoRR},
volume = {abs/2501.00603},
year = {2025},
doi = {10.48550/ARXIV.2501.00603},
eprinttype = {arXiv},
eprint = {2501.00603}
}