Update mini_car_bikes_detection.py
Browse files
mini_car_bikes_detection.py
CHANGED
@@ -62,8 +62,10 @@ class MiniCarBikesDetection(datasets.GeneratorBasedBuilder):
|
|
62 |
]
|
63 |
|
64 |
def _generate_examples(self, image_files):
|
65 |
-
for image_file in image_files:
|
66 |
-
yield {
|
|
|
|
|
67 |
|
68 |
|
69 |
|
|
|
62 |
]
|
63 |
|
64 |
def _generate_examples(self, image_files):
|
65 |
+
for image_file, image_obj in image_files:
|
66 |
+
yield image_file, {
|
67 |
+
"image": {"path": image_file, "bytes": image_obj.read()},
|
68 |
+
}
|
69 |
|
70 |
|
71 |
|