Skip to content

Commit

Permalink
Show class_id in Visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Mar 31, 2018
1 parent e70bcae commit 65acf30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/semantic_segmentation/labelme2voc.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ def main():
# lbl_pil.putpalette((colormap * 255).flatten())
lbl_pil.save(out_lbl_file)

label_names = ['%d: %s' % (cls_id, cls_name)
for cls_id, cls_name in enumerate(class_names)]
viz = labelme.utils.draw_label(
lbl, img, class_names, colormap=colormap)
lbl, img, label_names, colormap=colormap)
PIL.Image.fromarray(viz).save(out_viz_file)


Expand Down

0 comments on commit 65acf30

Please sign in to comment.