jbohnslav / opencv_transforms

OpenCV implementation of Torchvision's image augmentations
MIT License
375 stars 46 forks source link

Only store the int in size if it's an int not a tuple #21

Closed NorwegianRockCat closed 3 years ago

NorwegianRockCat commented 3 years ago

The documentation for this function is that if you provide an int, scale will scale the smallest size to the int. Creating a tuple here ruins the checks in functional. So, just store the int.

This seems to match what PyTorch does.