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

Bug: Using images out of ImageSets\Main\trainval.txt for training #102

Open
jamiechoi1995 opened this issue Apr 15, 2019 · 1 comment
Open

Comments

@jamiechoi1995
Copy link

In convert_tfrecords.py, it converts all images in VOCdevkit\VOC2012\JPEGImages into tfrecords for training,

for split in all_splits:
jpeg_file_path = os.path.join(directory, split, 'JPEGImages')
images = tf.gfile.ListDirectory(jpeg_file_path)
jpegs = [im_name for im_name in images if im_name.strip()[-3:]=='jpg']
all_records.extend(list(zip([split] * len(jpegs), jpegs)))

However, not all the images in VOC2012 are for detection, there are only 11540 images specified in ImageSets\Main\trainval.txt for detection. But in JPEGImages there are 17125 images, these extra images are for action classification, so they only annotate human, ignoring other classes.
Eg,
图片
图片

Using these images will be harmful for training.

@jamiechoi1995 jamiechoi1995 changed the title Bug: Using images out of ImageSets\Main\trainval.txt for trainining Bug: Using images out of ImageSets\Main\trainval.txt for training Apr 15, 2019
@jamiechoi1995
Copy link
Author

jamiechoi1995 commented Apr 17, 2019

after removing the images and using 11540 images to train the model, I got 0.7785 mAP with the default settings using model-ckpt-116604

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

1 participant