Update mhr_recognize_datasets.py
Browse files
mhr_recognize_datasets.py
CHANGED
|
@@ -77,7 +77,7 @@ class MHRRecognizeDatasets(datasets.GeneratorBasedBuilder):
|
|
| 77 |
print("3:", i, path, file_name)
|
| 78 |
# Get image id to filter the respective row of the csv
|
| 79 |
image_id = file_name
|
| 80 |
-
image_labels = label_csv[label_csv["name"] == image_id]
|
| 81 |
print("4:", image_labels)
|
| 82 |
yield i, {
|
| 83 |
"image": path,
|
|
|
|
| 77 |
print("3:", i, path, file_name)
|
| 78 |
# Get image id to filter the respective row of the csv
|
| 79 |
image_id = file_name
|
| 80 |
+
image_labels = label_csv[label_csv["name"] == image_id]['label'][0]
|
| 81 |
print("4:", image_labels)
|
| 82 |
yield i, {
|
| 83 |
"image": path,
|