cocodataset / cocoapi

COCO API - Dataset @ http://cocodataset.org/
Other
6.1k stars 3.76k forks source link

what is RLE? #184

Closed isalirezag closed 6 years ago

isalirezag commented 6 years ago

im new to this topic. I understand the segmentation via polygons, but i dont know what RLE is? Can anyone explain or guide me to a direction to learn more about it? Any visual example, any explanation?

Thanks

SamL98 commented 6 years ago

I believe RLE is run-length encoding. It is used to encode the location of foreground objects in segmentation. Instead of outputting a mask image, you give a list of start pixels and how many pixels after each of those starts are included in the mask. You can look on the submission section on this page for a specific example: https://www.kaggle.com/c/data-science-bowl-2018#evaluation

dhirajsuvarna commented 3 years ago

A great explanation of the coco file format along with detailed explanation of RLE and iscrowd - Coco file format

analyticsbot commented 3 years ago

A great explanation of the coco file format along with detailed explanation of RLE and iscrowd - Coco file format

this was indeed helpful.

bit-scientist commented 2 years ago

@dhirajsuvarna could you provide some annotation tools to load an image and annotate it to match with coco file format? Thanks.

emsko commented 6 months ago

A great explanation of the coco file format along with detailed explanation of RLE and iscrowd - Coco file format

There is an error in this video - RLE in coco runs column by column, not row-wise. The author explained his mistake in that video: RLE - encoding with Python