Update README.md
Browse files
README.md
CHANGED
|
@@ -80,7 +80,7 @@ ds = load_dataset("histolytics-hub/panoptils_refined", split="train")
|
|
| 80 |
# convert to pandas df
|
| 81 |
df = ds.with_format("pandas")[:]
|
| 82 |
|
| 83 |
-
# Example: decode
|
| 84 |
row = df.iloc[1]
|
| 85 |
image = png_bytes_to_array(row["image"])
|
| 86 |
inst_mask = png_bytes_to_array(row["inst"])
|
|
|
|
| 80 |
# convert to pandas df
|
| 81 |
df = ds.with_format("pandas")[:]
|
| 82 |
|
| 83 |
+
# Example: decode one row
|
| 84 |
row = df.iloc[1]
|
| 85 |
image = png_bytes_to_array(row["image"])
|
| 86 |
inst_mask = png_bytes_to_array(row["inst"])
|