qgyd2021 commited on
Commit
f34aa9d
1 Parent(s): 1b4f577

[update]add data

Browse files
Files changed (1) hide show
  1. cppe5.py +8 -8
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
- 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
 
 
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