JamesJenkins
commited on
Commit
•
e2d9a45
1
Parent(s):
d5f5d86
End of training
Browse files
README.md
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: bsd-3-clause
|
3 |
+
base_model: MIT/ast-finetuned-audioset-10-10-0.4593
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- marsyas/gtzan
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
- f1
|
11 |
+
model-index:
|
12 |
+
- name: ast-finetuned-audioset-10-10-0.4593-finetuned-gtzan
|
13 |
+
results:
|
14 |
+
- task:
|
15 |
+
name: Audio Classification
|
16 |
+
type: audio-classification
|
17 |
+
dataset:
|
18 |
+
name: GTZAN
|
19 |
+
type: marsyas/gtzan
|
20 |
+
config: all
|
21 |
+
split: train
|
22 |
+
args: all
|
23 |
+
metrics:
|
24 |
+
- name: Accuracy
|
25 |
+
type: accuracy
|
26 |
+
value: 0.86
|
27 |
+
- name: F1
|
28 |
+
type: f1
|
29 |
+
value: 0.8599999999999999
|
30 |
+
---
|
31 |
+
|
32 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
33 |
+
should probably proofread and complete it, then remove this comment. -->
|
34 |
+
|
35 |
+
# ast-finetuned-audioset-10-10-0.4593-finetuned-gtzan
|
36 |
+
|
37 |
+
This model is a fine-tuned version of [MIT/ast-finetuned-audioset-10-10-0.4593](https://huggingface.co/MIT/ast-finetuned-audioset-10-10-0.4593) on the GTZAN dataset.
|
38 |
+
It achieves the following results on the evaluation set:
|
39 |
+
- Loss: 0.7149
|
40 |
+
- Accuracy: 0.86
|
41 |
+
- F1: 0.8600
|
42 |
+
|
43 |
+
## Model description
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Intended uses & limitations
|
48 |
+
|
49 |
+
More information needed
|
50 |
+
|
51 |
+
## Training and evaluation data
|
52 |
+
|
53 |
+
More information needed
|
54 |
+
|
55 |
+
## Training procedure
|
56 |
+
|
57 |
+
### Training hyperparameters
|
58 |
+
|
59 |
+
The following hyperparameters were used during training:
|
60 |
+
- learning_rate: 5e-05
|
61 |
+
- train_batch_size: 2
|
62 |
+
- eval_batch_size: 2
|
63 |
+
- seed: 2024
|
64 |
+
- gradient_accumulation_steps: 4
|
65 |
+
- total_train_batch_size: 8
|
66 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
67 |
+
- lr_scheduler_type: linear
|
68 |
+
- lr_scheduler_warmup_ratio: 0.1
|
69 |
+
- num_epochs: 20
|
70 |
+
- mixed_precision_training: Native AMP
|
71 |
+
|
72 |
+
### Training results
|
73 |
+
|
74 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
75 |
+
|:-------------:|:-------:|:----:|:---------------:|:--------:|:------:|
|
76 |
+
| 0.6891 | 0.9956 | 112 | 0.6422 | 0.76 | 0.76 |
|
77 |
+
| 0.7267 | 2.0 | 225 | 0.8163 | 0.78 | 0.78 |
|
78 |
+
| 0.7077 | 2.9956 | 337 | 0.7802 | 0.8 | 0.8000 |
|
79 |
+
| 0.1884 | 4.0 | 450 | 0.6157 | 0.87 | 0.87 |
|
80 |
+
| 0.0209 | 4.9956 | 562 | 0.7885 | 0.84 | 0.8400 |
|
81 |
+
| 0.117 | 6.0 | 675 | 0.6744 | 0.85 | 0.85 |
|
82 |
+
| 0.0098 | 6.9956 | 787 | 0.6213 | 0.85 | 0.85 |
|
83 |
+
| 0.0002 | 8.0 | 900 | 1.0599 | 0.82 | 0.82 |
|
84 |
+
| 0.0001 | 8.9956 | 1012 | 0.7052 | 0.86 | 0.8600 |
|
85 |
+
| 0.0001 | 10.0 | 1125 | 0.6891 | 0.85 | 0.85 |
|
86 |
+
| 0.0001 | 10.9956 | 1237 | 0.6718 | 0.86 | 0.8600 |
|
87 |
+
| 0.0001 | 12.0 | 1350 | 0.6712 | 0.85 | 0.85 |
|
88 |
+
| 0.0001 | 12.9956 | 1462 | 0.6942 | 0.86 | 0.8600 |
|
89 |
+
| 0.0001 | 14.0 | 1575 | 0.7002 | 0.86 | 0.8600 |
|
90 |
+
| 0.0176 | 14.9956 | 1687 | 0.7053 | 0.86 | 0.8600 |
|
91 |
+
| 0.0001 | 16.0 | 1800 | 0.7140 | 0.86 | 0.8600 |
|
92 |
+
| 0.0001 | 16.9956 | 1912 | 0.7089 | 0.86 | 0.8600 |
|
93 |
+
| 0.0 | 18.0 | 2025 | 0.7120 | 0.86 | 0.8600 |
|
94 |
+
| 0.0628 | 18.9956 | 2137 | 0.7162 | 0.86 | 0.8600 |
|
95 |
+
| 0.0037 | 19.9111 | 2240 | 0.7149 | 0.86 | 0.8600 |
|
96 |
+
|
97 |
+
|
98 |
+
### Framework versions
|
99 |
+
|
100 |
+
- Transformers 4.42.4
|
101 |
+
- Pytorch 2.3.1+cu121
|
102 |
+
- Datasets 2.21.0
|
103 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "MIT/ast-finetuned-audioset-10-10-0.4593",
|
3 |
+
"architectures": [
|
4 |
+
"ASTForAudioClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"frequency_stride": 10,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "blues",
|
13 |
+
"1": "classical",
|
14 |
+
"2": "country",
|
15 |
+
"3": "disco",
|
16 |
+
"4": "hiphop",
|
17 |
+
"5": "jazz",
|
18 |
+
"6": "metal",
|
19 |
+
"7": "pop",
|
20 |
+
"8": "reggae",
|
21 |
+
"9": "rock"
|
22 |
+
},
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"intermediate_size": 3072,
|
25 |
+
"label2id": {
|
26 |
+
"blues": "0",
|
27 |
+
"classical": "1",
|
28 |
+
"country": "2",
|
29 |
+
"disco": "3",
|
30 |
+
"hiphop": "4",
|
31 |
+
"jazz": "5",
|
32 |
+
"metal": "6",
|
33 |
+
"pop": "7",
|
34 |
+
"reggae": "8",
|
35 |
+
"rock": "9"
|
36 |
+
},
|
37 |
+
"layer_norm_eps": 1e-12,
|
38 |
+
"max_length": 1024,
|
39 |
+
"model_type": "audio-spectrogram-transformer",
|
40 |
+
"num_attention_heads": 12,
|
41 |
+
"num_hidden_layers": 12,
|
42 |
+
"num_mel_bins": 128,
|
43 |
+
"patch_size": 16,
|
44 |
+
"problem_type": "single_label_classification",
|
45 |
+
"qkv_bias": true,
|
46 |
+
"time_stride": 10,
|
47 |
+
"torch_dtype": "float32",
|
48 |
+
"transformers_version": "4.42.4"
|
49 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:84d6d909b7239cd934a4caafdb079282c6dc019819cc1a8264706513cf4efd06
|
3 |
+
size 344814656
|
preprocessor_config.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"feature_extractor_type": "ASTFeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"max_length": 1024,
|
6 |
+
"mean": -4.2677393,
|
7 |
+
"num_mel_bins": 128,
|
8 |
+
"padding_side": "right",
|
9 |
+
"padding_value": 0.0,
|
10 |
+
"return_attention_mask": false,
|
11 |
+
"sampling_rate": 16000,
|
12 |
+
"std": 4.5689974
|
13 |
+
}
|
runs/Aug22_08-42-23_40940210ff38/events.out.tfevents.1724316432.40940210ff38.234.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:918316a0859de93858953580ae614f94291badb412fdfc1d40aa08163ae954b7
|
3 |
+
size 5322
|
runs/Aug22_08-52-13_40940210ff38/events.out.tfevents.1724316745.40940210ff38.234.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a478fea476fce548d22ceb49975f1cc071550b6fdce110e709283ce8ad367db
|
3 |
+
size 107477
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9bff867a7813abb44387806e4cea57940c830257824daf82a2f14b90ebf859d2
|
3 |
+
size 5176
|