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 |
-
|
36 |
}
|
37 |
)
|
38 |
|
@@ -65,6 +65,7 @@ class MiniCarBikesDetection(datasets.GeneratorBasedBuilder):
|
|
65 |
for image_file in image_files:
|
66 |
yield image_file, {
|
67 |
"image": {"path": image_file[0], "bytes": image_file[1].read()},
|
|
|
68 |
}
|
69 |
|
70 |
|
|
|
32 |
features = datasets.Features(
|
33 |
{
|
34 |
"image": datasets.Image()
|
35 |
+
"image_name": datasets.Value("string"),
|
36 |
}
|
37 |
)
|
38 |
|
|
|
65 |
for image_file in image_files:
|
66 |
yield image_file, {
|
67 |
"image": {"path": image_file[0], "bytes": image_file[1].read()},
|
68 |
+
"image_name": image_file[0],
|
69 |
}
|
70 |
|
71 |
|