Pytorch-yolov3: In ListDataset, collate_fn in utils/datasets.py , you're resizing the image. Aren't you also supposed to resize the bounding boxes ?

Created on 14 Jun 2019  路  3Comments  路  Source: eriklindernoren/PyTorch-YOLOv3

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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MAP
nationalflag picture nationalflag  路  5Comments

qianwangn picture qianwangn  路  3Comments

zhaowt61 picture zhaowt61  路  4Comments

hezhangubc picture hezhangubc  路  4Comments

mayaghaei picture mayaghaei  路  4Comments