-
Hello, I am trying to train a model on fashionpedia dataset: https://github.com/cvdfoundation/fashionpedia#annotations The dataset itself is in coco format, and has a mix of Polygons and RLE annotations. I've noticed that when trying to load the RLE annotations, the code crashed with the following error:
This seems to happen when it hits an annotation with the following "segmentation" key:
Here is the config I am using:
I am new to MMDetection and following along with this tutorial: https://mmdetection.readthedocs.io/en/stable/2_new_data_model.html I appreciate any help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So I can confirm the issue is that the original fashionpedia annotation has a mix of RLE and Polygons, and Here is a notebook to convert RLE masks to polygons on fashionpedia: https://colab.research.google.com/drive/1BQKlXit_e8USsRJmlTSIvr59li3GbWaT?usp=sharing |
Beta Was this translation helpful? Give feedback.
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