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

"Argument interpolation should be of type InterpolationMode instead of int. " #285

Open
Sem4ik228 opened this issue Jan 19, 2022 · 1 comment

Comments

@Sem4ik228
Copy link

Hi, when i try to get datset, i was faced with a problem.

0it [00:00, ?it/s]/usr/local/lib/python3.7/dist-packages/torchvision/transforms/functional.py:405: UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum.
  "Argument interpolation should be of type InterpolationMode instead of int. "
/usr/local/lib/python3.7/dist-packages/torchvision/transforms/functional.py:405: UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum.
  "Argument interpolation should be of type InterpolationMode instead of int. "
2it [00:00,  8.28it/s]

How to fix that? Tnx a lot!

@rosinality
Copy link
Owner

It is recommended to use torchvision.transforms.InterpolationMode.LANCZOS, instead of Image.LANCZOS. Anyway it will work.

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