Ver código fonte

Also draw label_name which starts with _ in draw_json

Kentaro Wada 6 anos atrás
pai
commit
1ff768dc8e
1 arquivos alterados com 0 adições e 2 exclusões
  1. 0 2
      labelme/utils/draw.py

+ 0 - 2
labelme/utils/draw.py

@@ -74,8 +74,6 @@ def draw_label(label, img=None, label_names=None, colormap=None):
     for label_value, label_name in enumerate(label_names):
         if label_value not in label:
             continue
-        if label_name.startswith('_'):
-            continue
         fc = colormap[label_value]
         p = plt.Rectangle((0, 0), 1, 1, fc=fc)
         plt_handlers.append(p)