百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

causalfusion

> 编程语言
开源

Causal Diffusion Transformer 用于生成模型 此仓库提供了我们论文《Causal Diffusion Transformer for Generative Modeling》的官方实现。

197 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Causal Diffusion Transformer 用于生成模型 此仓库提供了我们论文《Causal Diffusion Transformer for Generative Modeling》的官方实现。

Causal Diffusion Transformer for Generative Modeling

This repo provides the official implementation for our paper

Causal Diffusion Transformers for Generative Modeling

Chaorui Deng, Deyao Zhu, Kunchang Li, Shi Guang, Haoqi Fan

Bytedance Research

Setup

Install the dependencies:

bash
git clone https://github.com/causalfusion/causalfusion.git
pip install -U torch==2.5.1 torchvision==0.20.1 transformers==4.46.2

Download pretrained VAE from MAR.

Training

Training CausalFusion-XL on 8 GPUs with a batch size of 256:

bash
torchrun --nnodes=1 --nproc_per_node=8 train.py --data-path=$PATH_TO_IMAGENET_TRAIN_DIR --tokenizer-path=$PATH_TO_MAR_VAE --results-dir=$PATH_TO_RESULTS_DIR --model=CausalFusion-XL --global-batch-size=256 --ckpt-every=50000 --lr=1e-4 --distributed --grad-checkpoint

Sampling

Download pretrained CausalFusion-XL.

Sampling 10,000 images on 8 GPUs with CFG scale of 4.0:

bash
torchrun --nnodes=1 --nproc_per_node=8 sample.py --distributed --model=CausalFusion-L --tokenizer-path=$PATH_TO_MAR_VAE --num-fid-samples=10000 --ckpt=$PATH_TO_PRETRAINED_CKPT --sample-dir=$PATH_TO_SAMPLE_DIR --cfg-scale=4.0

Evaluation

See the instrutions in ADM for evaluation.

BibTex

latex
@article{deng2024causalfusion,
  title={Causal Diffusion Transformers for Generative Modeling},
  author={Chaorui Deng, Deyao Zhu, Kunchang Li, Shi Guang, Haoqi Fan},
  year={2024},
  journal={arXiv preprint arXiv:2412.12095},
}

Acknowledgments

This codebase borrows from DiT, MAR, and ADM, thanks for their great works!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言