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

Index out of bounds error in line 143 of proposal_annotator.py #137

Open
RelativeQuanta opened this issue Jun 21, 2018 · 1 comment
Open

Comments

@RelativeQuanta
Copy link

I'm having trouble training FCIS on a set of images that are annotated in the COCO style. I'm only using three classes (background, a, and b).

I've found that if I use only a annotations, there's no trouble training. The same is true if I only have b annotations. However, if I include both sets of annotations, I get the following error:

Error in CustomOp.forward: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/mxnet-0.9.5-py2.7.egg/mxnet/operator.py", line 758, in forward_entry
aux=tensors[4])
File "/scratch1/scol7/FCIS-master/fcis/operator_py/proposal_annotator.py", line 56, in forward
self._cfg, gt_boxes=gt_boxes, gt_masks=gt_masks)
File "/scratch1/scol7/FCIS-master/fcis/operator_py/proposal_annotator.py", line 143, in sample_rois
gt_mask = gt_masks[gt_assignment[obj]]
IndexError: index 2 is out of bounds for axis 0 with size 1

I don't understand why the gt_mask would only have a size of 1 when I only include images with at least two annotated classes. This error even happens if I clean all my annotations so there are 0 overlaps.

What can cause this error?

Thanks!

@jman278
Copy link

jman278 commented Nov 11, 2019

@RelativeQuanta : have you been able to fix 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