bit3ca/ast-finetuned-speech-commands-bit3
Browse files- README.md +67 -0
- config.json +101 -0
- model.safetensors +3 -0
- preprocessor_config.json +13 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: bsd-3-clause
|
3 |
+
base_model: MIT/ast-finetuned-speech-commands-v2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: ast-finetuned-speech-commands-bit3
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# ast-finetuned-speech-commands-bit3
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [MIT/ast-finetuned-speech-commands-v2](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.4409
|
21 |
+
- Accuracy: 0.9031
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 3e-05
|
41 |
+
- train_batch_size: 36
|
42 |
+
- eval_batch_size: 36
|
43 |
+
- seed: 42
|
44 |
+
- gradient_accumulation_steps: 4
|
45 |
+
- total_train_batch_size: 144
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- lr_scheduler_warmup_ratio: 0.1
|
49 |
+
- num_epochs: 5
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Accuracy | Validation Loss |
|
54 |
+
|:-------------:|:-----:|:----:|:--------:|:---------------:|
|
55 |
+
| 0.0583 | 1.0 | 589 | 0.8992 | 0.4810 |
|
56 |
+
| 0.0628 | 2.0 | 1178 | 0.9031 | 0.4409 |
|
57 |
+
| 0.0218 | 3.0 | 1767 | 0.9010 | 0.4444 |
|
58 |
+
| 0.0092 | 4.0 | 2356 | 0.9012 | 0.4322 |
|
59 |
+
| 0.0148 | 5.0 | 2945 | 0.9031 | 0.3927 |
|
60 |
+
|
61 |
+
|
62 |
+
### Framework versions
|
63 |
+
|
64 |
+
- Transformers 4.37.1
|
65 |
+
- Pytorch 2.1.0+cu121
|
66 |
+
- Datasets 2.16.1
|
67 |
+
- Tokenizers 0.15.1
|
config.json
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "yes",
|
13 |
+
"1": "no",
|
14 |
+
"10": "zero",
|
15 |
+
"11": "one",
|
16 |
+
"12": "two",
|
17 |
+
"13": "three",
|
18 |
+
"14": "four",
|
19 |
+
"15": "five",
|
20 |
+
"16": "six",
|
21 |
+
"17": "seven",
|
22 |
+
"18": "eight",
|
23 |
+
"19": "nine",
|
24 |
+
"2": "up",
|
25 |
+
"20": "bed",
|
26 |
+
"21": "bird",
|
27 |
+
"22": "cat",
|
28 |
+
"23": "dog",
|
29 |
+
"24": "happy",
|
30 |
+
"25": "house",
|
31 |
+
"26": "marvin",
|
32 |
+
"27": "sheila",
|
33 |
+
"28": "tree",
|
34 |
+
"29": "wow",
|
35 |
+
"3": "down",
|
36 |
+
"30": "backward",
|
37 |
+
"31": "forward",
|
38 |
+
"32": "follow",
|
39 |
+
"33": "learn",
|
40 |
+
"34": "visual",
|
41 |
+
"35": "_silence_",
|
42 |
+
"4": "left",
|
43 |
+
"5": "right",
|
44 |
+
"6": "on",
|
45 |
+
"7": "off",
|
46 |
+
"8": "stop",
|
47 |
+
"9": "go"
|
48 |
+
},
|
49 |
+
"initializer_range": 0.02,
|
50 |
+
"intermediate_size": 3072,
|
51 |
+
"label2id": {
|
52 |
+
"_silence_": "35",
|
53 |
+
"backward": "30",
|
54 |
+
"bed": "20",
|
55 |
+
"bird": "21",
|
56 |
+
"cat": "22",
|
57 |
+
"dog": "23",
|
58 |
+
"down": "3",
|
59 |
+
"eight": "18",
|
60 |
+
"five": "15",
|
61 |
+
"follow": "32",
|
62 |
+
"forward": "31",
|
63 |
+
"four": "14",
|
64 |
+
"go": "9",
|
65 |
+
"happy": "24",
|
66 |
+
"house": "25",
|
67 |
+
"learn": "33",
|
68 |
+
"left": "4",
|
69 |
+
"marvin": "26",
|
70 |
+
"nine": "19",
|
71 |
+
"no": "1",
|
72 |
+
"off": "7",
|
73 |
+
"on": "6",
|
74 |
+
"one": "11",
|
75 |
+
"right": "5",
|
76 |
+
"seven": "17",
|
77 |
+
"sheila": "27",
|
78 |
+
"six": "16",
|
79 |
+
"stop": "8",
|
80 |
+
"three": "13",
|
81 |
+
"tree": "28",
|
82 |
+
"two": "12",
|
83 |
+
"up": "2",
|
84 |
+
"visual": "34",
|
85 |
+
"wow": "29",
|
86 |
+
"yes": "0",
|
87 |
+
"zero": "10"
|
88 |
+
},
|
89 |
+
"layer_norm_eps": 1e-12,
|
90 |
+
"max_length": 128,
|
91 |
+
"model_type": "audio-spectrogram-transformer",
|
92 |
+
"num_attention_heads": 12,
|
93 |
+
"num_hidden_layers": 12,
|
94 |
+
"num_mel_bins": 128,
|
95 |
+
"patch_size": 16,
|
96 |
+
"problem_type": "single_label_classification",
|
97 |
+
"qkv_bias": true,
|
98 |
+
"time_stride": 10,
|
99 |
+
"torch_dtype": "float32",
|
100 |
+
"transformers_version": "4.37.1"
|
101 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9801a531c193137cd051f10072d3fab0cf5aabf11728df5381372654ac8f5d30
|
3 |
+
size 341613728
|
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 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:84c8df1001bc19ae470ecc1772bbc9f59d18c8fb981352ad63604eff11a41eb1
|
3 |
+
size 4728
|