[update]add data
Browse files
cppe5.py
CHANGED
@@ -42,7 +42,7 @@ class CPPE5(datasets.GeneratorBasedBuilder):
|
|
42 |
features = datasets.Features(
|
43 |
{
|
44 |
"image_id": datasets.Value("int64"),
|
45 |
-
|
46 |
"width": datasets.Value("int32"),
|
47 |
"height": datasets.Value("int32"),
|
48 |
"objects": datasets.Sequence(
|
@@ -103,7 +103,7 @@ class CPPE5(datasets.GeneratorBasedBuilder):
|
|
103 |
|
104 |
yield idx, {
|
105 |
"image_id": sample["image_id"],
|
106 |
-
|
107 |
"width": sample["width"],
|
108 |
"height": sample["height"],
|
109 |
"objects": sample["objects"],
|
|
|
42 |
features = datasets.Features(
|
43 |
{
|
44 |
"image_id": datasets.Value("int64"),
|
45 |
+
"image": datasets.Image(),
|
46 |
"width": datasets.Value("int32"),
|
47 |
"height": datasets.Value("int32"),
|
48 |
"objects": datasets.Sequence(
|
|
|
103 |
|
104 |
yield idx, {
|
105 |
"image_id": sample["image_id"],
|
106 |
+
"image": {"path": file_path, "bytes": image_bytes},
|
107 |
"width": sample["width"],
|
108 |
"height": sample["height"],
|
109 |
"objects": sample["objects"],
|