sunfu-chou
commited on
Commit
•
04c2961
1
Parent(s):
5b7f04a
End of training
Browse files- README.md +72 -0
- config.json +180 -0
- model.safetensors +3 -0
- preprocessor_config.json +9 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: facebook/hubert-base-ls960
|
4 |
+
tags:
|
5 |
+
- audio-classification
|
6 |
+
- hubert
|
7 |
+
- esc50
|
8 |
+
- generated_from_trainer
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: hubert-esc50-finetuned-v2
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# hubert-esc50-finetuned-v2
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [facebook/hubert-base-ls960](https://huggingface.co/facebook/hubert-base-ls960) on the ESC-50 dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 2.0573
|
24 |
+
- Accuracy: 0.46
|
25 |
+
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Intended uses & limitations
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training and evaluation data
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training procedure
|
39 |
+
|
40 |
+
### Training hyperparameters
|
41 |
+
|
42 |
+
The following hyperparameters were used during training:
|
43 |
+
- learning_rate: 5e-05
|
44 |
+
- train_batch_size: 8
|
45 |
+
- eval_batch_size: 8
|
46 |
+
- seed: 42
|
47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
+
- lr_scheduler_type: linear
|
49 |
+
- num_epochs: 10
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
54 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
55 |
+
| 3.6034 | 1.0 | 200 | 3.6057 | 0.0725 |
|
56 |
+
| 3.2797 | 2.0 | 400 | 3.2749 | 0.095 |
|
57 |
+
| 2.9855 | 3.0 | 600 | 3.0805 | 0.1525 |
|
58 |
+
| 2.807 | 4.0 | 800 | 2.7985 | 0.2225 |
|
59 |
+
| 2.5864 | 5.0 | 1000 | 2.5974 | 0.2825 |
|
60 |
+
| 2.4893 | 6.0 | 1200 | 2.3808 | 0.34 |
|
61 |
+
| 2.1716 | 7.0 | 1400 | 2.2675 | 0.3475 |
|
62 |
+
| 2.0351 | 8.0 | 1600 | 2.1746 | 0.3925 |
|
63 |
+
| 1.9235 | 9.0 | 1800 | 2.0876 | 0.4325 |
|
64 |
+
| 1.9286 | 10.0 | 2000 | 2.0573 | 0.46 |
|
65 |
+
|
66 |
+
|
67 |
+
### Framework versions
|
68 |
+
|
69 |
+
- Transformers 4.40.2
|
70 |
+
- Pytorch 2.3.0+cu121
|
71 |
+
- Datasets 2.19.1
|
72 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/hubert-base-ls960",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"apply_spec_augment": true,
|
5 |
+
"architectures": [
|
6 |
+
"HubertForSequenceClassification"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.1,
|
9 |
+
"bos_token_id": 1,
|
10 |
+
"classifier_proj_size": 256,
|
11 |
+
"conv_bias": false,
|
12 |
+
"conv_dim": [
|
13 |
+
512,
|
14 |
+
512,
|
15 |
+
512,
|
16 |
+
512,
|
17 |
+
512,
|
18 |
+
512,
|
19 |
+
512
|
20 |
+
],
|
21 |
+
"conv_kernel": [
|
22 |
+
10,
|
23 |
+
3,
|
24 |
+
3,
|
25 |
+
3,
|
26 |
+
3,
|
27 |
+
2,
|
28 |
+
2
|
29 |
+
],
|
30 |
+
"conv_stride": [
|
31 |
+
5,
|
32 |
+
2,
|
33 |
+
2,
|
34 |
+
2,
|
35 |
+
2,
|
36 |
+
2,
|
37 |
+
2
|
38 |
+
],
|
39 |
+
"ctc_loss_reduction": "sum",
|
40 |
+
"ctc_zero_infinity": false,
|
41 |
+
"do_stable_layer_norm": false,
|
42 |
+
"eos_token_id": 2,
|
43 |
+
"feat_extract_activation": "gelu",
|
44 |
+
"feat_extract_dropout": 0.0,
|
45 |
+
"feat_extract_norm": "group",
|
46 |
+
"feat_proj_dropout": 0.1,
|
47 |
+
"feat_proj_layer_norm": true,
|
48 |
+
"final_dropout": 0.1,
|
49 |
+
"gradient_checkpointing": false,
|
50 |
+
"hidden_act": "gelu",
|
51 |
+
"hidden_dropout": 0.1,
|
52 |
+
"hidden_dropout_prob": 0.1,
|
53 |
+
"hidden_size": 768,
|
54 |
+
"id2label": {
|
55 |
+
"0": "LABEL_0",
|
56 |
+
"1": "LABEL_1",
|
57 |
+
"2": "LABEL_2",
|
58 |
+
"3": "LABEL_3",
|
59 |
+
"4": "LABEL_4",
|
60 |
+
"5": "LABEL_5",
|
61 |
+
"6": "LABEL_6",
|
62 |
+
"7": "LABEL_7",
|
63 |
+
"8": "LABEL_8",
|
64 |
+
"9": "LABEL_9",
|
65 |
+
"10": "LABEL_10",
|
66 |
+
"11": "LABEL_11",
|
67 |
+
"12": "LABEL_12",
|
68 |
+
"13": "LABEL_13",
|
69 |
+
"14": "LABEL_14",
|
70 |
+
"15": "LABEL_15",
|
71 |
+
"16": "LABEL_16",
|
72 |
+
"17": "LABEL_17",
|
73 |
+
"18": "LABEL_18",
|
74 |
+
"19": "LABEL_19",
|
75 |
+
"20": "LABEL_20",
|
76 |
+
"21": "LABEL_21",
|
77 |
+
"22": "LABEL_22",
|
78 |
+
"23": "LABEL_23",
|
79 |
+
"24": "LABEL_24",
|
80 |
+
"25": "LABEL_25",
|
81 |
+
"26": "LABEL_26",
|
82 |
+
"27": "LABEL_27",
|
83 |
+
"28": "LABEL_28",
|
84 |
+
"29": "LABEL_29",
|
85 |
+
"30": "LABEL_30",
|
86 |
+
"31": "LABEL_31",
|
87 |
+
"32": "LABEL_32",
|
88 |
+
"33": "LABEL_33",
|
89 |
+
"34": "LABEL_34",
|
90 |
+
"35": "LABEL_35",
|
91 |
+
"36": "LABEL_36",
|
92 |
+
"37": "LABEL_37",
|
93 |
+
"38": "LABEL_38",
|
94 |
+
"39": "LABEL_39",
|
95 |
+
"40": "LABEL_40",
|
96 |
+
"41": "LABEL_41",
|
97 |
+
"42": "LABEL_42",
|
98 |
+
"43": "LABEL_43",
|
99 |
+
"44": "LABEL_44",
|
100 |
+
"45": "LABEL_45",
|
101 |
+
"46": "LABEL_46",
|
102 |
+
"47": "LABEL_47",
|
103 |
+
"48": "LABEL_48",
|
104 |
+
"49": "LABEL_49"
|
105 |
+
},
|
106 |
+
"initializer_range": 0.02,
|
107 |
+
"intermediate_size": 3072,
|
108 |
+
"label2id": {
|
109 |
+
"LABEL_0": 0,
|
110 |
+
"LABEL_1": 1,
|
111 |
+
"LABEL_10": 10,
|
112 |
+
"LABEL_11": 11,
|
113 |
+
"LABEL_12": 12,
|
114 |
+
"LABEL_13": 13,
|
115 |
+
"LABEL_14": 14,
|
116 |
+
"LABEL_15": 15,
|
117 |
+
"LABEL_16": 16,
|
118 |
+
"LABEL_17": 17,
|
119 |
+
"LABEL_18": 18,
|
120 |
+
"LABEL_19": 19,
|
121 |
+
"LABEL_2": 2,
|
122 |
+
"LABEL_20": 20,
|
123 |
+
"LABEL_21": 21,
|
124 |
+
"LABEL_22": 22,
|
125 |
+
"LABEL_23": 23,
|
126 |
+
"LABEL_24": 24,
|
127 |
+
"LABEL_25": 25,
|
128 |
+
"LABEL_26": 26,
|
129 |
+
"LABEL_27": 27,
|
130 |
+
"LABEL_28": 28,
|
131 |
+
"LABEL_29": 29,
|
132 |
+
"LABEL_3": 3,
|
133 |
+
"LABEL_30": 30,
|
134 |
+
"LABEL_31": 31,
|
135 |
+
"LABEL_32": 32,
|
136 |
+
"LABEL_33": 33,
|
137 |
+
"LABEL_34": 34,
|
138 |
+
"LABEL_35": 35,
|
139 |
+
"LABEL_36": 36,
|
140 |
+
"LABEL_37": 37,
|
141 |
+
"LABEL_38": 38,
|
142 |
+
"LABEL_39": 39,
|
143 |
+
"LABEL_4": 4,
|
144 |
+
"LABEL_40": 40,
|
145 |
+
"LABEL_41": 41,
|
146 |
+
"LABEL_42": 42,
|
147 |
+
"LABEL_43": 43,
|
148 |
+
"LABEL_44": 44,
|
149 |
+
"LABEL_45": 45,
|
150 |
+
"LABEL_46": 46,
|
151 |
+
"LABEL_47": 47,
|
152 |
+
"LABEL_48": 48,
|
153 |
+
"LABEL_49": 49,
|
154 |
+
"LABEL_5": 5,
|
155 |
+
"LABEL_6": 6,
|
156 |
+
"LABEL_7": 7,
|
157 |
+
"LABEL_8": 8,
|
158 |
+
"LABEL_9": 9
|
159 |
+
},
|
160 |
+
"layer_norm_eps": 1e-05,
|
161 |
+
"layerdrop": 0.1,
|
162 |
+
"mask_feature_length": 10,
|
163 |
+
"mask_feature_min_masks": 0,
|
164 |
+
"mask_feature_prob": 0.0,
|
165 |
+
"mask_time_length": 10,
|
166 |
+
"mask_time_min_masks": 2,
|
167 |
+
"mask_time_prob": 0.05,
|
168 |
+
"model_type": "hubert",
|
169 |
+
"num_attention_heads": 12,
|
170 |
+
"num_conv_pos_embedding_groups": 16,
|
171 |
+
"num_conv_pos_embeddings": 128,
|
172 |
+
"num_feat_extract_layers": 7,
|
173 |
+
"num_hidden_layers": 12,
|
174 |
+
"pad_token_id": 0,
|
175 |
+
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|
176 |
+
"torch_dtype": "float32",
|
177 |
+
"transformers_version": "4.40.2",
|
178 |
+
"use_weighted_layer_sum": false,
|
179 |
+
"vocab_size": 32
|
180 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3aca9a31c08b0c4a7d061c7f6343f537490cee9bbfa0c7ebf1b884c251e9d587
|
3 |
+
size 378351296
|
preprocessor_config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"padding_side": "right",
|
6 |
+
"padding_value": 0,
|
7 |
+
"return_attention_mask": false,
|
8 |
+
"sampling_rate": 16000
|
9 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a5b405423b7cf1073607f9d57b07d425320bebb99dd43d01acbfdcd0917727a
|
3 |
+
size 4984
|