pycococreator icon indicating copy to clipboard operation
pycococreator copied to clipboard

Mask RCNN and RLE

Open enemni opened this issue 7 years ago • 3 comments

Hello everyone,

I am running the matterport Mask_RCNN on my own dataset created using waspinator/pycococreator

Everything works fine when I am using polygons, but as soon as I am using RLE because I have crowded images I got an error when trying to display a few images from the training dataset,

I got problems with images with holes using polygons and I assumed that is why the pycococreator uses RLE when the image is crowded. This part works perfectly, but then since MaskRCCN requires polygons I am stuck in this loop.

Is there a way to convert RLE to Polygons? I am not even sure this would solve the problem

enemni avatar Apr 25 '19 12:04 enemni

you can decode RLE into binary masks using the decode function in the original cocoapi tools, and then use binary_mask_to_polygon to get a polygon.

But the current coco format doesn't encode holes in objects properly, so this may not help solve your issue.

waspinator avatar May 29 '19 16:05 waspinator

Hello everyone,

I am running the matterport Mask_RCNN on my own dataset created using waspinator/pycococreator

Everything works fine when I am using polygons, but as soon as I am using RLE because I have crowded images I got an error when trying to display a few images from the training dataset,

I got problems with images with holes using polygons and I assumed that is why the pycococreator uses RLE when the image is crowded. This part works perfectly, but then since MaskRCCN requires polygons I am stuck in this loop.

Is there a way to convert RLE to Polygons? I am not even sure this would solve the problem

Hello,Excuse me, I want to know how to train a new mode, I use the software named "labelme" to label my data, I want to train a new model starting from pre-trained COCO weights, but I don't know how to write the annotation file in validate set, are there tools to help me? Thank you.

gethubwy avatar Jul 05 '20 06:07 gethubwy

Hello @gethubwy, I am not sure I get your question, can you please share the code with us. labelme should solve your problem and label your entire dataset

enemni avatar Jul 14 '20 08:07 enemni