Skip to content
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

Error in validation data when training model on HRSC216 dataset #16

Closed
TerrafYassin opened this issue Jul 29, 2022 · 13 comments
Closed

Comments

@TerrafYassin
Copy link

File "/content/drive/MyDrive/GGHL/evalR/evaluatorGGHL.py", line 237, in __calc_APs
use_07_metric) # 调用voc_eval.py的函数进行计算
File "/content/drive/MyDrive/GGHL/evalR/voc_eval.py", line 122, in voc_eval
recs[imagename] = parse_poly(annopath.format(imagename))
File "/content/drive/MyDrive/GGHL/evalR/voc_eval.py", line 44, in parse_poly
object_struct['name'] = classes[int(splitlines[0])]
ValueError: invalid literal for int() with base 10: 'ship'

@Shank2358
Copy link
Owner

Hi, the format of the validation data is not the same as the format of the training data. They take the following forms, respectively.
image

The label of the validation data looks like this
image

This link contains the verification data that I have processed, unzip them to the corresponding folder and use it.
https://drive.google.com/file/d/11gLUkG4aUF1tV-aOXujRukUQ1K9cFTYY/view?usp=sharing

Thanks.

@Shank2358
Copy link
Owner

This is the training labels.
train_HRSC2016.txt

@TerrafYassin
Copy link
Author

Hello sir ,
Thank you for the reply , i sent you authorization request to your mail.
My mail is yassin.terraf.estm@gmail.com

@Shank2358
Copy link
Owner

Hello sir , Thank you for the reply , i sent you authorization request to your mail. My mail is yassin.terraf.estm@gmail.com

OK. Please check it.

@TerrafYassin
Copy link
Author

TerrafYassin commented Jul 29, 2022

Well received sir but please can you explain to me step by step how you are passed from the following format to GGHL format ,
I know this is a trivial question but i have just begun my PHD , thank you sir .
image

@TerrafYassin
Copy link
Author

TerrafYassin commented Jul 29, 2022

Also sir , you have shared with me your tested data used to test your model not validation data used during model training after 50 epochs ?

@Shank2358
Copy link
Owner

Also sir , you have shared with me your tested data used to test your model not validation data used during model training after 50 epochs ?

Hi. Since we use both training and validation sets for training, the test set is used for testing. So the validation set is included in trainHRSC2016.txt. The separate verification set I also uploaded to Google Drive. The link is below.
https://drive.google.com/file/d/1ZBW1eGFBhzKz5CeTHtHwPLabDzIA9nHd/view?usp=sharing

@Shank2358
Copy link
Owner

Well received sir but please can you explain to me step by step how you are passed from the following format to GGHL format , I know this is a trivial question but i have just begun my PHD , thank you sir . image

First, use the following script to convert the .xml labels of the HRSC2016 dataset to txt tags. Then, use the script given in the repository to convert it to the format required by GGHL.
HRSC_script.txt

@TerrafYassin
Copy link
Author

can you share with me sir also your config.py content and did you change anything in the lie bellow ?
image

@Shank2358
Copy link
Owner

can you share with me sir also your config.py content and did you change anything in the lie bellow ? image

image
image

@Shank2358
Copy link
Owner

can you share with me sir also your config.py content and did you change anything in the lie bellow ? image

maybe here. replace '.jpg' wit '.png'?
image

@TerrafYassin
Copy link
Author

Well received sir but please can you explain to me step by step how you are passed from the following format to GGHL format , I know this is a trivial question but i have just begun my PHD , thank you sir . image

First, use the following script to convert the .xml labels of the HRSC2016 dataset to txt tags. Then, use the script given in the repository to convert it to the format required by GGHL. HRSC_script.txt

This script generate .xml files not txt files sir,
image

@Shank2358
Copy link
Owner

Well received sir but please can you explain to me step by step how you are passed from the following format to GGHL format , I know this is a trivial question but i have just begun my PHD , thank you sir . image

First, use the following script to convert the .xml labels of the HRSC2016 dataset to txt tags. Then, use the script given in the repository to convert it to the format required by GGHL. HRSC_script.txt

This script generate .xml files not txt files sir, image

Sorry, I forgot, there is one more script. First use this script to convert it to .xml in VOC format, then use another to convert .xml to txt. Hold me a minute, I'll send you another script later because I don't have a computer right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants