瀏覽代碼

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

Daniel Rose 6 年之前
父節點
當前提交
2314de584b
共有 1 個文件被更改,包括 0 次插入2 次删除
  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,