-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Support RLE format and binary masks. #16
Comments
I totally agree about binary masks. Indeed, there is a draft implementation in here that supports some functionality. Ideally, I'd want I'm less sure about RLE format, is it commonly used elsewhere, or only in COCO for the crowd category? But contributions are more than welcome! :-) |
@fmassa For RLE format, we can store it in coco-style json file (Or maybe the paths of binary mask can be stored in json file). Then we can load the json file into memory and convert mask of any format to binary mask, and then do some transformations. I want this feature because sometimes polygons are not very convenient. |
My understanding is that RLE is great for storing data in disk, but many operations are hard to be performed directly on the RLE representation, and passing via a mask representation is generally easier / necessary. Here is what I propose: adding full support for binary masks (i.e., finishing the What do you think? |
@fmassa Agree with you. The internal converting to binary masks is exactly what I want. |
Solved by PR #150 |
🚀 Feature
Currently the code is based on polygon masks. RLE and binary masks should be supported for general datasets.
The text was updated successfully, but these errors were encountered: