Update Stomatal_Images_Datasets.py
Browse files
Stomatal_Images_Datasets.py
CHANGED
|
@@ -91,7 +91,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
-
|
| 95 |
annotations = []
|
| 96 |
with open(label_path, 'r') as file:
|
| 97 |
yolo_data = file.readlines()
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
+
def _parse_yolo_labels(self, label_path, width, height):
|
| 95 |
annotations = []
|
| 96 |
with open(label_path, 'r') as file:
|
| 97 |
yolo_data = file.readlines()
|