在使用DOTA-devkit中的ResultMerger.py合并DOTA数据集结果时遇到了问题。有人可以向我解释为什么我们将pattern1与subname变量进行比较吗?据我所知,子名称变量不包含代码中指定的任何模式。
我的堆栈跟踪:
name: P0053__1__0___0
splitname: ['662']
oriname: 662
subname: 662
pattern: __\d+___\d+
x_y: []
Traceback (most recent call last):
File "ResultMerge.py", line 177, in <module>
mergebypoly(r'result_1', r'final_result')
File "ResultMerge.py", line 175, in mergebypoly
py_cpu_nms_poly)
File "ResultMerge.py", line 124, in mergebase
x_y_2 = re.findall(r'\d+', x_y[0])
IndexError: list index out of range