SunnierLee / DP-ImaGen

[USENIX Security 2024] PrivImage: Differentially Private Synthetic Image Generation using Diffusion Models with Semantic-Aware Pretraining
MIT License
15 stars 0 forks source link

Path Specification in compute_fid_statistics.py for --file Argument #1

Open uha225 opened 1 month ago

uha225 commented 1 month ago

I initially encountered a path error in executing the preprocessing step compute_fid_statistics.py when specifying the --file argument with both the directory and filename for CIFAR-10 (cifar10.npz). However, when I used just the filename (cifar10.npz without the directory path), the FID statistics were saved successfully. Please confirm if the filename in the following command includes the full path by mistake. python compute_fid_statistics.py --path /src/data/CIFAR-10/cifar10.zip --file /src/data/CIFAR-10/cifar10.npz It works with the following modification. python compute_fid_statistics.py --path /src/data/CIFAR-10/cifar10.zip --file cifar10.npz

SunnierLee commented 1 month ago

Thank you for bringing this to our attention! We have updated the README to clarify the usage of the --file argument. You can now run the preprocessing step with the command:

python compute_fid_statistics.py --path /src/data/CIFAR-10/cifar10.zip --fid_dir /src/data/CIFAR-10/ --file cifar10.npz