Update mini_car_bikes_detection.py
Browse files
mini_car_bikes_detection.py
CHANGED
@@ -32,7 +32,7 @@ class MiniCarBikesDetection(datasets.GeneratorBasedBuilder):
|
|
32 |
features = datasets.Features(
|
33 |
{
|
34 |
"image": datasets.Image(),
|
35 |
-
"image_name": datasets.Value("string"),
|
36 |
}
|
37 |
)
|
38 |
|
@@ -62,10 +62,9 @@ class MiniCarBikesDetection(datasets.GeneratorBasedBuilder):
|
|
62 |
]
|
63 |
|
64 |
def _generate_examples(self, image_files):
|
65 |
-
for image_file in image_files:
|
66 |
yield [
|
67 |
-
"image":
|
68 |
-
"image_name": image_file[0]
|
69 |
]
|
70 |
|
71 |
|
|
|
32 |
features = datasets.Features(
|
33 |
{
|
34 |
"image": datasets.Image(),
|
35 |
+
# "image_name": datasets.Value("string"),
|
36 |
}
|
37 |
)
|
38 |
|
|
|
62 |
]
|
63 |
|
64 |
def _generate_examples(self, image_files):
|
65 |
+
for image_file in os.listdir(image_files):
|
66 |
yield [
|
67 |
+
"image": image_file,
|
|
|
68 |
]
|
69 |
|
70 |
|