Syoy commited on
Commit
8414268
1 Parent(s): ab13310

overwrite main

Browse files
Files changed (1) hide show
  1. dcase23-task2-enriched.py +5 -1
dcase23-task2-enriched.py CHANGED
@@ -73,7 +73,6 @@ _SPOTLIGHT_RENAME = {
73
  }
74
 
75
 
76
-
77
  class DCASE2023Task2DatasetConfig(datasets.BuilderConfig):
78
  """BuilderConfig for DCASE2023Task2Dataset."""
79
 
@@ -114,6 +113,9 @@ class DCASE2023Task2DatasetConfig(datasets.BuilderConfig):
114
 
115
  return df.copy()
116
 
 
 
 
117
 
118
  class DCASE2023Task2Dataset(datasets.GeneratorBasedBuilder):
119
  """Dataset for the DCASE 2023 Challenge Task 2 "First-Shot Unsupervised Anomalous Sound Detection
@@ -132,6 +134,8 @@ class DCASE2023Task2Dataset(datasets.GeneratorBasedBuilder):
132
  data_urls=DATA_URLS[key],
133
  release_date=stats["date"],
134
  splits=stats["splits"],
 
 
135
  )
136
  for key, stats in STATS["configs"].items()
137
  ]
 
73
  }
74
 
75
 
 
76
  class DCASE2023Task2DatasetConfig(datasets.BuilderConfig):
77
  """BuilderConfig for DCASE2023Task2Dataset."""
78
 
 
113
 
114
  return df.copy()
115
 
116
+ def get_layout(self):
117
+ return self.layout
118
+
119
 
120
  class DCASE2023Task2Dataset(datasets.GeneratorBasedBuilder):
121
  """Dataset for the DCASE 2023 Challenge Task 2 "First-Shot Unsupervised Anomalous Sound Detection
 
134
  data_urls=DATA_URLS[key],
135
  release_date=stats["date"],
136
  splits=stats["splits"],
137
+ layout=_SPOTLIGHT_LAYOUT,
138
+ rename=_SPOTLIGHT_RENAME,
139
  )
140
  for key, stats in STATS["configs"].items()
141
  ]