Update mhr_recognize_datasets.py
Browse files
mhr_recognize_datasets.py
CHANGED
|
@@ -79,8 +79,8 @@ class MHRRecognizeDatasets(datasets.GeneratorBasedBuilder):
|
|
| 79 |
image_label = label_csv[label_csv["name"] == file_name]['label'].values[0]
|
| 80 |
#print("4:", type(image_label), image_label)
|
| 81 |
image_label = -1 if np.isnan(image_label) else image_label
|
| 82 |
-
print("5:", type(image_label), image_label)
|
| 83 |
-
|
| 84 |
"image": path,
|
| 85 |
"label": image_label,
|
| 86 |
}
|
|
|
|
| 79 |
image_label = label_csv[label_csv["name"] == file_name]['label'].values[0]
|
| 80 |
#print("4:", type(image_label), image_label)
|
| 81 |
image_label = -1 if np.isnan(image_label) else image_label
|
| 82 |
+
#print("5:", type(image_label), image_label)
|
| 83 |
+
yield i, {
|
| 84 |
"image": path,
|
| 85 |
"label": image_label,
|
| 86 |
}
|