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

ImportError: cannot import name 'InterpolationMode' from 'torchvision.transforms' #45

Closed
galenoshea opened this issue Jan 13, 2022 · 1 comment

Comments

@galenoshea
Copy link

tried running data/prepare_data.py on Ubuntu and received the following error.

Traceback (most recent call last):
File "data/prepare_data.py", line 10, in
from torchvision.transforms import InterpolationMode
ImportError: cannot import name 'InterpolationMode' from 'torchvision.transforms'

@Janspiry
Copy link
Owner

Sorry, it was a pytorch version problem, I fixed it in lastest version.

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