In the TorchVision Finetuning tutorial 19, it was mentioned that ‘’‘get_height_and_width’’’ method should be implemented as part of the PyTorch dataset, when aspect-ratio grouping is implemented. I’ve searched the web for examples of such datasets with that method, but could not find any. Do you have an example of such datasets implementations? I wish to see how to aspect ration grouping and the get_height_and_width are commonly implemented.
thanks