Views
No views yet
pipeline.py, component modules, and weights.| Subfolder | Pipeline | Resolution | Source checkpoint | CFG | FID | IS | Params |
|---|---|---|---|---|---|---|---|
DiCo-S-256/ | DiCoPipeline | 256×256 | DiCo-S-400K-256x256.pt | 1.0 | 49.97 | 31.38 | 33M |
DiCo-B-256/ | DiCoPipeline | 256×256 | DiCo-B-400K-256x256.pt | 1.0 | 27.20 | 56.52 | 130M |
DiCo-L-256/ | DiCoPipeline | 256×256 | DiCo-L-400K-256x256.pt | 1.0 | 13.66 | 91.37 | 464M |
DiCo-XL-256/ | DiCoPipeline | 256×256 | DiCo-XL-3750K-256x256.pt | 1.4 | 2.05 | 282.17 | 701M |
stabilityai/sd-vae-ft-ema. Scheduler: DDIMScheduler (1000 train steps, linear betas).1BiliSakura/DiCo-diffusers/
2├── README.md
3├── demo_inference.py
4├── DiCo-S-256/
5├── DiCo-B-256/
6├── DiCo-L-256/
7└── DiCo-XL-256/
8 ├── pipeline.py
9 ├── model_index.json
10 ├── demo.png
11 ├── scheduler/scheduler_config.json
12 ├── transformer/
13 └── vae/scheduler/ folder uses built-in DDIMScheduler from PyPI diffusers.id2label is embedded in each variant's model_index.json (DiT-style).pipe.id2label — inspect id → English label correspondencepipe.labels — reverse map (English synonym → id)pipe.get_label_ids("golden retriever")pipe(class_labels="golden retriever", ...) — string labels resolved automatically
guidance_scale=1.4.1python demo_inference.py
2python demo_inference.py --variant s # DiCo-S-256, CFG 1.0DiCo-XL-256)1from pathlib import Path
2import torch
3from diffusers import DiffusionPipeline
4
5model_dir = Path("./DiCo-XL-256").resolve()
6pipe = DiffusionPipeline.from_pretrained(
7 str(model_dir),
8 local_files_only=True,
9 custom_pipeline=str(model_dir / "pipeline.py"),
10 trust_remote_code=True,
11 torch_dtype=torch.bfloat16,
12)
13pipe.to("cuda")
14
15print(pipe.id2label[207])
16print(pipe.get_label_ids("golden retriever"))
17
18generator = torch.Generator(device="cuda").manual_seed(0)
19image = pipe(
20 class_labels="golden retriever",
21 height=256,
22 width=256,
23 num_inference_steps=250,
24 guidance_scale=1.4,
25 generator=generator,
26).images[0]
27image.save("demo.png")| Variant | Steps | CFG scale |
|---|---|---|
DiCo-S-256 | 250 | 1.0 |
DiCo-B-256 | 250 | 1.0 |
DiCo-L-256 | 250 | 1.0 |
DiCo-XL-256 | 250 | 1.4 |
1cd libs/DiCo-diffusers
2
3python scripts/convert_dico_to_diffusers.py \
4 --checkpoint /path/to/DiCo-XL-3750K-256x256.pt \
5 --output /path/to/DiCo-XL-256 \
6 --model-type DiCo-XL \
7 --weights ema \
8 --safe-serialization \
9 --id2label ../../src/labels/id2label_en.json1@inproceedings{ai2025dico,
2 title={DiCo: Revitalizing ConvNets for Scalable and Efficient Diffusion Modeling},
3 author={Yuang Ai and Qihang Fan and Xuefeng Hu and Zhenheng Yang and Ran He and Huaibo Huang},
4 booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems},
5 year={2025},
6 url={https://openreview.net/forum?id=UnslcaZSnb}
7}