Datasets:
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -171,7 +171,7 @@ row = test_split[0]
|
|
| 171 |
image = row["image"]
|
| 172 |
|
| 173 |
# Decode category indices to class name strings
|
| 174 |
-
label_feature = ds["test"].features["objects"]["category"]
|
| 175 |
|
| 176 |
# Iterate over bounding boxes with labels
|
| 177 |
for bbox, category_idx in zip(row["objects"]["bbox"], row["objects"]["category"]):
|
|
|
|
| 171 |
image = row["image"]
|
| 172 |
|
| 173 |
# Decode category indices to class name strings
|
| 174 |
+
label_feature = ds["test"].features["objects"]["category"].feature
|
| 175 |
|
| 176 |
# Iterate over bounding boxes with labels
|
| 177 |
for bbox, category_idx in zip(row["objects"]["bbox"], row["objects"]["category"]):
|