-
Notifications
You must be signed in to change notification settings - Fork 263
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
TypeError: slice indices must be integers or None or have an __index__ method #104
Comments
The new problem is "ValueError: Could not broadcast input array from shape (4) into shape (0)" in this line. |
|
Have you solved the problem?? |
Hello, I have some problems when running the codes on coco. Maybe you can solve it easily. Thank you very much.
Traceback (most recent call last),
File "./tools/train_net.py", line 112, in
max_iters=args.max_iters)
File "/home/zhanglipeng6/ResNet/FPN/tools/../lib/fast_rcnn/train.py", line 146, in train_net
model_paths = sw.train_model(max_iters)
File "/home/zhanglipeng6/ResNet/FPN/tools/../lib/fast_rcnn/train.py", line 86, in train_model
self.solver.step(1)
File "/home/zhanglipeng6/ResNet/FPN/tools/../lib/rpn/proposal_target_layer.py", line 131, in forward
rois_per_image, self._num_classes,sample_type='fpn', k0 = 4)
File "/home/zhanglipeng6/ResNet/FPN/tools/../lib/rpn/proposal_target_layer.py", line 305, in _sample_rois
_get_bbox_regression_labels(bbox_target_data, num_classes)
File "/home/zhanglipeng6/ResNet/FPN/tools/../lib/rpn/proposal_target_layer.py", line 241, in _get_bbox_regression_labels
bbox_targets[ind, start:end] = bbox_target_data[ind, 1:]
TypeError: slice indices must be integers or None or have an index method
The text was updated successfully, but these errors were encountered: