kalash-1106 commited on
Commit
58aa776
·
verified ·
1 Parent(s): 2aaaf5b

End of training

Browse files
Files changed (4) hide show
  1. README.md +97 -0
  2. config.json +49 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: bsd-3-clause
4
+ base_model: MIT/ast-finetuned-audioset-10-10-0.4593
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - marsyas/gtzan
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: ast-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.87
27
+ ---
28
+
29
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
+ should probably proofread and complete it, then remove this comment. -->
31
+
32
+ # ast-finetuned-gtzan
33
+
34
+ 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.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 0.3848
37
+ - Accuracy: 0.87
38
+
39
+ ## Model description
40
+
41
+ More information needed
42
+
43
+ ## Intended uses & limitations
44
+
45
+ More information needed
46
+
47
+ ## Training and evaluation data
48
+
49
+ More information needed
50
+
51
+ ## Training procedure
52
+
53
+ ### Training hyperparameters
54
+
55
+ The following hyperparameters were used during training:
56
+ - learning_rate: 0.0002
57
+ - train_batch_size: 8
58
+ - eval_batch_size: 8
59
+ - seed: 42
60
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
61
+ - lr_scheduler_type: linear
62
+ - lr_scheduler_warmup_ratio: 0.1
63
+ - num_epochs: 20
64
+ - mixed_precision_training: Native AMP
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | 1.8911 | 1.0 | 113 | 1.7770 | 0.52 |
71
+ | 0.9154 | 2.0 | 226 | 0.8861 | 0.77 |
72
+ | 0.5408 | 3.0 | 339 | 0.5815 | 0.83 |
73
+ | 0.3854 | 4.0 | 452 | 0.5075 | 0.86 |
74
+ | 0.4656 | 5.0 | 565 | 0.4716 | 0.87 |
75
+ | 0.3679 | 6.0 | 678 | 0.4578 | 0.87 |
76
+ | 0.3263 | 7.0 | 791 | 0.4368 | 0.87 |
77
+ | 0.4072 | 8.0 | 904 | 0.4078 | 0.88 |
78
+ | 0.2734 | 9.0 | 1017 | 0.3847 | 0.88 |
79
+ | 0.3517 | 10.0 | 1130 | 0.4185 | 0.88 |
80
+ | 0.3147 | 11.0 | 1243 | 0.3946 | 0.86 |
81
+ | 0.2572 | 12.0 | 1356 | 0.3899 | 0.88 |
82
+ | 0.3696 | 13.0 | 1469 | 0.3843 | 0.87 |
83
+ | 0.256 | 14.0 | 1582 | 0.3872 | 0.87 |
84
+ | 0.3737 | 15.0 | 1695 | 0.3914 | 0.88 |
85
+ | 0.1702 | 16.0 | 1808 | 0.3863 | 0.87 |
86
+ | 0.2974 | 17.0 | 1921 | 0.3857 | 0.87 |
87
+ | 0.1916 | 18.0 | 2034 | 0.3855 | 0.87 |
88
+ | 0.223 | 19.0 | 2147 | 0.3848 | 0.87 |
89
+ | 0.1942 | 20.0 | 2260 | 0.3848 | 0.87 |
90
+
91
+
92
+ ### Framework versions
93
+
94
+ - Transformers 4.44.2
95
+ - Pytorch 2.4.1+cu121
96
+ - Datasets 3.0.1
97
+ - 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.44.2"
49
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3292c71517a08f8f3b187094a21ed494217925bb8162768463e735c80d1ba6f8
3
+ size 344814656
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5ca865ed4758868c10589668f6d22dfc2345ab1a35a1802629f7809403e5b4a
3
+ size 5176