[update]add data
Browse files
cppe5.py
CHANGED
@@ -45,14 +45,14 @@ class CPPE5(datasets.GeneratorBasedBuilder):
|
|
45 |
# "image": datasets.Image(),
|
46 |
"width": datasets.Value("int32"),
|
47 |
"height": datasets.Value("int32"),
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
}
|
57 |
)
|
58 |
return datasets.DatasetInfo(
|
@@ -106,7 +106,7 @@ class CPPE5(datasets.GeneratorBasedBuilder):
|
|
106 |
# "image": {"path": file_path, "bytes": image_bytes},
|
107 |
"width": sample["width"],
|
108 |
"height": sample["height"],
|
109 |
-
|
110 |
}
|
111 |
idx += 1
|
112 |
|
|
|
45 |
# "image": datasets.Image(),
|
46 |
"width": datasets.Value("int32"),
|
47 |
"height": datasets.Value("int32"),
|
48 |
+
"objects": datasets.Sequence(
|
49 |
+
{
|
50 |
+
"id": datasets.Value("int64"),
|
51 |
+
"area": datasets.Value("int64"),
|
52 |
+
"bbox": datasets.Sequence(datasets.Value("float32"), length=4),
|
53 |
+
"category": datasets.ClassLabel(names=_CATEGORIES),
|
54 |
+
}
|
55 |
+
),
|
56 |
}
|
57 |
)
|
58 |
return datasets.DatasetInfo(
|
|
|
106 |
# "image": {"path": file_path, "bytes": image_bytes},
|
107 |
"width": sample["width"],
|
108 |
"height": sample["height"],
|
109 |
+
"objects": sample["objects"],
|
110 |
}
|
111 |
idx += 1
|
112 |
|