End of training
Browse files- .gitignore +1 -0
- README.md +66 -0
- config.json +53 -0
- preprocessor_config.json +13 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
checkpoint-*/
|
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: bsd-3-clause
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
model-index:
|
8 |
+
- name: ast-finetuned-speech-commands-v2-finetuned
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# ast-finetuned-speech-commands-v2-finetuned
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [MIT/ast-finetuned-speech-commands-v2](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) on the None dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 0.0268
|
20 |
+
- Accuracy: 0.9958
|
21 |
+
|
22 |
+
## Model description
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Intended uses & limitations
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training and evaluation data
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training procedure
|
35 |
+
|
36 |
+
### Training hyperparameters
|
37 |
+
|
38 |
+
The following hyperparameters were used during training:
|
39 |
+
- learning_rate: 1e-07
|
40 |
+
- train_batch_size: 32
|
41 |
+
- eval_batch_size: 32
|
42 |
+
- seed: 42
|
43 |
+
- gradient_accumulation_steps: 4
|
44 |
+
- total_train_batch_size: 128
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- lr_scheduler_warmup_ratio: 0.1
|
48 |
+
- num_epochs: 5
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Accuracy | Validation Loss |
|
53 |
+
|:-------------:|:-----:|:-----:|:--------:|:---------------:|
|
54 |
+
| 0.1781 | 1.0 | 8558 | 0.9970 | 0.1609 |
|
55 |
+
| 0.0217 | 2.0 | 17116 | 0.9979 | 0.0210 |
|
56 |
+
| 0.018 | 3.0 | 25674 | 0.9979 | 0.0144 |
|
57 |
+
| 0.0215 | 4.0 | 34232 | 0.9976 | 0.0129 |
|
58 |
+
| 0.0407 | 5.0 | 42790 | 0.0126 | 0.9976 |
|
59 |
+
|
60 |
+
|
61 |
+
### Framework versions
|
62 |
+
|
63 |
+
- Transformers 4.26.1
|
64 |
+
- Pytorch 1.11.0
|
65 |
+
- Datasets 2.10.0
|
66 |
+
- Tokenizers 0.12.1
|
config.json
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "MIT/ast-finetuned-speech-commands-v2",
|
3 |
+
"architectures": [
|
4 |
+
"ASTForAudioClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"frequency_stride": 10,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "zero",
|
13 |
+
"1": "one",
|
14 |
+
"10": "#unk#",
|
15 |
+
"11": "#pub#",
|
16 |
+
"2": "two",
|
17 |
+
"3": "three",
|
18 |
+
"4": "four",
|
19 |
+
"5": "five",
|
20 |
+
"6": "six",
|
21 |
+
"7": "seven",
|
22 |
+
"8": "eight",
|
23 |
+
"9": "nine"
|
24 |
+
},
|
25 |
+
"initializer_range": 0.02,
|
26 |
+
"intermediate_size": 3072,
|
27 |
+
"label2id": {
|
28 |
+
"#pub#": 11,
|
29 |
+
"#unk#": 10,
|
30 |
+
"eight": 8,
|
31 |
+
"five": 5,
|
32 |
+
"four": 4,
|
33 |
+
"nine": 9,
|
34 |
+
"one": 1,
|
35 |
+
"seven": 7,
|
36 |
+
"six": 6,
|
37 |
+
"three": 3,
|
38 |
+
"two": 2,
|
39 |
+
"zero": 0
|
40 |
+
},
|
41 |
+
"layer_norm_eps": 1e-12,
|
42 |
+
"max_length": 128,
|
43 |
+
"model_type": "audio-spectrogram-transformer",
|
44 |
+
"num_attention_heads": 12,
|
45 |
+
"num_hidden_layers": 12,
|
46 |
+
"num_mel_bins": 128,
|
47 |
+
"patch_size": 16,
|
48 |
+
"problem_type": "single_label_classification",
|
49 |
+
"qkv_bias": true,
|
50 |
+
"time_stride": 10,
|
51 |
+
"torch_dtype": "float32",
|
52 |
+
"transformers_version": "4.26.1"
|
53 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"feature_extractor_type": "ASTFeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"max_length": 128,
|
6 |
+
"mean": -6.845978,
|
7 |
+
"num_mel_bins": 128,
|
8 |
+
"padding_side": "right",
|
9 |
+
"padding_value": 0.0,
|
10 |
+
"return_attention_mask": false,
|
11 |
+
"sampling_rate": 16000,
|
12 |
+
"std": 5.5654526
|
13 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:efb4441fc565f55eb07b3c7fecdedaa64df653022be67ffd6992164aea4b7d0c
|
3 |
+
size 341580651
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:561a447d1c0db0b09a1668937e61d632c410ca94ecfde07d23df0e89b39a61d0
|
3 |
+
size 3503
|