I also have the same doubts about this issue.
I am also confused about the shape of targets in function collate_fn, it seems to be (batchsize, w, h) where it is used in the following part, but if I just read collate_fn , I think it would be a two dimensional tensor, can someone tell me if I'm wrong? Or should I add unsqueeze(0) at the end of each channel of targets?
No need to resize because they are normalized between 0-1. Resizing image does not change xy or wh of the bboxes relative to the image.
Most helpful comment
No need to resize because they are normalized between 0-1. Resizing image does not change xy or wh of the bboxes relative to the image.