DOTA_devkit icon indicating copy to clipboard operation
DOTA_devkit copied to clipboard

list index out of range

Open EatonL opened this issue 4 years ago • 9 comments

File "ResultMerge_multi_process.py", line 200, in mergesingle x_y_2 = re.findall(r'\d+', x_y[0]) IndexError: list index out of range

how to figure that?please

EatonL avatar Sep 23 '20 09:09 EatonL

楼主解决了吗,遇到了同样的问题

xiaoliyun avatar Nov 11 '20 06:11 xiaoliyun

I had the same question.

JonasZero avatar Apr 21 '21 12:04 JonasZero

I have the same question. I'm guessing the reason for the error is how the files are named. Basically mergesingle method expects the filenames to be in a specific format (as in the regex that finds x_y_2 and x_y). I suspect this should be something like P0000__0.5__0___0 which I saw here. However I'm not sure how to preprocess the dataset so the files will be named accordingly. Does anyone know how to change the file names/what the filename format means?

HappyBahman avatar Mar 22 '22 11:03 HappyBahman

UPDATE: You'll need to either split images in preprocessing (there is a guide for that in demo) or comment the line that tries to merge the results.

HappyBahman avatar Mar 22 '22 15:03 HappyBahman

楼主解决了吗,遇到了同样的问题

解决了吗,大哥,求帮助

gzyluck avatar Sep 12 '22 18:09 gzyluck

UPDATE: You'll need to either split images in preprocessing (there is a guide for that in demo) or comment the line that tries to merge the results.

Please tell me what to do, thanks for the help

gzyluck avatar Sep 12 '22 18:09 gzyluck

File "ResultMerge_multi_process.py", line 200, in mergesingle x_y_2 = re.findall(r'\d+', x_y[0]) IndexError: list index out of range

how to figure that?please

我该怎么办?请问你解决了吗?我有同样的问题 期待你的回复

gzyluck avatar Sep 12 '22 18:09 gzyluck

UPDATE: You'll need to either split images in preprocessing (there is a guide for that in demo) or comment the line that tries to merge the results.

Please tell me what to do, thanks for the help

Hi, I wrote that a while ago so my memory is a bit foggy, but it might be a good idea to have a look at the ImgSplit_multi_process.py and ImgSplit.py files. You should be able to either split the images using those files or write your own "image-splitting" code to split the images by looking at how it's done in those files. This would create a new dataset with the standard filenames and the error should be fixed. Hope this helps. Good luck.

HappyBahman avatar Sep 15 '22 16:09 HappyBahman

thank you .

@.***

 

------------------ 原始邮件 ------------------ 发件人: "CAPTAIN-WHU/DOTA_devkit" @.>; 发送时间: 2022年9月16日(星期五) 凌晨0:46 @.>; @.@.>; 主题: Re: [CAPTAIN-WHU/DOTA_devkit] list index out of range (#38)

UPDATE: You'll need to either split images in preprocessing (there is a guide for that in demo) or comment the line that tries to merge the results.

Please tell me what to do, thanks for the help

Hi, I wrote that a while ago so my memory is a bit foggy, but there have a look at the ImgSplit_multi_process.py and ImgSplit.py files. You should be able to either split the images using or write your own "image-splitting" code to split the images by looking at how it's done in those files. This would create a new dataset with the standard filenames and the error should be fixed. Hope this helps. Good luck.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

gzyluck avatar Sep 19 '22 01:09 gzyluck