Skip to content

RLE and polygon masks don't seem to play nicely together #9290

Answered by jerpint
jerpint asked this question in Q&A
Discussion options

You must be logged in to vote

So I can confirm the issue is that the original fashionpedia annotation has a mix of RLE and Polygons, and mmdet seems to supports either/or, but not both simultaneously, i.e annotations must be either all RLE, or all Polygons. The only solution I have found was to convert the RLE annotations to polygons. After conversion, the training seems to run fine.

Here is a notebook to convert RLE masks to polygons on fashionpedia: https://colab.research.google.com/drive/1BQKlXit_e8USsRJmlTSIvr59li3GbWaT?usp=sharing

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jerpint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant