Visual-Behavior / aloception-oss

Aloception is a set of package for computer vision: aloscene, alodataset, alonet.
Other
93 stars 7 forks source link

Add antialiasing parameter in resize functions #351

Closed FlorianCoissac closed 1 year ago

FlorianCoissac commented 1 year ago

With the new version of torch, the default value for the antialias parameter in resize function changed. So I added an antialias parameter in spatial_augmented_tensors and in alodataset/transforms, which defaults to True so that it remains consistent with the previous behavior.

Data-Iab commented 1 year ago

The default value of antialias is None which is equivalent to False in the torchvision version we use 0.14.1. Will only be changed in 0.17 as mentionned in the current version (0.15). No conflicts with the previous versions 0.13, 0.12 ...

feel free to reopen in dev and set the default to False to keep the behavior for the upcoming versions.