djiajunustc / TransVG

157 stars 26 forks source link

Question about the xywh2xyxy function! #12

Closed jianghaojun closed 2 years ago

jianghaojun commented 2 years ago

In data_loader.py, it is clear that the bbox is loaded in xyxy format.

https://github.com/djiajunustc/TransVG/blob/0ed86621b2baf13db8eef935eba79d5f0c085886/datasets/data_loader.py#L222

But in loss function, the bbox is converted to xyxy use xywh2xyxy function? Why the bbox is xywh format?

https://github.com/djiajunustc/TransVG/blob/0ed86621b2baf13db8eef935eba79d5f0c085886/utils/loss_utils.py#L122

jianghaojun commented 2 years ago

I find the convert process in tranforms.py!

https://github.com/djiajunustc/TransVG/blob/0ed86621b2baf13db8eef935eba79d5f0c085886/datasets/transforms.py#L201