steveway commited on
Commit
7e866bd
1 Parent(s): 34d7233

Upload folder using huggingface_hub

Browse files
wav2vec2-large-emotion-detection-german.config ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Wav2Vec2Config {
2
+ "_name_or_path": "padmalcom/wav2vec2-large-emotion-detection-german",
3
+ "activation_dropout": 0.1,
4
+ "adapter_attn_dim": null,
5
+ "adapter_kernel_size": 3,
6
+ "adapter_stride": 2,
7
+ "add_adapter": false,
8
+ "apply_spec_augment": true,
9
+ "architectures": [
10
+ "Wav2Vec2ForSpeechClassification"
11
+ ],
12
+ "attention_dropout": 0.1,
13
+ "bos_token_id": 1,
14
+ "classifier_proj_size": 256,
15
+ "codevector_dim": 256,
16
+ "contrastive_logits_temperature": 0.1,
17
+ "conv_bias": true,
18
+ "conv_dim": [
19
+ 512,
20
+ 512,
21
+ 512,
22
+ 512,
23
+ 512,
24
+ 512,
25
+ 512
26
+ ],
27
+ "conv_kernel": [
28
+ 10,
29
+ 3,
30
+ 3,
31
+ 3,
32
+ 3,
33
+ 2,
34
+ 2
35
+ ],
36
+ "conv_stride": [
37
+ 5,
38
+ 2,
39
+ 2,
40
+ 2,
41
+ 2,
42
+ 2,
43
+ 2
44
+ ],
45
+ "ctc_loss_reduction": "sum",
46
+ "ctc_zero_infinity": false,
47
+ "diversity_loss_weight": 0.1,
48
+ "do_stable_layer_norm": true,
49
+ "eos_token_id": 2,
50
+ "feat_extract_activation": "gelu",
51
+ "feat_extract_dropout": 0.0,
52
+ "feat_extract_norm": "layer",
53
+ "feat_proj_dropout": 0.1,
54
+ "feat_quantizer_dropout": 0.0,
55
+ "final_dropout": 0.1,
56
+ "finetuning_task": "wav2vec2_clf",
57
+ "gradient_checkpointing": false,
58
+ "hidden_act": "gelu",
59
+ "hidden_dropout": 0.1,
60
+ "hidden_dropout_prob": 0.1,
61
+ "hidden_size": 1024,
62
+ "id2label": {
63
+ "0": "anger",
64
+ "1": "boredom",
65
+ "2": "disgust",
66
+ "3": "fear",
67
+ "4": "happiness",
68
+ "5": "sadness",
69
+ "6": "neutral"
70
+ },
71
+ "initializer_range": 0.02,
72
+ "intermediate_size": 4096,
73
+ "label2id": {
74
+ "anger": 0,
75
+ "boredom": 1,
76
+ "disgust": 2,
77
+ "fear": 3,
78
+ "happiness": 4,
79
+ "neutral": 6,
80
+ "sadness": 5
81
+ },
82
+ "layer_norm_eps": 1e-05,
83
+ "layerdrop": 0.1,
84
+ "mask_feature_length": 10,
85
+ "mask_feature_min_masks": 0,
86
+ "mask_feature_prob": 0.0,
87
+ "mask_time_length": 10,
88
+ "mask_time_min_masks": 2,
89
+ "mask_time_prob": 0.05,
90
+ "model_type": "wav2vec2",
91
+ "num_adapter_layers": 3,
92
+ "num_attention_heads": 16,
93
+ "num_codevector_groups": 2,
94
+ "num_codevectors_per_group": 320,
95
+ "num_conv_pos_embedding_groups": 16,
96
+ "num_conv_pos_embeddings": 128,
97
+ "num_feat_extract_layers": 7,
98
+ "num_hidden_layers": 24,
99
+ "num_negatives": 100,
100
+ "output_hidden_size": 1024,
101
+ "pad_token_id": 0,
102
+ "pooling_mode": "mean",
103
+ "problem_type": "single_label_classification",
104
+ "proj_codevector_dim": 256,
105
+ "tdnn_dilation": [
106
+ 1,
107
+ 2,
108
+ 3,
109
+ 1,
110
+ 1
111
+ ],
112
+ "tdnn_dim": [
113
+ 512,
114
+ 512,
115
+ 512,
116
+ 512,
117
+ 1500
118
+ ],
119
+ "tdnn_kernel": [
120
+ 5,
121
+ 3,
122
+ 3,
123
+ 1,
124
+ 1
125
+ ],
126
+ "torch_dtype": "float32",
127
+ "transformers_version": "4.41.0",
128
+ "use_weighted_layer_sum": false,
129
+ "vocab_size": 32,
130
+ "xvector_output_dim": 512
131
+ }
wav2vec2-large-emotion-detection-german.feature ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ Wav2Vec2FeatureExtractor {
2
+ "do_normalize": true,
3
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
4
+ "feature_size": 1,
5
+ "padding_side": "right",
6
+ "padding_value": 0.0,
7
+ "return_attention_mask": true,
8
+ "sampling_rate": 16000
9
+ }
wav2vec2-large-emotion-detection-german.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ccb3dce44226c65ae9a961595944a833fb3b027d6cfe5f2865f00e77faeda4d
3
+ size 1263408034
wav2vec2-large-emotion-detection-german.processor ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Wav2Vec2Processor:
2
+ - feature_extractor: Wav2Vec2FeatureExtractor {
3
+ "do_normalize": true,
4
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
5
+ "feature_size": 1,
6
+ "padding_side": "right",
7
+ "padding_value": 0.0,
8
+ "return_attention_mask": true,
9
+ "sampling_rate": 16000
10
+ }
11
+
12
+ - tokenizer: Wav2Vec2CTCTokenizer(name_or_path='padmalcom/wav2vec2-large-emotion-detection-german', vocab_size=32, model_max_length=1000000000000000019884624838656, is_fast=False, padding_side='right', truncation_side='right', special_tokens={'bos_token': '<s>', 'eos_token': '</s>', 'unk_token': '<unk>', 'pad_token': '<pad>'}, clean_up_tokenization_spaces=True), added_tokens_decoder={
13
+ 0: AddedToken("<pad>", rstrip=True, lstrip=True, single_word=False, normalized=False, special=False),
14
+ 1: AddedToken("<s>", rstrip=True, lstrip=True, single_word=False, normalized=False, special=False),
15
+ 2: AddedToken("</s>", rstrip=True, lstrip=True, single_word=False, normalized=False, special=False),
16
+ 3: AddedToken("<unk>", rstrip=True, lstrip=True, single_word=False, normalized=False, special=False),
17
+ }
18
+
19
+ {
20
+ "processor_class": "Wav2Vec2Processor"
21
+ }
wav2vec2-large-emotion-detection-german.tokens ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 0: <pad>
2
+ 1: <s>
3
+ 2: </s>
4
+ 3: <unk>
5
+ 4: '|'
6
+ 5: E
7
+ 6: T
8
+ 7: A
9
+ 8: O
10
+ 9: N
11
+ 10: I
12
+ 11: H
13
+ 12: S
14
+ 13: R
15
+ 14: D
16
+ 15: L
17
+ 16: U
18
+ 17: M
19
+ 18: W
20
+ 19: C
21
+ 20: F
22
+ 21: G
23
+ 22: Y
24
+ 23: P
25
+ 24: B
26
+ 25: V
27
+ 26: K
28
+ 27: ''''
29
+ 28: X
30
+ 29: J
31
+ 30: Q
32
+ 31: Z
wav2vec2-large-emotion-detection-german.yaml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ feature_extractor: Wav2Vec2FeatureExtractor
2
+ labels:
3
+ 0: anger
4
+ 1: boredom
5
+ 2: disgust
6
+ 3: fear
7
+ 4: happiness
8
+ 5: sadness
9
+ 6: neutral
10
+ model: Wav2Vec2ForSequenceClassification
11
+ sampling_rate: 16000
12
+ shape:
13
+ - 1
14
+ - 320000