[UPDATE! 2026-02-01] We have released the improved CCDM (iCCDM) at ./CCDM/iCCDM, designed based on the EDM framework to replace the initial CCDM.
If you use this code, please cite
@misc{ding2026iccdm,
title={Enhancing Diffusion-Based Quantitatively Controllable Image Generation via Matrix-Form EDM and Adaptive Vicinal Training},
author={Xin Ding and Yun Chen and Sen Zhang and Kao Zhang and Nenglun Chen and Peibei Cao and Yongwei Wang and Fei Wu},
year={2026},
eprint={2602.02114},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
@ARTICLE{ding2026ccdm,
author={Ding, Xin and Wang, Yongwei and Zhang, Kao and Wang, Z. Jane},
journal={IEEE Transactions on Multimedia},
title={CCDM: Continuous Conditional Diffusion Models for Image Generation},
year={2026},
volume={},
number={},
pages={1-13},
doi={10.1109/TMM.2026.3660128}
}

Comparison of Sliding FID versus Sampling Speed Across Three Model Families on the Steering Angle Dataset (
RC-49_64x64_OneDrive_link
RC-49_64x64_BaiduYun_link
Cell-200_64x64_OneDrive_link
Cell-200_64x64_BaiduYun_link
UTKFace_64x64_Onedrive_link
UTKFace_64x64_BaiduYun_link
UTKFace_128x128_OneDrive_link
UTKFace_128x128_BaiduYun_link
UTKFace_192x192_OneDrive_link
UTKFace_192x192_BaiduYun_link
UTKFace_256x256_OneDrive_link
UTKFace_256x256_BaiduYun_link
SteeringAngle_64x64_OneDrive_link
SteeringAngle_64x64_BaiduYun_link
SteeringAngle_128x128_OneDrive_link
SteeringAngle_128x128_BaiduYun_link
SteeringAngle_256x256_OneDrive_link
SteeringAngle_256x256_BaiduYun_link
Download the evaluation checkpoints (zip file) from OneDrive or BaiduYun, then extract the contents to ./CCDM/iCCDM/evaluation/eval_ckpts.
We provide the .sh file for training on each dataset in ./CCDM/iCCDM/config. Ensure the root path and data path are correctly configured.
After the training, the sampling usually automatically starts. The evaluation setups are consistent with Ding et. al. (2025).
After the training, the sampling usually automatically starts. Ensure that the --do_eval flag is enabled.
To enable NIQE calculation, set both --dump_fake_for_niqe and --niqe_dump_path to output generated images to your specified directory.