karolyartur commited on
Commit
ba7b8ac
1 Parent(s): bd7169a

Fix supervised keys

Browse files
Files changed (2) hide show
  1. README.md +0 -1
  2. SMVB.py +2 -3
README.md CHANGED
@@ -18,7 +18,6 @@ size_categories:
18
  - 1K<n<10K
19
  task_categories:
20
  - object-detection
21
- - zero-shot-object-detection
22
  - image-segmentation
23
  - depth-estimation
24
  - video-classification
 
18
  - 1K<n<10K
19
  task_categories:
20
  - object-detection
 
21
  - image-segmentation
22
  - depth-estimation
23
  - video-classification
SMVB.py CHANGED
@@ -80,7 +80,7 @@ class SMVBDatasetConfig(datasets.BuilderConfig):
80
  )
81
 
82
  @property
83
- def supervised_keys(self):
84
  return ("image", "mask", "depth", "flow", "normal")
85
 
86
 
@@ -105,7 +105,6 @@ class SMVBDataset(datasets.GeneratorBasedBuilder):
105
  return datasets.DatasetInfo(
106
  description=_DESCRIPTION,
107
  features=self.config.features,
108
- supervised_keys=self.config.supervised_keys,
109
  homepage=_HOMEPAGE,
110
  license=_LICENSE,
111
  citation=_CITATION,
@@ -131,7 +130,7 @@ class SMVBDataset(datasets.GeneratorBasedBuilder):
131
  data: Generator[Tuple[str,IO], None, None]
132
  ):
133
  file_infos = []
134
- keys = self.config.supervised_keys
135
 
136
  for i, info in enumerate(data):
137
  if file_infos and i%len(keys) == 0:
 
80
  )
81
 
82
  @property
83
+ def keys(self):
84
  return ("image", "mask", "depth", "flow", "normal")
85
 
86
 
 
105
  return datasets.DatasetInfo(
106
  description=_DESCRIPTION,
107
  features=self.config.features,
 
108
  homepage=_HOMEPAGE,
109
  license=_LICENSE,
110
  citation=_CITATION,
 
130
  data: Generator[Tuple[str,IO], None, None]
131
  ):
132
  file_infos = []
133
+ keys = self.config.keys
134
 
135
  for i, info in enumerate(data):
136
  if file_infos and i%len(keys) == 0: