Maskrcnn-benchmark: RuntimeError: copy_if failed to synchronize: device-side assert triggered

Created on 18 Feb 2019  路  5Comments  路  Source: facebookresearch/maskrcnn-benchmark

I have a question. Have you ever met it? Thank you in advance. RuntimeError: copy_if failed to synchronize: device-side assert triggered

Most helpful comment

Thank you. I have solved this problem._C.MODEL.ROI_BOX_HEAD.NUM_CLASSES = 22.
I gave it a wrong value.

All 5 comments

Thank you. I have solved this problem._C.MODEL.ROI_BOX_HEAD.NUM_CLASSES = 22.
I gave it a wrong value.

Cool, great that you managed to fix your problem!

Thank you. I have solved this problem._C.MODEL.ROI_BOX_HEAD.NUM_CLASSES = 22.
I gave it a wrong value.

I also meet the error, how to fix it ? What is _C.MODEL.ROI_BOX_HEAD.NUM_CLASSES ?

I had five classes, I added + 1 on the defaults.py file _C.MODEL.ROI_BOX_HEAD.NUM_CLASSES = 6

That's probably because the category id is staring from 1 instead of 0. 0 <= category_id < NUM_CLASSES

Was this page helpful?
0 / 5 - 0 ratings