Mukosame / Anime2Sketch

A sketch extractor for anime/illustration.
MIT License
1.96k stars 163 forks source link

Fixed error when applying a resampling filter. #29

Closed virtualramblas closed 1 year ago

virtualramblas commented 2 years ago

This fix prevent the following error happening when resizing input image(s) before generating sketches: 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)