yjh0410 / PyTorch_YOLO-Family

Apache License 2.0
161 stars 48 forks source link

Using different image size #13

Closed kulkarnikeerti closed 2 years ago

kulkarnikeerti commented 2 years ago

Hi,

I would like to use a different image size than a square image, eg: (960, 480). In that case how do I normalize the boxes? I mean how does the below line changes with this different size.

https://github.com/yjh0410/PyTorch_YOLO-Family/blob/24b92e3989a7506ba7e047c284fef69d7250a3b9/models/yolo/yolo_nano.py#L327

Thanks in advance