-
Notifications
You must be signed in to change notification settings - Fork 157
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
Enable support for RLE encoded segmentations #44
Comments
I met the same problem as you. Have you solved it now? |
Unfortunately no: I had to switch from RLE to polygons. Here's a link, in case you need to make COCO style polygon annotations yourself out of segmentation masks: https://www.immersivelimit.com/tutorials/create-coco-annotations-from-scratch. However, I should mention that when simplifying the polygons' geometries with |
I also want to use bitmasks; the polygon annotations are tricky when simplifying using shapely, and also occupy larger space. In order to use bitmasks, one needs to modify |
Hello @miasch @mjkvaak @Schneey , I am facing the same problem. how did yall solve the problem? I am trying to implement CenterMask2 https://github.com/youngwanLEE/centermask2 which makes use of Detectron2. Can somebody help me out here with what could be done?
|
If i remember correctly, I had the exact same error. I didn't ever put a lot of effort to try to solve problem, but switched to using conventional polygon annotations instead (see above). |
Hello @mjkvaak, Is it possible to train Cenetrmask2 with Rle segmentation annotations? |
If MASKIOU_ON = True, the error will come up. If MASKIOU_ON = False, the error will not take place. cropped_mask = crop(instances_per_image.gt_masks.polygons, instances_per_image.proposal_boxes.tensor) The MASKIOU only can be trained with polygons instead of RLE format, but my dataset only has RLE format in segmentation. |
Hi there! Thanks of the amazing repository.
I tried training my model with custom data (following
detectron2
guidelines) with annotation masks encoded in RLE. I also usedcfg.INPUT.MASK_FORMAT='bitmask'
. All thedetectron2
magic works - loading the data, building the model etc. - but the code crashes when the model first tries to evaluate the losses. Attached is (the relevant part of) the error message, from which I would deduce that somewhere in the code a conversion of masks fromBitmasks
toPolygons
would be needed.The text was updated successfully, but these errors were encountered: