Przeglądaj źródła

labelme2coco: remove assert for background class (coco annotations don't have one)

Daniel Rose 6 lat temu
rodzic
commit
2314de584b
1 zmienionych plików z 0 dodań i 2 usunięć
  1. 0 2
      examples/instance_segmentation/labelme2coco.py

+ 0 - 2
examples/instance_segmentation/labelme2coco.py

@@ -72,8 +72,6 @@ def main():
         if class_id == -1:
             assert class_name == '__ignore__'
             continue
-        elif class_id == 0:
-            assert class_name == '_background_'
         class_name_to_id[class_name] = class_id
         data['categories'].append(dict(
             supercategory=None,