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

ValueError: Unknown resampling filter (InterpolationMode.BICUBIC). #28

Open
geng-lee opened this issue Oct 18, 2022 · 1 comment
Open

Comments

@geng-lee
Copy link

ValueError: Unknown resampling filter (InterpolationMode.BICUBIC). Use Image.Resampling.NEAREST (0), Image.Resampling.LANCZOS (1), Image.Resampling.BILINEAR (2), Image.Resampling.BICUBIC (3), Image.Resampling.BOX (4) or Image.Resampling.HAMMING (5)

@virtualramblas
Copy link
Contributor

Hi @geng-lee This error was happening to me as well today (previous releases of the original code worked properly when resizing the input images). This is simply solved by replacing line 5 of the data.py script
from torchvision.transforms import InterpolationMode
with the following:
from transforms import InterpolationMode
Pull request no. 29 (not yet merged) contains this fix.

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