Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
uha225 opened this issue Oct 30, 2024 · 1 comment
Open

Comments

@uha225
Copy link

uha225 commented Oct 30, 2024

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants