Shamik commited on
Commit
fad94fe
1 Parent(s): d4d14f7

End of training

Browse files
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: openai/whisper-base.en
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - marsyas/gtzan
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: whisper-base.en-finetuned-gtzan
12
+ results:
13
+ - task:
14
+ name: Audio Classification
15
+ type: audio-classification
16
+ dataset:
17
+ name: GTZAN
18
+ type: marsyas/gtzan
19
+ config: all
20
+ split: train
21
+ args: all
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.92
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # whisper-base.en-finetuned-gtzan
32
+
33
+ This model is a fine-tuned version of [openai/whisper-base.en](https://huggingface.co/openai/whisper-base.en) on the GTZAN dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.3412
36
+ - Accuracy: 0.92
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 5e-05
56
+ - train_batch_size: 8
57
+ - eval_batch_size: 8
58
+ - seed: 42
59
+ - gradient_accumulation_steps: 2
60
+ - total_train_batch_size: 16
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - lr_scheduler_warmup_ratio: 0.1
64
+ - num_epochs: 10
65
+ - mixed_precision_training: Native AMP
66
+
67
+ ### Training results
68
+
69
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
70
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
71
+ | 1.5696 | 0.99 | 56 | 1.3573 | 0.62 |
72
+ | 0.9913 | 2.0 | 113 | 0.7820 | 0.77 |
73
+ | 0.4771 | 2.99 | 169 | 0.4873 | 0.84 |
74
+ | 0.4411 | 4.0 | 226 | 0.3367 | 0.91 |
75
+ | 0.1615 | 4.99 | 282 | 0.3412 | 0.92 |
76
+ | 0.1339 | 6.0 | 339 | 0.4125 | 0.91 |
77
+ | 0.0331 | 6.99 | 395 | 0.4773 | 0.89 |
78
+ | 0.0382 | 8.0 | 452 | 0.4282 | 0.88 |
79
+ | 0.049 | 8.99 | 508 | 0.4634 | 0.9 |
80
+ | 0.0312 | 9.91 | 560 | 0.4444 | 0.9 |
81
+
82
+
83
+ ### Framework versions
84
+
85
+ - Transformers 4.35.2
86
+ - Pytorch 2.1.0+cu118
87
+ - Datasets 2.15.0
88
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "openai/whisper-base.en",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "gelu",
5
+ "apply_spec_augment": false,
6
+ "architectures": [
7
+ "WhisperForAudioClassification"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "begin_suppress_tokens": [
11
+ 220,
12
+ 50256
13
+ ],
14
+ "bos_token_id": 50257,
15
+ "classifier_proj_size": 256,
16
+ "d_model": 512,
17
+ "decoder_attention_heads": 8,
18
+ "decoder_ffn_dim": 2048,
19
+ "decoder_layerdrop": 0.0,
20
+ "decoder_layers": 6,
21
+ "decoder_start_token_id": 50257,
22
+ "dropout": 0.0,
23
+ "encoder_attention_heads": 8,
24
+ "encoder_ffn_dim": 2048,
25
+ "encoder_layerdrop": 0.0,
26
+ "encoder_layers": 6,
27
+ "eos_token_id": 50256,
28
+ "forced_decoder_ids": [
29
+ [
30
+ 1,
31
+ 50362
32
+ ]
33
+ ],
34
+ "id2label": {
35
+ "0": "blues",
36
+ "1": "classical",
37
+ "2": "country",
38
+ "3": "disco",
39
+ "4": "hiphop",
40
+ "5": "jazz",
41
+ "6": "metal",
42
+ "7": "pop",
43
+ "8": "reggae",
44
+ "9": "rock"
45
+ },
46
+ "init_std": 0.02,
47
+ "is_encoder_decoder": true,
48
+ "label2id": {
49
+ "blues": "0",
50
+ "classical": "1",
51
+ "country": "2",
52
+ "disco": "3",
53
+ "hiphop": "4",
54
+ "jazz": "5",
55
+ "metal": "6",
56
+ "pop": "7",
57
+ "reggae": "8",
58
+ "rock": "9"
59
+ },
60
+ "mask_feature_length": 10,
61
+ "mask_feature_min_masks": 0,
62
+ "mask_feature_prob": 0.0,
63
+ "mask_time_length": 10,
64
+ "mask_time_min_masks": 2,
65
+ "mask_time_prob": 0.05,
66
+ "max_length": 448,
67
+ "max_source_positions": 1500,
68
+ "max_target_positions": 448,
69
+ "median_filter_width": 7,
70
+ "model_type": "whisper",
71
+ "num_hidden_layers": 6,
72
+ "num_mel_bins": 80,
73
+ "pad_token_id": 50256,
74
+ "scale_embedding": false,
75
+ "suppress_tokens": [
76
+ 1,
77
+ 2,
78
+ 7,
79
+ 8,
80
+ 9,
81
+ 10,
82
+ 14,
83
+ 25,
84
+ 26,
85
+ 27,
86
+ 28,
87
+ 29,
88
+ 31,
89
+ 58,
90
+ 59,
91
+ 60,
92
+ 61,
93
+ 62,
94
+ 63,
95
+ 90,
96
+ 91,
97
+ 92,
98
+ 93,
99
+ 357,
100
+ 366,
101
+ 438,
102
+ 532,
103
+ 685,
104
+ 705,
105
+ 796,
106
+ 930,
107
+ 1058,
108
+ 1220,
109
+ 1267,
110
+ 1279,
111
+ 1303,
112
+ 1343,
113
+ 1377,
114
+ 1391,
115
+ 1635,
116
+ 1782,
117
+ 1875,
118
+ 2162,
119
+ 2361,
120
+ 2488,
121
+ 3467,
122
+ 4008,
123
+ 4211,
124
+ 4600,
125
+ 4808,
126
+ 5299,
127
+ 5855,
128
+ 6329,
129
+ 7203,
130
+ 9609,
131
+ 9959,
132
+ 10563,
133
+ 10786,
134
+ 11420,
135
+ 11709,
136
+ 11907,
137
+ 13163,
138
+ 13697,
139
+ 13700,
140
+ 14808,
141
+ 15306,
142
+ 16410,
143
+ 16791,
144
+ 17992,
145
+ 19203,
146
+ 19510,
147
+ 20724,
148
+ 22305,
149
+ 22935,
150
+ 27007,
151
+ 30109,
152
+ 30420,
153
+ 33409,
154
+ 34949,
155
+ 40283,
156
+ 40493,
157
+ 40549,
158
+ 47282,
159
+ 49146,
160
+ 50257,
161
+ 50357,
162
+ 50358,
163
+ 50359,
164
+ 50360,
165
+ 50361
166
+ ],
167
+ "torch_dtype": "float32",
168
+ "transformers_version": "4.35.2",
169
+ "use_cache": true,
170
+ "use_weighted_layer_sum": false,
171
+ "vocab_size": 51864
172
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b65ba0b2a783d70f4ac1994ea249a44495377a7db6a4448ca3e61c7abb64f382
3
+ size 82908496
preprocessor_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 30,
3
+ "feature_extractor_type": "WhisperFeatureExtractor",
4
+ "feature_size": 80,
5
+ "hop_length": 160,
6
+ "n_fft": 400,
7
+ "n_samples": 480000,
8
+ "nb_max_frames": 3000,
9
+ "padding_side": "right",
10
+ "padding_value": 0.0,
11
+ "processor_class": "WhisperProcessor",
12
+ "return_attention_mask": false,
13
+ "sampling_rate": 16000
14
+ }
runs/Nov29_07-18-11_b6274ca41402/events.out.tfevents.1701242297.b6274ca41402.621.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57bbc79f9e24e10ac63c8d7378dadba8dc670a2aabce757cbae71cda0882c5d0
3
+ size 27327
runs/Nov29_07-18-11_b6274ca41402/events.out.tfevents.1701243942.b6274ca41402.621.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6621867f7b36cbaf7c1fc3f1c4a4eec78c24c2b257909bd52be86d345525be1
3
+ size 411
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27b5ff35d069cd9ab901455574743026df132e6323748e088c356480401e538d
3
+ size 4600