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

ValueError: all the input array dimensions except for the concatenation axis must match exactly #3

Open
BinWang-shu opened this issue Jun 21, 2017 · 2 comments

Comments

@BinWang-shu
Copy link

I have the problem that:
File "train.py", line 124, in
net(im_data, im_info, gt_boxes, gt_ishard, dontcare_areas)
File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 206, in call
result = self.forward(*input, **kwargs)
File "/home/wangbin/wb/pytorch/pytorch_RFCN-master/faster_rcnn/rfcn.py", line 236, in forward
roi_data = self.proposal_target_layer(rois, gt_boxes, gt_ishard, dontcare_areas, self.n_classes)
File "/home/wangbin/wb/pytorch/pytorch_RFCN-master/faster_rcnn/rfcn.py", line 305, in proposal_target_layer
proposal_target_layer_py(rpn_rois, gt_boxes, gt_ishard, dontcare_areas, num_classes)
File "/home/wangbin/wb/pytorch/pytorch_RFCN-master/faster_rcnn/rpn_msr/proposal_target_layer.py", line 66, in proposal_target_layer
np.hstack((zeros, np.vstack((gt_easyboxes[:, :-1], jittered_gt_boxes[:, :-1]))))))
File "/usr/local/lib/python2.7/dist-packages/numpy/core/shape_base.py", line 230, in vstack
return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
ValueError: all the input array dimensions except for the concatenation axis must match exactly

I find that the "rcnn_cls" is "nan" and the features generated by VGG16 are zeros.
Could you help me!

@liyuanyaun
Copy link

you can check your boxes annotation

@hellooctopus
Copy link

I meet the same questions. How did you solve it?

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