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

The diffusion.datasets package in print_dit_acc.py #22

Closed
hadwinn opened this issue Mar 5, 2024 · 1 comment
Closed

The diffusion.datasets package in print_dit_acc.py #22

hadwinn opened this issue Mar 5, 2024 · 1 comment

Comments

@hadwinn
Copy link

hadwinn commented Mar 5, 2024

conda env create -f environment.yml execution complete, but:

(diffusion-classifier) ➜ diffusion-classifier git:(master) ✗ python scripts/print_dit_acc.py data/imagenet_dit256 --dataset imagenet
Traceback (most recent call last):
File "/home/featurize/work/diffusion-classifier/scripts/print_dit_acc.py", line 5, in
from diffusion.datasets import get_target_dataset, IMAGENET_A_CLASSES
ModuleNotFoundError: No module named 'diffusion'

What's the problem?

@alexlioralexli
Copy link
Collaborator

You need to add the diffusion-classifier directory to your PYTHONPATH

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