End of training
Browse files- README.md +86 -0
- config.json +178 -0
- model.safetensors +3 -0
- preprocessor_config.json +14 -0
- runs/Feb27_09-38-40_552b483abe5c/events.out.tfevents.1709026723.552b483abe5c.3179.1 +3 -0
- runs/Feb27_09-40-05_552b483abe5c/events.out.tfevents.1709026808.552b483abe5c.3179.2 +3 -0
- runs/Feb27_09-48-10_552b483abe5c/events.out.tfevents.1709027291.552b483abe5c.6118.0 +3 -0
- runs/Feb27_09-49-11_552b483abe5c/events.out.tfevents.1709027355.552b483abe5c.6118.1 +3 -0
- runs/Feb27_09-51-08_552b483abe5c/events.out.tfevents.1709027470.552b483abe5c.7234.0 +3 -0
- runs/Feb27_10-03-18_552b483abe5c/events.out.tfevents.1709028201.552b483abe5c.7234.1 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: openai/whisper-tiny
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- marsyas/gtzan
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: whisper-tiny-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.89
|
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-tiny-finetuned-gtzan
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [openai/whisper-tiny](https://huggingface.co/openai/whisper-tiny) on the GTZAN dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.7231
|
36 |
+
- Accuracy: 0.89
|
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: 6
|
57 |
+
- eval_batch_size: 6
|
58 |
+
- seed: 42
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- lr_scheduler_warmup_ratio: 0.1
|
62 |
+
- num_epochs: 10
|
63 |
+
- mixed_precision_training: Native AMP
|
64 |
+
|
65 |
+
### Training results
|
66 |
+
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
69 |
+
| 0.3867 | 1.0 | 150 | 0.4913 | 0.85 |
|
70 |
+
| 0.6883 | 2.0 | 300 | 0.9527 | 0.81 |
|
71 |
+
| 0.0056 | 3.0 | 450 | 0.6576 | 0.84 |
|
72 |
+
| 0.0021 | 4.0 | 600 | 0.7685 | 0.84 |
|
73 |
+
| 0.0007 | 5.0 | 750 | 0.7602 | 0.87 |
|
74 |
+
| 0.0005 | 6.0 | 900 | 0.8593 | 0.85 |
|
75 |
+
| 0.0005 | 7.0 | 1050 | 0.8438 | 0.84 |
|
76 |
+
| 0.0003 | 8.0 | 1200 | 0.6439 | 0.88 |
|
77 |
+
| 0.0003 | 9.0 | 1350 | 0.7370 | 0.88 |
|
78 |
+
| 0.0003 | 10.0 | 1500 | 0.7231 | 0.89 |
|
79 |
+
|
80 |
+
|
81 |
+
### Framework versions
|
82 |
+
|
83 |
+
- Transformers 4.38.1
|
84 |
+
- Pytorch 2.1.0+cu121
|
85 |
+
- Datasets 2.17.1
|
86 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "openai/whisper-tiny",
|
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 |
+
50257
|
13 |
+
],
|
14 |
+
"bos_token_id": 50257,
|
15 |
+
"classifier_proj_size": 256,
|
16 |
+
"d_model": 384,
|
17 |
+
"decoder_attention_heads": 6,
|
18 |
+
"decoder_ffn_dim": 1536,
|
19 |
+
"decoder_layerdrop": 0.0,
|
20 |
+
"decoder_layers": 4,
|
21 |
+
"decoder_start_token_id": 50258,
|
22 |
+
"dropout": 0.0,
|
23 |
+
"encoder_attention_heads": 6,
|
24 |
+
"encoder_ffn_dim": 1536,
|
25 |
+
"encoder_layerdrop": 0.0,
|
26 |
+
"encoder_layers": 4,
|
27 |
+
"eos_token_id": 50257,
|
28 |
+
"forced_decoder_ids": [
|
29 |
+
[
|
30 |
+
1,
|
31 |
+
50259
|
32 |
+
],
|
33 |
+
[
|
34 |
+
2,
|
35 |
+
50359
|
36 |
+
],
|
37 |
+
[
|
38 |
+
3,
|
39 |
+
50363
|
40 |
+
]
|
41 |
+
],
|
42 |
+
"id2label": {
|
43 |
+
"0": "blues",
|
44 |
+
"1": "classical",
|
45 |
+
"2": "country",
|
46 |
+
"3": "disco",
|
47 |
+
"4": "hiphop",
|
48 |
+
"5": "jazz",
|
49 |
+
"6": "metal",
|
50 |
+
"7": "pop",
|
51 |
+
"8": "reggae",
|
52 |
+
"9": "rock"
|
53 |
+
},
|
54 |
+
"init_std": 0.02,
|
55 |
+
"is_encoder_decoder": true,
|
56 |
+
"label2id": {
|
57 |
+
"blues": "0",
|
58 |
+
"classical": "1",
|
59 |
+
"country": "2",
|
60 |
+
"disco": "3",
|
61 |
+
"hiphop": "4",
|
62 |
+
"jazz": "5",
|
63 |
+
"metal": "6",
|
64 |
+
"pop": "7",
|
65 |
+
"reggae": "8",
|
66 |
+
"rock": "9"
|
67 |
+
},
|
68 |
+
"mask_feature_length": 10,
|
69 |
+
"mask_feature_min_masks": 0,
|
70 |
+
"mask_feature_prob": 0.0,
|
71 |
+
"mask_time_length": 10,
|
72 |
+
"mask_time_min_masks": 2,
|
73 |
+
"mask_time_prob": 0.05,
|
74 |
+
"max_length": 448,
|
75 |
+
"max_source_positions": 1500,
|
76 |
+
"max_target_positions": 448,
|
77 |
+
"median_filter_width": 7,
|
78 |
+
"model_type": "whisper",
|
79 |
+
"num_hidden_layers": 4,
|
80 |
+
"num_mel_bins": 80,
|
81 |
+
"pad_token_id": 50257,
|
82 |
+
"scale_embedding": false,
|
83 |
+
"suppress_tokens": [
|
84 |
+
1,
|
85 |
+
2,
|
86 |
+
7,
|
87 |
+
8,
|
88 |
+
9,
|
89 |
+
10,
|
90 |
+
14,
|
91 |
+
25,
|
92 |
+
26,
|
93 |
+
27,
|
94 |
+
28,
|
95 |
+
29,
|
96 |
+
31,
|
97 |
+
58,
|
98 |
+
59,
|
99 |
+
60,
|
100 |
+
61,
|
101 |
+
62,
|
102 |
+
63,
|
103 |
+
90,
|
104 |
+
91,
|
105 |
+
92,
|
106 |
+
93,
|
107 |
+
359,
|
108 |
+
503,
|
109 |
+
522,
|
110 |
+
542,
|
111 |
+
873,
|
112 |
+
893,
|
113 |
+
902,
|
114 |
+
918,
|
115 |
+
922,
|
116 |
+
931,
|
117 |
+
1350,
|
118 |
+
1853,
|
119 |
+
1982,
|
120 |
+
2460,
|
121 |
+
2627,
|
122 |
+
3246,
|
123 |
+
3253,
|
124 |
+
3268,
|
125 |
+
3536,
|
126 |
+
3846,
|
127 |
+
3961,
|
128 |
+
4183,
|
129 |
+
4667,
|
130 |
+
6585,
|
131 |
+
6647,
|
132 |
+
7273,
|
133 |
+
9061,
|
134 |
+
9383,
|
135 |
+
10428,
|
136 |
+
10929,
|
137 |
+
11938,
|
138 |
+
12033,
|
139 |
+
12331,
|
140 |
+
12562,
|
141 |
+
13793,
|
142 |
+
14157,
|
143 |
+
14635,
|
144 |
+
15265,
|
145 |
+
15618,
|
146 |
+
16553,
|
147 |
+
16604,
|
148 |
+
18362,
|
149 |
+
18956,
|
150 |
+
20075,
|
151 |
+
21675,
|
152 |
+
22520,
|
153 |
+
26130,
|
154 |
+
26161,
|
155 |
+
26435,
|
156 |
+
28279,
|
157 |
+
29464,
|
158 |
+
31650,
|
159 |
+
32302,
|
160 |
+
32470,
|
161 |
+
36865,
|
162 |
+
42863,
|
163 |
+
47425,
|
164 |
+
49870,
|
165 |
+
50254,
|
166 |
+
50258,
|
167 |
+
50358,
|
168 |
+
50359,
|
169 |
+
50360,
|
170 |
+
50361,
|
171 |
+
50362
|
172 |
+
],
|
173 |
+
"torch_dtype": "float32",
|
174 |
+
"transformers_version": "4.38.1",
|
175 |
+
"use_cache": true,
|
176 |
+
"use_weighted_layer_sum": false,
|
177 |
+
"vocab_size": 51865
|
178 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:12b47e255ba98789cb2ea4f2eb5fb60f0d4f3d10f62f525efc4c417d8c815818
|
3 |
+
size 33245392
|
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/Feb27_09-38-40_552b483abe5c/events.out.tfevents.1709026723.552b483abe5c.3179.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:52ff3d4d8066768805f7c7a2c841ce2582a6e0268a94ad8da554df28e01e7b57
|
3 |
+
size 8500
|
runs/Feb27_09-40-05_552b483abe5c/events.out.tfevents.1709026808.552b483abe5c.3179.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2dc12683207845eb1d887a058a0d036dfe7fc4845058ab63d55402707ffe1921
|
3 |
+
size 6636
|
runs/Feb27_09-48-10_552b483abe5c/events.out.tfevents.1709027291.552b483abe5c.6118.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:47625cee968aaeda47ce8d0eab08c9169584b6105079bbc48df77b468d928451
|
3 |
+
size 4184
|
runs/Feb27_09-49-11_552b483abe5c/events.out.tfevents.1709027355.552b483abe5c.6118.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f4d56dfb0a67b61cf4bd97501a8c2fddc7b9c586b304d3a53aec1ecccfa0077a
|
3 |
+
size 4184
|
runs/Feb27_09-51-08_552b483abe5c/events.out.tfevents.1709027470.552b483abe5c.7234.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4f57ead8b490eaed3cbd80c980c65f0062a80fd7c1ef094acdcc577bc7f65d38
|
3 |
+
size 46483
|
runs/Feb27_10-03-18_552b483abe5c/events.out.tfevents.1709028201.552b483abe5c.7234.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f308879eac41d94e5c5c3c0076df2f52aefb7dc22c458ada3d38d0424f502d5
|
3 |
+
size 73417
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bda43fa7bed8d3d8c62c4143409af5f4363b97bf6ffd928874821169778ec998
|
3 |
+
size 4920
|