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

Precomputing feature statistics: No module named 'fid' #17

Open
fikry102 opened this issue Oct 24, 2023 · 0 comments
Open

Precomputing feature statistics: No module named 'fid' #17

fikry102 opened this issue Oct 24, 2023 · 0 comments

Comments

@fikry102
Copy link

I use the following command:
python scripts/precompute_fid_statistics.py --data data/cifar10 --dataset cifar10 --fid_dir fid_stats_dir

  File "scripts/precompute_fid_statistics.py", line 9, in <module>
    from fid.fid_score import compute_statistics_of_generator, save_statistics
ModuleNotFoundError: No module named 'fid'

How to solve this problem?

After I move "precompute_fid_statistics.py" out of the folder "scripts", everything is okay:

Files already downloaded and verified
Files already downloaded and verified
len train queue 782 len val queue 157 batch size 64
Downloading: "https://github.com/mseitzer/pytorch-fid/releases/download/fid_weights/pt_inception-2015-12-05-6726825d.pth" to fid_stats_dir/pt_inception-2015-12-05-6726825d.pth
100.0%
Starting to sample.
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

1 participant