Hi, I was rencently training a instance segmentation CNN and randomly apply “torchvision.transforms.functional.resize()” in the “getitem” method of the “Dataset” object(for data augmentation). However, I remembered that for a batch of data, the height and width of each images in the same batch should be the same, otherwise it will raise an error.
But my traning scripts runs succesfully? why?
many thanks!