JackismyShephard
commited on
Commit
•
7731507
0
Parent(s):
initial commit
Browse files- .gitattributes +35 -0
- README.md +94 -0
- config.json +172 -0
- model.safetensors +3 -0
- preprocessor_config.json +14 -0
- runs/Dec21_13-11-03_Christians-Desktop/events.out.tfevents.1703160675.Christians-Desktop.269605.0 +3 -0
- runs/Dec21_13-11-03_Christians-Desktop/events.out.tfevents.1703206016.Christians-Desktop.269605.1 +3 -0
- runs/Dec25_00-13-11_Christians-Desktop/events.out.tfevents.1703459600.Christians-Desktop.50576.0 +3 -0
- runs/Dec25_00-28-21_Christians-Desktop/events.out.tfevents.1703460505.Christians-Desktop.53729.0 +3 -0
- runs/Dec25_00-46-03_Christians-Desktop/events.out.tfevents.1703461567.Christians-Desktop.57171.0 +3 -0
- runs/Dec25_00-46-03_Christians-Desktop/events.out.tfevents.1703465232.Christians-Desktop.57171.1 +3 -0
- training_args.bin +3 -0
.gitattributes
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: openai/whisper-medium.en
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- marsyas/gtzan
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: whisper-medium.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.95
|
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-medium.en-finetuned-gtzan
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [openai/whisper-medium.en](https://huggingface.co/openai/whisper-medium.en) on the GTZAN dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.2885
|
36 |
+
- Accuracy: 0.95
|
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: 1e-05
|
56 |
+
- train_batch_size: 2
|
57 |
+
- eval_batch_size: 2
|
58 |
+
- seed: 42
|
59 |
+
- gradient_accumulation_steps: 4
|
60 |
+
- total_train_batch_size: 8
|
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: 16
|
65 |
+
- mixed_precision_training: Native AMP
|
66 |
+
|
67 |
+
### Training results
|
68 |
+
|
69 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
70 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
71 |
+
| 1.7711 | 1.0 | 112 | 1.6556 | 0.52 |
|
72 |
+
| 0.5477 | 2.0 | 225 | 0.4738 | 0.85 |
|
73 |
+
| 0.535 | 3.0 | 337 | 0.3137 | 0.92 |
|
74 |
+
| 0.231 | 4.0 | 450 | 0.3613 | 0.9 |
|
75 |
+
| 0.1923 | 5.0 | 562 | 0.2885 | 0.95 |
|
76 |
+
| 0.0584 | 6.0 | 675 | 0.6531 | 0.86 |
|
77 |
+
| 0.1783 | 7.0 | 787 | 0.5717 | 0.9 |
|
78 |
+
| 0.0022 | 8.0 | 900 | 0.4205 | 0.91 |
|
79 |
+
| 0.1032 | 9.0 | 1012 | 0.4984 | 0.91 |
|
80 |
+
| 0.0011 | 10.0 | 1125 | 0.3778 | 0.94 |
|
81 |
+
| 0.0104 | 11.0 | 1237 | 0.3709 | 0.94 |
|
82 |
+
| 0.0011 | 12.0 | 1350 | 0.4564 | 0.92 |
|
83 |
+
| 0.0009 | 13.0 | 1462 | 0.3796 | 0.94 |
|
84 |
+
| 0.0008 | 14.0 | 1575 | 0.3880 | 0.94 |
|
85 |
+
| 0.0008 | 15.0 | 1687 | 0.3930 | 0.94 |
|
86 |
+
| 0.0008 | 15.93 | 1792 | 0.3955 | 0.94 |
|
87 |
+
|
88 |
+
|
89 |
+
### Framework versions
|
90 |
+
|
91 |
+
- Transformers 4.37.0.dev0
|
92 |
+
- Pytorch 2.1.2+cu118
|
93 |
+
- Datasets 2.15.0
|
94 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "openai/whisper-medium.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": 1024,
|
17 |
+
"decoder_attention_heads": 16,
|
18 |
+
"decoder_ffn_dim": 4096,
|
19 |
+
"decoder_layerdrop": 0.0,
|
20 |
+
"decoder_layers": 24,
|
21 |
+
"decoder_start_token_id": 50257,
|
22 |
+
"dropout": 0.0,
|
23 |
+
"encoder_attention_heads": 16,
|
24 |
+
"encoder_ffn_dim": 4096,
|
25 |
+
"encoder_layerdrop": 0.0,
|
26 |
+
"encoder_layers": 24,
|
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": 24,
|
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.37.0.dev0",
|
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:7bbb0c9771510c42e97b176e5eadfc5afc444101626fe8795596600d7490a7ea
|
3 |
+
size 1229966128
|
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/Dec21_13-11-03_Christians-Desktop/events.out.tfevents.1703160675.Christians-Desktop.269605.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b88f9732dc3f2e65ab40c3b6066598d5b18e371c42b3fb15db1c6320bd484255
|
3 |
+
size 47768
|
runs/Dec21_13-11-03_Christians-Desktop/events.out.tfevents.1703206016.Christians-Desktop.269605.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9333a863cf36b725451a48ff5123727f4374fc5699a5ac1481d0afb4227558af
|
3 |
+
size 411
|
runs/Dec25_00-13-11_Christians-Desktop/events.out.tfevents.1703459600.Christians-Desktop.50576.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfaf2966d6c294291c5d9da5bf56f64faa501bd164b4fa540ae07d847af11507
|
3 |
+
size 12834
|
runs/Dec25_00-28-21_Christians-Desktop/events.out.tfevents.1703460505.Christians-Desktop.53729.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60bc4c3ee6b4d5fc82c1f57ab1c7d276005e8dd737304339827c4e954607873f
|
3 |
+
size 12701
|
runs/Dec25_00-46-03_Christians-Desktop/events.out.tfevents.1703461567.Christians-Desktop.57171.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:29e7a369c9114bdbac23d46e61999bbae4fbe355b465f45a681d6d0dde4f25d2
|
3 |
+
size 68058
|
runs/Dec25_00-46-03_Christians-Desktop/events.out.tfevents.1703465232.Christians-Desktop.57171.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:57bcfcbbe1c03f43746b9ee2d5b70c4bc5f96ebae9a44fc8fce9ff2ac4214094
|
3 |
+
size 411
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bdc0cb94984e1ad0b2c72ffeb1c5a9c5818fe85ee3d3e4c5f659cbbd0791b131
|
3 |
+
size 4728
|