Closed jianghaojun closed 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
I find the convert process in tranforms.py!
https://github.com/djiajunustc/TransVG/blob/0ed86621b2baf13db8eef935eba79d5f0c085886/datasets/transforms.py#L201
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