TillBeemelmanns / cityscapes-to-coco-conversion

Cityscapes to CoCo Format Conversion Tool for Mask-RCNN and Detectron
78 stars 14 forks source link

How to convert to other classes (ex: traffic light, traffic signs) #7

Closed MarceloContreras closed 10 months ago

MarceloContreras commented 1 year ago

Has somebody successfully converted cityscapes dataset filtering classes such as traffic lights, poles, etc? Indeed, I did the change of desired classes in category_instancesonly and also commented on the invalid contour warning. However, even if I did that, I still get .json output files with 0 annotations.

aitor-martinez-seras commented 1 year ago

The problem is that instanceIds images, where the different instances are labeled, do not have the labels for traffic lights, traffic signs, etc... They only have the categories used in this repo. Therefore it is not possible to extract those classes' ground truth for 2d bboxes.

TillBeemelmanns commented 10 months ago

The annotated classes in Cityscapes are shown here https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/helpers/labels.py#L88

As already pointed out. Traffic light and traffic signs do not have instance annotations.