Coordinate ordering? #232
Replies: 1 comment 2 replies
-
@jaideep11061982 The processed output from the model (after NMS) is XYXY, torchvision's NMS operates in XYXY so I convert from the model's YXYX and I decided not to convert back (for performance, since COCO needs it in XYWH anyways). It's mentioned in a few places and you can search past issues, discussions. But not all that clear I guess. The internal model and anchor / labelling code based on the original TF model layout (and for weight compatibility) is all YXYX so that is why the targets need to be YXYX. The evaluators also differ, COCO evaluator expects XYWH and the TF models based evaluators tha are used for Pascal and OpenImages expect YXYX. Conversions are all done correctly in the example COCO / Pascal / OpenImages datasets, train/validation scripts, and Evaluators. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
A clear and concise description of what the bug is.
I tweak the order of box coordinates in dataset for target from xyxy to yxyx
output
When i check the models predictions for corresponding image it seem to be giving in the order xyxy
I get this. Visually predicted and target look identical .
To Reproduce
Steps to reproduce the behavior:
1.
2.
Expected behavior
A clear and concise description of what you expected to happen.
Why the order of model is different than what we pass in target.
Also fyi . My mAP even though for a sample image prediction look good never cross up 0.02 .
m i getting confused with box orders ?
Screenshots
If applicable, add screenshots to help explain your problem. predicted
Ground truth
Desktop (please complete the following information):
conda list
, 1.7.0 py3.8_cuda11.0.221_cudnn8.0.3_0]Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions