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

Train squeezedet for own dataset for 1 class #15

Open
Shashikant255 opened this issue Aug 24, 2018 · 4 comments
Open

Train squeezedet for own dataset for 1 class #15

Shashikant255 opened this issue Aug 24, 2018 · 4 comments

Comments

@Shashikant255
Copy link

Hi,
I am wondering how to do transfer learning for squeezedet using pretrained model. I also want to reduce number of classes to 1.

@daisukelab
Copy link

Hi, I could successfully train my own.
You can simply edit squeeze.config created by python ../../main/config/create_config.py.
Check it first, it is easy to customize.
Regarding pretrained model, you can find following instruction in README.md. Change # of GPU to match to your environment.

python ../../scripts/train.py --gpus 2 --init ../../main/model/imagenet.h5

Hope this helps.

@Shashikant255
Copy link
Author

@daisukelab Thanks for your help.
I have one more doubt regarding label (bounding box information about object i.e x, y, w, h) file. If any image doesn't have any class or object then its corresponding label file should be empty?

@daisukelab
Copy link

Hi, training code doesn't allow to have empty label, then you need to remove images which have zero class label from your train/valid lists. (I already experienced that training stopped with an error, then removed these entries to solve this issue.)

@Caliber2
Copy link

"CLASSES": 1,
"CLASS_NAMES": ["my_object"] is this correct way top modify squeeze.config for single object detection? or background needs to be added in CLASS_NAMES and CLASSES = 2?

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

3 participants