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

detect all objects in one image as "person"? #486

Closed
kecaiwu opened this issue Feb 16, 2017 · 2 comments
Closed

detect all objects in one image as "person"? #486

kecaiwu opened this issue Feb 16, 2017 · 2 comments

Comments

@kecaiwu
Copy link

kecaiwu commented Feb 16, 2017

I want to use the faster rcnn to train a model that only detect "person" class. So i use the pascal voc 2007 dataset, i had changed the code in lib/dataset/pascal_voc.py. I get some models by the faster rcnn. However, the model detect all objects in one image and label them "person", Why?

pascal_voc.py
// 001
self._classes = ('background', 'person')
// 002
cls = self._class_to_ind['person']

figure_5-1

@kecaiwu kecaiwu changed the title detect all objects in one image as person? detect all objects in one image as "person"? Feb 16, 2017
@shoCaffeTeria
Copy link

Hi, kecaiwu

It's weird. I dont know why it happened.

Did you delete the ground truth cache?
I'm sorry I forgot where it was. But the name is like "*_gt_roidb.pkl"

@kecaiwu
Copy link
Author

kecaiwu commented Feb 16, 2017

The reason is we label all objects in images of pascal voc dataset as "person", by "cls = self._class_to_ind['person']" @shoCaffeTeria

@kecaiwu kecaiwu closed this as completed Apr 11, 2017
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