-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 在验证时想要用预测值和真实值的水平框计算iou应该怎么做? #1037
Comments
评估有个test模式,会把预测存成txt,你先把结果转成最小外接,再调用那个dota devkit的评估工具,对预测值和参考值进行计算 |
感谢大佬的回复!我的水平实在不够,请问一下您说的这个评估是怎么进行的?我没有找到这个程序 |
非大佬,刚好用过。就是测试的脚本,有一条命令是用于提交到DOTA官网的,在测试集上进行的,所以会生成预测的txt文件还有zip包。后面那个,你检索一下dota本地验证集评估的代码,然后去更换路径就可以了 |
参考mmrotate\core\evaluation\eval_map.py文件中的tpfp_default函数中的box_iou_rotated函数(大概第60行) |
万分感谢,找到了,在test.py里有一个参数--format-only |
我找到了这个函数,但是它涉及mmcv库的调用,如果对这个仿照写一个矩形框的会比较复杂,总而言之谢谢你 |
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
master branch https://github.com/open-mmlab/mmrotate
Environment
""
Reproduces the problem - code sample
""
Reproduces the problem - command or script
“python test.py”
Reproduces the problem - error message
""
Additional information
感谢大佬们出色的工作,有个问题想咨询一下,我现在想在验证mAP的时候修改iou的计算方式,使其变成bbox1和bbox2的最小外接水平矩形的iou,应该如何做?
The text was updated successfully, but these errors were encountered: