Sfoglia il codice sorgente

Update examples/tutorial/README.md

Kentaro Wada 6 anni fa
parent
commit
179637bbd8
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      examples/tutorial/README.md

+ 3 - 3
examples/tutorial/README.md

@@ -32,7 +32,7 @@ labelme_json_to_dataset apc2016_obj3.json -o apc2016_obj3_json
 It generates standard files from the JSON file.
 
 - [img.png](apc2016_obj3_json/img.png): Image file.
-- [label.png](apc2016_obj3_json/label.png): Int32 label file.
+- [label.png](apc2016_obj3_json/label.png): uint8 label file.
 - [label_viz.png](apc2016_obj3_json/label_viz.png): Visualization of `label.png`.
 - [label_names.txt](apc2016_obj3_json/label_names.txt): Label names for values in `label.png`.
 
@@ -50,9 +50,9 @@ and please use `PIL.Image.open` to avoid unexpected behavior:
 >>> label_png = 'apc2016_obj3_json/label.png'
 >>> lbl = np.asarray(PIL.Image.open(label_png))
 >>> print(lbl.dtype)
-dtype('int32')
+dtype('uint8')
 >>> np.unique(lbl)
-array([0, 1, 2, 3], dtype=int32)
+array([0, 1, 2, 3], dtype=uint8)
 >>> lbl.shape
 (907, 1210)
 ```