End of training
Browse files- README.md +84 -0
- config.json +49 -0
- model.safetensors +3 -0
- preprocessor_config.json +13 -0
- runs/Apr24_20-07-23_LAPTOP-IV5HBHI1/events.out.tfevents.1713982047.LAPTOP-IV5HBHI1.55916.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: ast-finetuned-audioset-16-16-0.442
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- marsyas/gtzan
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: ast-finetuned-audioset-16-16-0.442-finetuned-gtzan
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Audio Classification
|
14 |
+
type: audio-classification
|
15 |
+
dataset:
|
16 |
+
name: GTZAN
|
17 |
+
type: marsyas/gtzan
|
18 |
+
config: all
|
19 |
+
split: train
|
20 |
+
args: all
|
21 |
+
metrics:
|
22 |
+
- name: Accuracy
|
23 |
+
type: accuracy
|
24 |
+
value: 0.93
|
25 |
+
---
|
26 |
+
|
27 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
28 |
+
should probably proofread and complete it, then remove this comment. -->
|
29 |
+
|
30 |
+
# ast-finetuned-audioset-16-16-0.442-finetuned-gtzan
|
31 |
+
|
32 |
+
This model is a fine-tuned version of [ast-finetuned-audioset-16-16-0.442](https://huggingface.co/ast-finetuned-audioset-16-16-0.442) on the GTZAN dataset.
|
33 |
+
It achieves the following results on the evaluation set:
|
34 |
+
- Loss: 0.3315
|
35 |
+
- Accuracy: 0.93
|
36 |
+
|
37 |
+
## Model description
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Intended uses & limitations
|
42 |
+
|
43 |
+
More information needed
|
44 |
+
|
45 |
+
## Training and evaluation data
|
46 |
+
|
47 |
+
More information needed
|
48 |
+
|
49 |
+
## Training procedure
|
50 |
+
|
51 |
+
### Training hyperparameters
|
52 |
+
|
53 |
+
The following hyperparameters were used during training:
|
54 |
+
- learning_rate: 5e-05
|
55 |
+
- train_batch_size: 20
|
56 |
+
- eval_batch_size: 20
|
57 |
+
- seed: 42
|
58 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
59 |
+
- lr_scheduler_type: linear
|
60 |
+
- lr_scheduler_warmup_ratio: 0.1
|
61 |
+
- num_epochs: 10
|
62 |
+
|
63 |
+
### Training results
|
64 |
+
|
65 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
66 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
67 |
+
| 0.8802 | 1.0 | 45 | 0.5267 | 0.85 |
|
68 |
+
| 0.3183 | 2.0 | 90 | 0.5893 | 0.81 |
|
69 |
+
| 0.1094 | 3.0 | 135 | 0.4421 | 0.89 |
|
70 |
+
| 0.0259 | 4.0 | 180 | 0.4100 | 0.88 |
|
71 |
+
| 0.0291 | 5.0 | 225 | 0.3695 | 0.9 |
|
72 |
+
| 0.0409 | 6.0 | 270 | 0.3071 | 0.91 |
|
73 |
+
| 0.0152 | 7.0 | 315 | 0.3482 | 0.92 |
|
74 |
+
| 0.0003 | 8.0 | 360 | 0.3187 | 0.94 |
|
75 |
+
| 0.0003 | 9.0 | 405 | 0.3258 | 0.93 |
|
76 |
+
| 0.0004 | 10.0 | 450 | 0.3315 | 0.93 |
|
77 |
+
|
78 |
+
|
79 |
+
### Framework versions
|
80 |
+
|
81 |
+
- Transformers 4.40.1
|
82 |
+
- Pytorch 2.2.2+cu121
|
83 |
+
- Datasets 2.19.0
|
84 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "MIT/ast-finetuned-audioset-16-16-0.442",
|
3 |
+
"architectures": [
|
4 |
+
"ASTForAudioClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"frequency_stride": 16,
|
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": 16,
|
47 |
+
"torch_dtype": "float32",
|
48 |
+
"transformers_version": "4.40.1"
|
49 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:04f699a801b76b61d416954efde42d7427197d506bedc73f77d3415948151a2e
|
3 |
+
size 342664248
|
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/Apr24_20-07-23_LAPTOP-IV5HBHI1/events.out.tfevents.1713982047.LAPTOP-IV5HBHI1.55916.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:846dff340a1b0cf863b3bed46c5ee33ebd8c443f613f577bec295118249c190a
|
3 |
+
size 27626
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1bf07b72816a391aa0536b90ddc96f5fdc090373c1f3265f0aef6362d418cd8e
|
3 |
+
size 5048
|