libffcv / ffcv

FFCV: Fast Forward Computer Vision (and other ML workloads!)
https://ffcv.io
Apache License 2.0
2.8k stars 180 forks source link

Could SimpleRGBImageDecoder support variable resolution? #221

Closed songyuc closed 2 years ago

songyuc commented 2 years ago

Hi, guys, I expect that SimpleRGBImageDecoder would be able to supports variable resolutions, because the images of COCO are not in a same size.

Your response and guide will be appreciated!

andrewilyas commented 2 years ago

Hi @songyuc ! I think what you are looking for is CenterCropRGBImageDecoder or RandomResizedCropRGBImageDecoder. Both of these support variable image resolutions.