Open JasperKirk opened 3 years ago
Well done. At first, you should know what the MBR means and how to get MBR.
1.The MBR is Minimum bounding rectangle, it should be the dotted area in the picture on the paper(the follow picture). When you calculate WY,I guess your code m and n are the coordinates of the upper left and lower right corners of the box(m={A,C},n={E,G}). If all torch.max() is used, is it calculated as | EG |? If I guess wrong or be misunderstood, please feel free to enlighten me
2.Why use anchor and target to calculate diou instead of pred and target? https://github.com/Alan-D-Chen/CDIoU-CDIoUloss/blob/5b911bc2cfe39c671a4e514d06ea73ad1f53292e/atss_core/modeling/rpn/atss/loss.py#L76 dious = box_dious(anchor, target)
3.0 ≤ diou < 1, How is the upper bound (diou < 1)calculated?
Thank you again for your excellent work, and if my understanding is wrong, please point it out for me.
I think Am and Bm should use torch.min(), and Cm and Dm should use torch.max(). @JasperKirk @Alan-D-Chen
I agree with you.@hujunchao
Sorry, I have updated my code. Q1 I uploaded the code V1.0 by mistake. There is code V3.0. Q2 "Anchor" is just a code, the substance is the same as you think。 Q3 It is easy. Q4 ..........
This is a really great repo and I'm enjoying reading it.But I have a question about Compute MBR Diagonal. Why Am,Bm,Cm,Dm are all use torch.max()