[update]add data
Browse files
cppe5.py
CHANGED
@@ -103,14 +103,14 @@ class CPPE5(datasets.GeneratorBasedBuilder):
|
|
103 |
# image_bytes = image_f.read()
|
104 |
image = Image.open(image_f)
|
105 |
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
idx += 1
|
115 |
|
116 |
|
|
|
103 |
# image_bytes = image_f.read()
|
104 |
image = Image.open(image_f)
|
105 |
|
106 |
+
yield idx, {
|
107 |
+
"image_id": sample["image_id"],
|
108 |
+
# "image": {"path": file_path, "bytes": image_bytes},
|
109 |
+
"image": image,
|
110 |
+
"width": sample["width"],
|
111 |
+
"height": sample["height"],
|
112 |
+
"objects": sample["objects"],
|
113 |
+
}
|
114 |
idx += 1
|
115 |
|
116 |
|