[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 |
-
"objects": datasets.Sequence(
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
),
|
56 |
}
|
57 |
)
|
58 |
return datasets.DatasetInfo(
|
@@ -107,7 +107,7 @@ class CPPE5(datasets.GeneratorBasedBuilder):
|
|
107 |
# "image": {"path": file_path, "bytes": image_bytes},
|
108 |
"width": sample["width"],
|
109 |
"height": sample["height"],
|
110 |
-
"objects": sample["objects"],
|
111 |
}
|
112 |
idx += 1
|
113 |
|
|
|
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(
|
|
|
107 |
# "image": {"path": file_path, "bytes": image_bytes},
|
108 |
"width": sample["width"],
|
109 |
"height": sample["height"],
|
110 |
+
# "objects": sample["objects"],
|
111 |
}
|
112 |
idx += 1
|
113 |
|