HaniaRuby commited on
Commit
292b16f
·
verified ·
1 Parent(s): 755db71

speech-emotion-recognition-wav2vec2

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: facebook/wav2vec2-base
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: results
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # results
18
+
19
+ This model is a fine-tuned version of [facebook/wav2vec2-base](https://huggingface.co/facebook/wav2vec2-base) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.7358
22
+ - Accuracy: 0.8338
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 2e-05
42
+ - train_batch_size: 8
43
+ - eval_batch_size: 8
44
+ - seed: 42
45
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 6
48
+ - mixed_precision_training: Native AMP
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
53
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
54
+ | 0.8199 | 1.0 | 1161 | 0.7154 | 0.7446 |
55
+ | 0.7633 | 2.0 | 2322 | 0.5800 | 0.8019 |
56
+ | 0.5081 | 3.0 | 3483 | 0.5602 | 0.8084 |
57
+ | 0.3336 | 4.0 | 4644 | 0.6145 | 0.8277 |
58
+ | 0.3169 | 5.0 | 5805 | 0.6933 | 0.8316 |
59
+ | 0.1281 | 6.0 | 6966 | 0.7358 | 0.8338 |
60
+
61
+
62
+ ### Framework versions
63
+
64
+ - Transformers 4.51.3
65
+ - Pytorch 2.6.0+cu124
66
+ - Datasets 3.5.1
67
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "adapter_attn_dim": null,
4
+ "adapter_kernel_size": 3,
5
+ "adapter_stride": 2,
6
+ "add_adapter": false,
7
+ "apply_spec_augment": true,
8
+ "architectures": [
9
+ "Wav2Vec2ForSequenceClassification"
10
+ ],
11
+ "attention_dropout": 0.1,
12
+ "bos_token_id": 1,
13
+ "classifier_proj_size": 256,
14
+ "codevector_dim": 256,
15
+ "contrastive_logits_temperature": 0.1,
16
+ "conv_bias": false,
17
+ "conv_dim": [
18
+ 512,
19
+ 512,
20
+ 512,
21
+ 512,
22
+ 512,
23
+ 512,
24
+ 512
25
+ ],
26
+ "conv_kernel": [
27
+ 10,
28
+ 3,
29
+ 3,
30
+ 3,
31
+ 3,
32
+ 2,
33
+ 2
34
+ ],
35
+ "conv_stride": [
36
+ 5,
37
+ 2,
38
+ 2,
39
+ 2,
40
+ 2,
41
+ 2,
42
+ 2
43
+ ],
44
+ "ctc_loss_reduction": "sum",
45
+ "ctc_zero_infinity": false,
46
+ "diversity_loss_weight": 0.1,
47
+ "do_stable_layer_norm": false,
48
+ "eos_token_id": 2,
49
+ "feat_extract_activation": "gelu",
50
+ "feat_extract_norm": "group",
51
+ "feat_proj_dropout": 0.1,
52
+ "feat_quantizer_dropout": 0.0,
53
+ "final_dropout": 0.0,
54
+ "freeze_feat_extract_train": true,
55
+ "hidden_act": "gelu",
56
+ "hidden_dropout": 0.1,
57
+ "hidden_size": 768,
58
+ "id2label": {
59
+ "0": "angry",
60
+ "1": "disgust",
61
+ "2": "fear",
62
+ "3": "happy",
63
+ "4": "neutral",
64
+ "5": "sad",
65
+ "6": "surprise"
66
+ },
67
+ "initializer_range": 0.02,
68
+ "intermediate_size": 3072,
69
+ "label2id": {
70
+ "angry": 0,
71
+ "disgust": 1,
72
+ "fear": 2,
73
+ "happy": 3,
74
+ "neutral": 4,
75
+ "sad": 5,
76
+ "surprise": 6
77
+ },
78
+ "layer_norm_eps": 1e-05,
79
+ "layerdrop": 0.0,
80
+ "mask_channel_length": 10,
81
+ "mask_channel_min_space": 1,
82
+ "mask_channel_other": 0.0,
83
+ "mask_channel_prob": 0.0,
84
+ "mask_channel_selection": "static",
85
+ "mask_feature_length": 10,
86
+ "mask_feature_min_masks": 0,
87
+ "mask_feature_prob": 0.0,
88
+ "mask_time_length": 10,
89
+ "mask_time_min_masks": 2,
90
+ "mask_time_min_space": 1,
91
+ "mask_time_other": 0.0,
92
+ "mask_time_prob": 0.05,
93
+ "mask_time_selection": "static",
94
+ "model_type": "wav2vec2",
95
+ "no_mask_channel_overlap": false,
96
+ "no_mask_time_overlap": false,
97
+ "num_adapter_layers": 3,
98
+ "num_attention_heads": 12,
99
+ "num_codevector_groups": 2,
100
+ "num_codevectors_per_group": 320,
101
+ "num_conv_pos_embedding_groups": 16,
102
+ "num_conv_pos_embeddings": 128,
103
+ "num_feat_extract_layers": 7,
104
+ "num_hidden_layers": 12,
105
+ "num_negatives": 100,
106
+ "output_hidden_size": 768,
107
+ "pad_token_id": 0,
108
+ "problem_type": "single_label_classification",
109
+ "proj_codevector_dim": 256,
110
+ "tdnn_dilation": [
111
+ 1,
112
+ 2,
113
+ 3,
114
+ 1,
115
+ 1
116
+ ],
117
+ "tdnn_dim": [
118
+ 512,
119
+ 512,
120
+ 512,
121
+ 512,
122
+ 1500
123
+ ],
124
+ "tdnn_kernel": [
125
+ 5,
126
+ 3,
127
+ 3,
128
+ 1,
129
+ 1
130
+ ],
131
+ "torch_dtype": "float32",
132
+ "transformers_version": "4.51.3",
133
+ "use_weighted_layer_sum": false,
134
+ "vocab_size": 32,
135
+ "xvector_output_dim": 512
136
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1db42dcdc94a4c39d3bd31f6490014d4620b55e3a7d01e706bd51b9f6f469e1
3
+ size 378307508
preprocessor_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
4
+ "feature_size": 1,
5
+ "padding_side": "right",
6
+ "padding_value": 0.0,
7
+ "processor_class": "Wav2Vec2Processor",
8
+ "return_attention_mask": false,
9
+ "sampling_rate": 16000
10
+ }
runs/May02_17-38-36_eadcf673b046/events.out.tfevents.1746207524.eadcf673b046.240.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2eedd0ba4cab39e6f26c69303ba4b4f9f11e3fd620cbe0311ae9eca62d39b55
3
+ size 230480
runs/May02_19-27-58_eadcf673b046/events.out.tfevents.1746214079.eadcf673b046.240.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60ce4b13b923f7f3b6f43b03cb1ef4eb0d3281dcd899cf3c1e6a9dcff3473212
3
+ size 130367
runs/May02_20-23-43_eadcf673b046/events.out.tfevents.1746217423.eadcf673b046.240.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:daf89e9cc5c0fdb633d4b1007cda62211fdc1d3a504c7816db44ed944d5762f5
3
+ size 156083
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": "</s>",
4
+ "pad_token": "<pad>",
5
+ "unk_token": "<unk>"
6
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<pad>",
5
+ "lstrip": true,
6
+ "normalized": false,
7
+ "rstrip": true,
8
+ "single_word": false,
9
+ "special": false
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": true,
14
+ "normalized": false,
15
+ "rstrip": true,
16
+ "single_word": false,
17
+ "special": false
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": true,
22
+ "normalized": false,
23
+ "rstrip": true,
24
+ "single_word": false,
25
+ "special": false
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": true,
30
+ "normalized": false,
31
+ "rstrip": true,
32
+ "single_word": false,
33
+ "special": false
34
+ }
35
+ },
36
+ "bos_token": "<s>",
37
+ "clean_up_tokenization_spaces": false,
38
+ "do_lower_case": false,
39
+ "do_normalize": true,
40
+ "eos_token": "</s>",
41
+ "extra_special_tokens": {},
42
+ "model_max_length": 1000000000000000019884624838656,
43
+ "pad_token": "<pad>",
44
+ "processor_class": "Wav2Vec2Processor",
45
+ "replace_word_delimiter_char": " ",
46
+ "return_attention_mask": false,
47
+ "target_lang": null,
48
+ "tokenizer_class": "Wav2Vec2CTCTokenizer",
49
+ "unk_token": "<unk>",
50
+ "word_delimiter_token": "|"
51
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90375b072adea5e277f0d3b34fb4ce6c0a9c459f1f05443cf27a2db0bc795c8d
3
+ size 5304
vocab.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "'": 27,
3
+ "</s>": 2,
4
+ "<pad>": 0,
5
+ "<s>": 1,
6
+ "<unk>": 3,
7
+ "A": 7,
8
+ "B": 24,
9
+ "C": 19,
10
+ "D": 14,
11
+ "E": 5,
12
+ "F": 20,
13
+ "G": 21,
14
+ "H": 11,
15
+ "I": 10,
16
+ "J": 29,
17
+ "K": 26,
18
+ "L": 15,
19
+ "M": 17,
20
+ "N": 9,
21
+ "O": 8,
22
+ "P": 23,
23
+ "Q": 30,
24
+ "R": 13,
25
+ "S": 12,
26
+ "T": 6,
27
+ "U": 16,
28
+ "V": 25,
29
+ "W": 18,
30
+ "X": 28,
31
+ "Y": 22,
32
+ "Z": 31,
33
+ "|": 4
34
+ }