yasinarafatbd commited on
Commit
b3266ff
·
verified ·
1 Parent(s): a463145

Initial release: Fine-tuned Whisper for engine sounds

Browse files
config.json ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "gelu",
4
+ "apply_spec_augment": false,
5
+ "architectures": [
6
+ "WhisperForAudioClassification"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "begin_suppress_tokens": [
10
+ 220,
11
+ 50257
12
+ ],
13
+ "bos_token_id": 50257,
14
+ "classifier_proj_size": 256,
15
+ "d_model": 768,
16
+ "decoder_attention_heads": 12,
17
+ "decoder_ffn_dim": 3072,
18
+ "decoder_layerdrop": 0.0,
19
+ "decoder_layers": 12,
20
+ "decoder_start_token_id": 50258,
21
+ "dropout": 0.0,
22
+ "encoder_attention_heads": 12,
23
+ "encoder_ffn_dim": 3072,
24
+ "encoder_layerdrop": 0.0,
25
+ "encoder_layers": 12,
26
+ "eos_token_id": 50257,
27
+ "forced_decoder_ids": [
28
+ [
29
+ 1,
30
+ 50259
31
+ ],
32
+ [
33
+ 2,
34
+ 50359
35
+ ],
36
+ [
37
+ 3,
38
+ 50363
39
+ ]
40
+ ],
41
+ "id2label": {
42
+ "0": "This audio represents engine accelerating",
43
+ "1": "This audio represents engine idling",
44
+ "2": "This audio represents engine knocking",
45
+ "3": "This audio represents engine revving",
46
+ "4": "This audio represents engine starting"
47
+ },
48
+ "init_std": 0.02,
49
+ "is_encoder_decoder": true,
50
+ "label2id": {
51
+ "This audio represents engine accelerating": 0,
52
+ "This audio represents engine idling": 1,
53
+ "This audio represents engine knocking": 2,
54
+ "This audio represents engine revving": 3,
55
+ "This audio represents engine starting": 4
56
+ },
57
+ "mask_feature_length": 10,
58
+ "mask_feature_min_masks": 0,
59
+ "mask_feature_prob": 0.0,
60
+ "mask_time_length": 10,
61
+ "mask_time_min_masks": 2,
62
+ "mask_time_prob": 0.05,
63
+ "max_length": 448,
64
+ "max_source_positions": 1500,
65
+ "max_target_positions": 448,
66
+ "median_filter_width": 7,
67
+ "model_type": "whisper",
68
+ "num_hidden_layers": 12,
69
+ "num_mel_bins": 80,
70
+ "pad_token_id": 50257,
71
+ "scale_embedding": false,
72
+ "suppress_tokens": [
73
+ 1,
74
+ 2,
75
+ 7,
76
+ 8,
77
+ 9,
78
+ 10,
79
+ 14,
80
+ 25,
81
+ 26,
82
+ 27,
83
+ 28,
84
+ 29,
85
+ 31,
86
+ 58,
87
+ 59,
88
+ 60,
89
+ 61,
90
+ 62,
91
+ 63,
92
+ 90,
93
+ 91,
94
+ 92,
95
+ 93,
96
+ 359,
97
+ 503,
98
+ 522,
99
+ 542,
100
+ 873,
101
+ 893,
102
+ 902,
103
+ 918,
104
+ 922,
105
+ 931,
106
+ 1350,
107
+ 1853,
108
+ 1982,
109
+ 2460,
110
+ 2627,
111
+ 3246,
112
+ 3253,
113
+ 3268,
114
+ 3536,
115
+ 3846,
116
+ 3961,
117
+ 4183,
118
+ 4667,
119
+ 6585,
120
+ 6647,
121
+ 7273,
122
+ 9061,
123
+ 9383,
124
+ 10428,
125
+ 10929,
126
+ 11938,
127
+ 12033,
128
+ 12331,
129
+ 12562,
130
+ 13793,
131
+ 14157,
132
+ 14635,
133
+ 15265,
134
+ 15618,
135
+ 16553,
136
+ 16604,
137
+ 18362,
138
+ 18956,
139
+ 20075,
140
+ 21675,
141
+ 22520,
142
+ 26130,
143
+ 26161,
144
+ 26435,
145
+ 28279,
146
+ 29464,
147
+ 31650,
148
+ 32302,
149
+ 32470,
150
+ 36865,
151
+ 42863,
152
+ 47425,
153
+ 49870,
154
+ 50254,
155
+ 50258,
156
+ 50360,
157
+ 50361,
158
+ 50362
159
+ ],
160
+ "torch_dtype": "float32",
161
+ "transformers_version": "4.50.0.dev0",
162
+ "use_cache": true,
163
+ "use_weighted_layer_sum": false,
164
+ "vocab_size": 51865
165
+ }
label_encoder.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0aa36e8020a261e1a0a83fd55a03c9c48e1217ab2aa168ad92669a8134514c3
3
+ size 1147
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c07ac3ce4b4000e05593993be1a1dd78a926964efa0360c854ab28eed0dba1d
3
+ size 353429444
preprocessor_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 30,
3
+ "dither": 0.0,
4
+ "feature_extractor_type": "WhisperFeatureExtractor",
5
+ "feature_size": 80,
6
+ "hop_length": 160,
7
+ "n_fft": 400,
8
+ "n_samples": 480000,
9
+ "nb_max_frames": 3000,
10
+ "padding_side": "right",
11
+ "padding_value": 0.0,
12
+ "processor_class": "WhisperProcessor",
13
+ "return_attention_mask": false,
14
+ "sampling_rate": 16000
15
+ }