Skip to content

assert rpn_keep.numel() == cfg.TRAIN.RPN_BATCHSIZE #5

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

Open
tcxia opened this issue Jan 19, 2020 · 0 comments
Open

assert rpn_keep.numel() == cfg.TRAIN.RPN_BATCHSIZE #5

tcxia opened this issue Jan 19, 2020 · 0 comments

Comments

@tcxia
Copy link

tcxia commented Jan 19, 2020

Traceback (most recent call last):
File "train.py", line 169, in
pretrained_model=args.weight, max_iters=args.max_iters)
File "/work/tcxia/codes/FasterRCNN-pytorch/lib/model/train_val.py", line 487, in train_net
sw.train_model(resume, max_iters)
File "/work/tcxia/codes/FasterRCNN-pytorch/lib/model/train_val.py", line 130, in train_model
loss_r, image_r = net.train_operation(blobs, None, image_if=True)
File "/work/tcxia/codes/FasterRCNN-pytorch/lib/nets/network.py", line 334, in train_operation
result_cls_prob, result_bbox_pred, result_rois = self(im_data, im_info, gt_boxes)
File "/work/tcxia/anaconda3/envs/py36_th0.4/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/work/tcxia/codes/FasterRCNN-pytorch/lib/nets/network.py", line 247, in forward
cls_prob, bbox_pred, rois = self._predict(im_data, im_info, gt_boxes)
File "/work/tcxia/codes/FasterRCNN-pytorch/lib/nets/network.py", line 214, in _predict
rois, rpn_scores, features = self._rpn(im_data, im_info, gt_boxes)
File "/work/tcxia/anaconda3/envs/py36_th0.4/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/work/tcxia/codes/FasterRCNN-pytorch/lib/nets/network.py", line 88, in forward
self.cross_entropy, self.loss_box = self._build_loss(rpn_cls_score_reshape, rpn_bbox_score, rpn_data)
File "/work/tcxia/codes/FasterRCNN-pytorch/lib/nets/network.py", line 104, in _build_loss
assert rpn_keep.numel() == cfg.TRAIN.RPN_BATCHSIZE
AssertionError

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

1 participant