Anime2Sketch icon indicating copy to clipboard operation
Anime2Sketch copied to clipboard

ValueError: Unknown resampling filter (InterpolationMode.BICUBIC).

Open geng-lee opened this issue 3 years ago • 1 comments

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)

geng-lee avatar Oct 18 '22 10:10 geng-lee

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.

virtualramblas avatar Oct 24 '22 17:10 virtualramblas