-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Unable to train faster R-CNN on PASCAL VOC 2007 #128
Comments
You're right that faster rcnn doesn't require selective search data. Maybe you can show what you've done so far. |
Thanks for your reply. I am following that guide. I did not do anything fancy so far. Just followed instructions from Readme.md(the one you mentioned above but from the main repo). Only change is that I am using CPU mode. Hence I changed caffe.set_gpu_mode() to cpu_mode() in train_net.py and compiled caffe without GPU support. I downloaded PASCAL VOC 2007 dataset and uncompressed in VOCdevkit2007. Also, downloaded imagenet models which are used to initialize the network. After this, I simply run the command "./experiments/scripts/faster_rcnn_end2end.sh 0 VGG_CNN_M_1024 pascal_voc" . Attached is the console output when I run this script. Thanks. |
Certain version of EasyDict has bugs such that the parameters in YAML did not get propagated to the actual dictionary. A quick solution is to directly set config.py (accroding to your YMAL file) and re-run your training. |
Thanks. I modified the config.py to set the proposal method to rpn. Now it is taking RPN as proposal method. |
You should set the proposal method to gt as specified in the end2end YAML file. rpn is used for alternative optimization, where the region proposals are stored in files. |
Hi @gplhegde, Did you make it work? I also followed the guide and ran but I got the error as below:
Do you have any suggestion about this? Thank you! |
Hi @slchiang I dropped VGG net as I don't have a good GPU for that. However, I am able to train fast-rcnn ( this required you to prepare selective search data) using CaffeNet on my GPU. |
This reply is for original "AssertionError: Selective search data not found". I encountered this problem and found a way to solve it. The main cause of this error is the version of easydict. Here is only my experience, I hope it can solve the problem. |
Thank you all!!!! |
@Huangying-Zhan Hey, thanks for the clarification about easydict version, I am having the exact same problem as this thread and although I have used pip, the easydict I have installed is already 1.6, but it still doesn't work somehow. I wonder if it has to be the specific one that conda installs? I have been using Python but not the Anaconda version. Would it cause conflicts with Python? (I am new to Python) |
Hi, @duygusar , I think it should be the same. |
@Huangying-Zhan Thank you. I have figured out my problem was different after all, so it turns out it was a problem with how bash script passes parameters to train_net, I had commented out --weights and that has caused the rest of the parameters not be passed to train_net. It is fixed after removing that line completely. It seemed like I was having the same error because it wouldn't pass config.yml correctly! Thank you for the tips about Anaconda, it is helpful for a Python newbie. |
@Huangying-Zhan 厉害了我的哥! |
Hi, @gplhegde I'm trying alternative training on my own data. You said that you are able to train fast-rcnn ( this required you to prepare selective search data) using CaffeNet on your GPU. Have you succeed using RPN proposal but not selective search? |
@Huangying-Zhan Thank you so much! |
I follow the exact steps from Readme.md but unable to start training on PASCAL VOC dataset.
I run this command './experiments/scripts/faster_rcnn_end2end.sh 0 VGG_CNN_M_1024 pascal_voc' and got error "AssertionError: Selective search data not found". This error is because I do not have region proposals from selective search. However, from the paper I understand that faster r-cnn does not require this selective search data as it internally trains RPN. How do I set the proposal method to RPN instead of 'selective_search'? I am using the same configurations in this repo. My end goal is to train faster r-cnn on custom data. I am stuck in training the PASCAL VOC itself.
Appreciate help and suggestions. Thanks
The text was updated successfully, but these errors were encountered: