lufficc / SSD

High quality, fast, modular reference implementation of SSD in PyTorch
MIT License
1.52k stars 384 forks source link

Where to resize bboxes? #181

Closed Shakesbeer333 closed 3 years ago

Shakesbeer333 commented 3 years ago

Hi @lufficc,

I changed the resizing of the input images, such that it keeps the aspect ratio unchanged by padding the shorter sides with zeros. However, I don't know where to change the resizing of the labels (bbox, segmentation of the gt_data).

BR

Shakesbeer333 commented 3 years ago

Resizing of boxes is done in transforms.py by the ToPerecentCoords class