Update mini_car_bikes_detection.py
Browse files
mini_car_bikes_detection.py
CHANGED
@@ -38,6 +38,12 @@ class MiniCarBikesDetection(datasets.GeneratorBasedBuilder):
|
|
38 |
{
|
39 |
"image": datasets.Image(),
|
40 |
"image_name": datasets.Value("string"),
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
)
|
43 |
|
@@ -79,6 +85,8 @@ class MiniCarBikesDetection(datasets.GeneratorBasedBuilder):
|
|
79 |
yield image_file, {
|
80 |
"image": {"path": image_file[0], "bytes": image_file[1].read()},
|
81 |
"image_name": image_name,
|
|
|
|
|
82 |
}
|
83 |
|
84 |
|
|
|
38 |
{
|
39 |
"image": datasets.Image(),
|
40 |
"image_name": datasets.Value("string"),
|
41 |
+
"width": datasets.Value("int32"),
|
42 |
+
"height": datasets.Value("int32"),
|
43 |
+
# "objects": datasets.Sequence{
|
44 |
+
# "bbox": datasets.Sequence(datasets.Value("float32"), length=4),
|
45 |
+
# "category": datasets.ClassLabel(names=_CATEGORIES),
|
46 |
+
# }
|
47 |
}
|
48 |
)
|
49 |
|
|
|
85 |
yield image_file, {
|
86 |
"image": {"path": image_file[0], "bytes": image_file[1].read()},
|
87 |
"image_name": image_name,
|
88 |
+
"width": image_file["width"],
|
89 |
+
"height": image_file["height"]
|
90 |
}
|
91 |
|
92 |
|