yijingru / BBAVectors-Oriented-Object-Detection

[WACV2021] Oriented Object Detection in Aerial Images with Box Boundary-Aware Vectors
MIT License
466 stars 87 forks source link

IndexError: list index out of range in Eval phase when file names have different format #122

Closed HappyBahman closed 2 years ago

HappyBahman commented 2 years ago

When running python main.py --data_dir dataPath --conf_thresh 0.1 --batch_size 16 --dataset dota --phase eval I get error:

multiprocessing.pool.RemoteTraceback: 
 """
 Traceback (most recent call last):
   File "/opt/conda/lib/python3.7/multiprocessing/pool.py", line 121, in worker
     result = (True, func(*args, **kwds))
   File "/opt/conda/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
     return list(map(*args))
   File "/BBAV/BBAVectors-Oriented-Object-Detection/datasets/DOTA_devkit/ResultMerge_multi_process.py", line 203, in mergesingle
     x_y_2 = re.findall(r'\d+', x_y[0])
 IndexError: list index out of range
 """

In the readme.md the files are named like P0000__0.5__0___0, but my files are named like P0000 which results in x_y being an empty list since regex is not finding anything matching r'__\d+___\d+'. I was wondering how should I preprocess my files so their names would have the correct format?