Views
No views yet

1git clone https://github.com/mit-han-lab/dc-ar
2cd dc-ar
3conda create -n dcar python=3.10
4conda activate dcar
5pip install -e .1git clone https://huggingface.co/mit-han-lab/dc-ar-512
2git clone https://huggingface.co/mit-han-lab/dc-htgit clone https://huggingface.co/google/shieldgemma-2bpython app.py --shield_model_path /path/to/ShieldGemma2B 1python sample.py --prompt "YOUR_PROMPT" \
2 --sample_folder_dir /path/to/save_dir \
3 --shield_model_path /path/to/ShieldGemma2B1# You can add --store_seperately to store each image individually, otherwise images will be stored in one grid.
2python sample.py --prompt_list [Prompt1, Prompt2, ..., PromptN] \
3 --sample_folder_dir /path/to/save_dir \
4 --shield_model_path /path/to/ShieldGemma2B1@article{wu2025dcar,
2 title={DC-AR: Efficient Masked Autoregressive Image Generation with Deep Compression Hybrid Tokenizer},
3 author={Wu, Yecheng and Chen, Junyu and Zhang, Zhuoyang and Xie, Enze and Yu, Jincheng and Chen, Junsong and Hu, Jinyi and Lu, Yao and Han, Song and Cai, Han},
4 journal={arXiv preprint arXiv:2410.10733},
5 year={2025}
6}