Syoy commited on
Commit
8bdcedc
1 Parent(s): 59cb274

update download layout

Browse files
Files changed (1) hide show
  1. dcase23-task2-enriched.py +4 -2
dcase23-task2-enriched.py CHANGED
@@ -133,6 +133,7 @@ class DCASE2023Task2DatasetConfig(datasets.BuilderConfig):
133
  self.splits = kwargs.pop("splits", None)
134
  self.rename = kwargs.pop("rename", None)
135
  self.layout = kwargs.pop("layout", None)
 
136
  description = (
137
  f"Dataset for the DCASE 2023 Challenge Task 2 'First-Shot Unsupervised Anomalous Sound Detection "
138
  f"for Machine Condition Monitoring'. released on {self.release_date}. Original data available under"
@@ -190,11 +191,12 @@ class DCASE2023Task2DatasetConfig(datasets.BuilderConfig):
190
 
191
  def get_layout(self):
192
  if not self._layout:
193
- self._layout = datasets.DownloadManager().download("data/config-spotlight-layout.json")
194
-
195
  return self._layout
196
 
197
 
 
198
  class DCASE2023Task2Dataset(datasets.GeneratorBasedBuilder):
199
  """Dataset for the DCASE 2023 Challenge Task 2 "First-Shot Unsupervised Anomalous Sound Detection
200
  for Machine Condition Monitoring"."""
 
133
  self.splits = kwargs.pop("splits", None)
134
  self.rename = kwargs.pop("rename", None)
135
  self.layout = kwargs.pop("layout", None)
136
+ self._layout = None
137
  description = (
138
  f"Dataset for the DCASE 2023 Challenge Task 2 'First-Shot Unsupervised Anomalous Sound Detection "
139
  f"for Machine Condition Monitoring'. released on {self.release_date}. Original data available under"
 
191
 
192
  def get_layout(self):
193
  if not self._layout:
194
+ self._layout = datasets.DownloadManager().download(self.layout)
195
+
196
  return self._layout
197
 
198
 
199
+
200
  class DCASE2023Task2Dataset(datasets.GeneratorBasedBuilder):
201
  """Dataset for the DCASE 2023 Challenge Task 2 "First-Shot Unsupervised Anomalous Sound Detection
202
  for Machine Condition Monitoring"."""