-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Open
Labels
Description
- Why do we need to have so much precision:
1.333333333333
?1.3
would suffice and be more readable <InterpolationMode.BILINEAR: 'bilinear'>
. It's not clear from this if the enum should be preferred or the constant (and it's also not copy-pastable in the code). It's also not clear which type is used for InterpolationMode, especially given that for a long time only PIL.Image.InterpolationMode was supported, hence even new codebases are using the legacy PIL types: https://github.com/facebookresearch/dino/blob/58aabc0/main_dino.py#L420- Why does
InterpolationMode
live in torchvision.transforms.functional whereas the type using it lives in torchvision.transforms? This enum is basic enough to deserve placement in torchvision.transforms directly IMHO. - The doc text mentions
torchvision.transforms.InterpolationMode
, but it's incorrect since the type currently lives in transforms.functional: https://pytorch.org/vision/master/transforms.html?highlight=randomresizedcrop#torchvision.transforms.functional.InterpolationMode