qgyd2021 commited on
Commit
eeff54e
1 Parent(s): cad60b7

[update]add data

Browse files
Files changed (1) hide show
  1. cppe5.py +2 -2
cppe5.py CHANGED
@@ -42,7 +42,7 @@ class CPPE5(datasets.GeneratorBasedBuilder):
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,7 +103,7 @@ class CPPE5(datasets.GeneratorBasedBuilder):
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"],
 
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"],