yangxue0827 / RotationDetection

This is a tensorflow-based rotation detection benchmark, also called AlphaRotate.
https://rotationdetection.readthedocs.io/
Apache License 2.0
1.07k stars 180 forks source link

KFiou计算疑问 #111

Closed LUO77123 closed 2 years ago

LUO77123 commented 2 years ago

大佬您好,在您的论文上KFiou存在上限,自己按着计算得到不一致的值 image

在KFIou loss计算中,KF的定义看明白了,但是KF2的定义没明白,tmp,item1,2,3,是什么喃 image

yangxue0827 commented 2 years ago
image

应该是写错了,可以看附录部分的证明,少了一个+1

LUO77123 commented 2 years ago
image

应该是写错了,可以看附录部分的证明,少了一个+1

感谢大佬解答,还想请问一下https://github.com/yangxue0827/RotationDetection/blob/main/alpharotate/utils/kf.py 中的KF和KF2的区别在哪里喃 image

yangxue0827 commented 2 years ago

只是历史遗留的代码草稿,你只需要看我最终使用的那个就行。

LUO77123 commented 2 years ago

只是历史遗留的代码草稿,你只需要看我最终使用的那个就行。

好的,谢谢大佬回复,非常感谢,这里的要好移植一点,这里没有mmrotate里面的pre,targets的decode呀

yangxue0827 commented 2 years ago

这里的boxes1和boxes2就是mmrotate里面的pre,targets的decode

yangxue0827 commented 2 years ago

mmrotate一个函数包含了两部分loss,这里的只包含的第二部分,第一份部分写在外面。

LUO77123 commented 2 years ago

mmrotate一个函数包含了两部分loss,这里的只包含的第二部分,第一份部分写在外面。

您的意思,将poly坐标转化为xywh theat 就是decode吗

yangxue0827 commented 2 years ago

模型预测的是五个参数的偏移量,我们需要通过decode得到经过偏移之后box的在图像上的坐标。

LUO77123 commented 2 years ago

模型预测的是五个参数的偏移量,我们需要通过decode得到经过偏移之后box的在图像上的坐标。

嗯嗯,明白了,知道怎么处理了,谢谢大佬解答