bastienp commited on
Commit
103ad0b
1 Parent(s): c2130f1

fix: update file supervised key

Browse files
Files changed (1) hide show
  1. visible-watermark-pita.py +13 -12
visible-watermark-pita.py CHANGED
@@ -67,6 +67,7 @@ class WatermarkPita(datasets.GeneratorBasedBuilder):
67
  ),
68
  }
69
  ),
 
70
  description=_DESCRIPTION,
71
  )
72
 
@@ -97,17 +98,17 @@ class WatermarkPita(datasets.GeneratorBasedBuilder):
97
  with open(label_path, "r") as f:
98
  bbox = json.load(f)
99
 
100
- objects = []
101
- objects.append(
102
- {
103
- "label": bbox["label"],
104
- "bbox": [
105
- bbox["x"],
106
- bbox["y"],
107
- bbox["width"],
108
- bbox["height"],
109
- ],
110
- }
111
- )
112
 
113
  yield idx, {"image": image_path, "objects": objects}
 
67
  ),
68
  }
69
  ),
70
+ supervised_keys=None,
71
  description=_DESCRIPTION,
72
  )
73
 
 
98
  with open(label_path, "r") as f:
99
  bbox = json.load(f)
100
 
101
+ objects = []
102
+ objects.append(
103
+ {
104
+ "label": bbox["label"],
105
+ "bbox": [
106
+ bbox["x"],
107
+ bbox["y"],
108
+ bbox["width"],
109
+ bbox["height"],
110
+ ],
111
+ }
112
+ )
113
 
114
  yield idx, {"image": image_path, "objects": objects}