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: could not broadcast input array from shape (2,17100,1) into shape (17100,1) #22

Open
zhuyanfang000 opened this issue Mar 31, 2018 · 1 comment

Comments

@zhuyanfang000
Copy link

who knows why?T-T I'm crazy!
I0331 21:30:19.628304 16920 net.cpp:744] Ignoring source layer fc1000
I0331 21:30:19.628332 16920 net.cpp:744] Ignoring source layer prob
Solving...
Traceback (most recent call last):
File "./tools/train_net.py", line 112, in
max_iters=args.max_iters)
File "/home/omnisky/faster-rcnn-resnet-master/tools/../lib/fast_rcnn/train.py", line 160, in train_net
model_paths = sw.train_model(max_iters)
File "/home/omnisky/faster-rcnn-resnet-master/tools/../lib/fast_rcnn/train.py", line 101, in train_model
self.solver.step(1)
File "/home/omnisky/faster-rcnn-resnet-master/tools/../lib/rpn/proposal_layer.py", line 122, in forward
proposals = bbox_transform_inv(anchors, bbox_deltas)
File "/home/omnisky/faster-rcnn-resnet-master/tools/../lib/fast_rcnn/bbox_transform.py", line 53, in bbox_transform_inv
pred_boxes[:, 0::4] = pred_ctr_x - 0.5 * pred_w
ValueError: could not broadcast input array from shape (2,17100,1) into shape (17100,1)

@Microos
Copy link

Microos commented Apr 4, 2018

you shall check your anchor numbers to see if they are consistent in related layers

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