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

Pascal VOC training failure without Imagenet models #273

Closed
mbuckler opened this issue Jul 25, 2016 · 3 comments
Closed

Pascal VOC training failure without Imagenet models #273

mbuckler opened this issue Jul 25, 2016 · 3 comments

Comments

@mbuckler
Copy link

I've cloned the repo and followed the main readme instructions, but have encountered something odd. My goal is to train and test on Pascal VOC 2007 as shown in the readme, but when I execute:

./experiments/scripts/faster_rcnn_alt_opt.sh 0 VGG_CNN_M_1024 pascal_voc --set EXP_DIR foobar RNG_SEED 42

I experience the following error, and then the console hangs

Loading pretrained model weights from data/imagenet_models/VGG_CNN_M_1024.v2.caffemodel
F0725 15:54:36.400033 1801 io.cpp:54] Check failed: fd != -1 (-1 vs. -1) File not found: data/imagenet_models/VGG_CNN_M_1024.v2.caffemodel
*** Check failure stack trace: ***

Granted, these models don't exist since I skipped downloading them, but it would seem odd that a pretrained model is needed for training. Are these weights simply used as an initializer?

@mbuckler
Copy link
Author

I should note that after downloading the imagenet model training does run, however I am still interested in why the imagenet model is needed for training a fresh network, thanks

@GBJim
Copy link

GBJim commented Jul 28, 2016

Hi @mbuckler
Please refer to issue #238 for training without pre-trainined models

Most of the training of object detection tasks requires a pre-trained model, usually a net trained from ImageNet.
It's a typical approach of CNN-based algorithms in Computer Vision.
The reason is that we can leverage the learned features and "Fine-Tune" the net to adapt new domain.

It's possible to train Faster R-CNN without pre-trained models, but usually, we don't have enough data to converge the neural net.

@mbuckler
Copy link
Author

Hi GBJim, thank you for the explanation

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