Xiuyu-Li / q-diffusion

[ICCV 2023] Q-Diffusion: Quantizing Diffusion Models.
https://xiuyuli.com/qdiffusion/
MIT License
315 stars 21 forks source link

'functions' package error & how to extract FID #34

Open parkjjoe opened 6 months ago

parkjjoe commented 6 months ago
  1. At first, Unresolved reference 'functions' error occurred for the functions package in sample_diffusion_ddim.py. So I did pip install functions, but this time I got the error Cannot find reference 'denoising' in 'functions.py'. How do I solve this?

  2. I run the code: python scripts/sample_diffusion_ddim.py --config configs/cifar10.yml --use_pretrained --timesteps 100 --eta 0 --skip_type quad --ptq --weight_bit 4 --quant_mode qdiff --split --resume -l . --cali_ckpt checkpoints/cifar_w4a8_ckpt.pth. I want to see the FID values for the generated images by running the above code, so I install pip install torch-fidelity and see the FID values for CIFAR-10. I don't know how to see FID values for LSUN. Is there a way to check the FID numbers?