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

top[idx].reshape(1, self._num_classes * 4) IndexError: Index out of range #26

Open
zhoupan9109 opened this issue Sep 17, 2018 · 2 comments

Comments

@zhoupan9109
Copy link

My dataset calsses number is 5 and I change *.prototxt files into 5 classes number, I can get the train model. But when I run ./tools/demo.py -- net resnet50 , it runs with the error as follow:

Traceback (most recent call last): File "./tools/demo.py", line 283, in
net = caffe.Net(prototxt, caffemodel, caffe.TEST)
File "/home/zhoupan/caffe/models/faster-rcnn-resnet/tools/../lib/roi_data_layer/layer.py", line 131, in setup
top[idx].reshape(1, self._num_classes * 4)
IndexError: Index out of range

How can I solve this problem? Thank you very much!

@zhoupan9109
Copy link
Author

I use the caffemodel is faster-rcnn-resnet50.

@wanggp01
Copy link

My dataset calsses number is 5 and I change *.prototxt files into 5 classes number, I can get the train model. But when I run ./tools/demo.py -- net resnet50 , it runs with the error as follow:

Traceback (most recent call last): File "./tools/demo.py", line 283, in
net = caffe.Net(prototxt, caffemodel, caffe.TEST)
File "/home/zhoupan/caffe/models/faster-rcnn-resnet/tools/../lib/roi_data_layer/layer.py", line 131, in setup
top[idx].reshape(1, self._num_classes * 4)
IndexError: Index out of range

How can I solve this problem? Thank you very much!

I have the same error,do you have resolve this?

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