alkzar90 commited on
Commit
a804557
·
1 Parent(s): ca437b6

Fix tabs problems

Browse files
Files changed (1) hide show
  1. NIH-Chest-X-ray-dataset.py +16 -16
NIH-Chest-X-ray-dataset.py CHANGED
@@ -127,22 +127,22 @@ class ChestXray14(datasets.GeneratorBasedBuilder):
127
  keys = ("image", "labels")
128
 
129
  if self.config.name == "object-detection":
130
- features = datasets.Features(
131
- {
132
- "image_id": datasets.Value("string"),
133
- "patient_id": datasets.Value("int32"),
134
- "image": datasets.Image(),
135
- "width": datasets.Value("int32"),
136
- "height": datasets.Value("int32"),
137
- }
138
- )
139
- object_dict = {
140
- "image_id": datasets.Value("string"),
141
- "area": datasets.Value("int64"),
142
- "bbox": datasets.Sequence(datasets.Value("float32"), length=4),
143
- }
144
- features["objects"] = [object_dict]
145
- keys = ("image", "objects")
146
 
147
  return datasets.DatasetInfo(
148
  description=_DESCRIPTION,
 
127
  keys = ("image", "labels")
128
 
129
  if self.config.name == "object-detection":
130
+ features = datasets.Features(
131
+ {
132
+ "image_id": datasets.Value("string"),
133
+ "patient_id": datasets.Value("int32"),
134
+ "image": datasets.Image(),
135
+ "width": datasets.Value("int32"),
136
+ "height": datasets.Value("int32"),
137
+ }
138
+ )
139
+ object_dict = {
140
+ "image_id": datasets.Value("string"),
141
+ "area": datasets.Value("int64"),
142
+ "bbox": datasets.Sequence(datasets.Value("float32"), length=4),
143
+ }
144
+ features["objects"] = [object_dict]
145
+ keys = ("image", "objects")
146
 
147
  return datasets.DatasetInfo(
148
  description=_DESCRIPTION,