Update dcase23-task2-enriched.py
Browse files- dcase23-task2-enriched.py +10 -0
dcase23-task2-enriched.py
CHANGED
@@ -65,6 +65,14 @@ DATASET = {
|
|
65 |
'dev': 'DCASE 2023 Challenge Task 2 Development Dataset',
|
66 |
}
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
class DCASE2023Task2DatasetConfig(datasets.BuilderConfig):
|
70 |
"""BuilderConfig for DCASE2023Task2Dataset."""
|
@@ -74,6 +82,8 @@ class DCASE2023Task2DatasetConfig(datasets.BuilderConfig):
|
|
74 |
self.homepage = kwargs.pop("homepage", None)
|
75 |
self.data_urls = kwargs.pop("data_urls", None)
|
76 |
self.splits = kwargs.pop("splits", None)
|
|
|
|
|
77 |
description = (
|
78 |
f"Dataset for the DCASE 2023 Challenge Task 2 'First-Shot Unsupervised Anomalous Sound Detection "
|
79 |
f"for Machine Condition Monitoring'. released on {self.release_date}. Original data available under"
|
|
|
65 |
'dev': 'DCASE 2023 Challenge Task 2 Development Dataset',
|
66 |
}
|
67 |
|
68 |
+
_SPOTLIGHT_LAYOUT = "data/config-spotlight-layout.json"
|
69 |
+
|
70 |
+
_SPOTLIGHT_RENAME = {
|
71 |
+
"audio": "original_audio",
|
72 |
+
"path": "audio",
|
73 |
+
}
|
74 |
+
|
75 |
+
|
76 |
|
77 |
class DCASE2023Task2DatasetConfig(datasets.BuilderConfig):
|
78 |
"""BuilderConfig for DCASE2023Task2Dataset."""
|
|
|
82 |
self.homepage = kwargs.pop("homepage", None)
|
83 |
self.data_urls = kwargs.pop("data_urls", None)
|
84 |
self.splits = kwargs.pop("splits", None)
|
85 |
+
self.rename = kwargs.pop("rename", None)
|
86 |
+
self.layout = kwargs.pop("layout", None)
|
87 |
description = (
|
88 |
f"Dataset for the DCASE 2023 Challenge Task 2 'First-Shot Unsupervised Anomalous Sound Detection "
|
89 |
f"for Machine Condition Monitoring'. released on {self.release_date}. Original data available under"
|