Add 配置文件
Browse files- config.json +27 -0
config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "wav2vec2_classifier",
|
| 3 |
+
"base_model": "facebook/wav2vec2-base",
|
| 4 |
+
"num_classes": 2,
|
| 5 |
+
"class_names": ["background", "switch"],
|
| 6 |
+
"sample_rate": 16000,
|
| 7 |
+
"max_length": 80000,
|
| 8 |
+
"feature_size": 768,
|
| 9 |
+
"classifier_config": {
|
| 10 |
+
"hidden_size": 256,
|
| 11 |
+
"dropout": 0.3,
|
| 12 |
+
"num_layers": 2
|
| 13 |
+
},
|
| 14 |
+
"training_config": {
|
| 15 |
+
"epochs": 15,
|
| 16 |
+
"learning_rate": 1e-4,
|
| 17 |
+
"batch_size": 4,
|
| 18 |
+
"optimizer": "AdamW",
|
| 19 |
+
"loss_function": "CrossEntropyLoss"
|
| 20 |
+
},
|
| 21 |
+
"performance": {
|
| 22 |
+
"accuracy": 1.0,
|
| 23 |
+
"precision": 1.0,
|
| 24 |
+
"recall": 1.0,
|
| 25 |
+
"f1_score": 1.0
|
| 26 |
+
}
|
| 27 |
+
}
|