MFreidank commited on
Commit
4c0ceea
·
1 Parent(s): cdd9e5f

fix dataset viewer

Browse files
Files changed (1) hide show
  1. glenda.py +11 -11
glenda.py CHANGED
@@ -76,11 +76,11 @@ class GLENDA(datasets.GeneratorBasedBuilder):
76
  description="Contains images without visible pathology in relation to endometriosis and different endometriosis classes with corresponding COCO bounding box annotations.",
77
  version=datasets.Version(f"{VERSION}.0"),
78
  ),
79
- datasets.BuilderConfig(
80
- name="instance_segmentation",
81
- description="Contains images without visible pathology in relation to endometriosis and different endometriosis classes with COCO instance segmentation annotations.",
82
- version=datasets.Version(f"{VERSION}.0"),
83
- ),
84
  ]
85
 
86
  def _info(self):
@@ -216,13 +216,13 @@ class GLENDA(datasets.GeneratorBasedBuilder):
216
  "category": category_id2_name[annotation["category_id"]],
217
  "id": annotation["category_id"],
218
  })
219
- elif self.config.name == "instance_segmentation":
220
- annotation_list.append({
221
 
222
- })
223
- raise ValueError(annotation["category_id"], annotation["segmentation"])
224
- raise ValueError(annotation)
225
- raise NotImplementedError()
226
  else:
227
  raise NotImplementedError()
228
 
 
76
  description="Contains images without visible pathology in relation to endometriosis and different endometriosis classes with corresponding COCO bounding box annotations.",
77
  version=datasets.Version(f"{VERSION}.0"),
78
  ),
79
+ # datasets.BuilderConfig(
80
+ # name="instance_segmentation",
81
+ # description="Contains images without visible pathology in relation to endometriosis and different endometriosis classes with COCO instance segmentation annotations.",
82
+ # version=datasets.Version(f"{VERSION}.0"),
83
+ # ),
84
  ]
85
 
86
  def _info(self):
 
216
  "category": category_id2_name[annotation["category_id"]],
217
  "id": annotation["category_id"],
218
  })
219
+ # elif self.config.name == "instance_segmentation":
220
+ # annotation_list.append({
221
 
222
+ # })
223
+ # raise ValueError(annotation["category_id"], annotation["segmentation"])
224
+ # raise ValueError(annotation)
225
+ # raise NotImplementedError()
226
  else:
227
  raise NotImplementedError()
228