fisheggg commited on
Commit
0745190
1 Parent(s): 7c7da88

End of training

Browse files
Files changed (5) hide show
  1. README.md +97 -0
  2. config.json +49 -0
  3. preprocessor_config.json +13 -0
  4. pytorch_model.bin +3 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ model-index:
11
+ - name: ast-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.9
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
+ # ast-finetuned-gtzan
32
+
33
+ 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.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.3724
36
+ - Accuracy: 0.9
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: 4
57
+ - eval_batch_size: 4
58
+ - seed: 42
59
+ - gradient_accumulation_steps: 2
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: 20
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | 0.8858 | 1.0 | 112 | 0.5691 | 0.8 |
71
+ | 0.5797 | 2.0 | 225 | 0.6960 | 0.74 |
72
+ | 0.7178 | 3.0 | 337 | 0.4546 | 0.85 |
73
+ | 0.0858 | 4.0 | 450 | 0.4605 | 0.86 |
74
+ | 0.0048 | 5.0 | 562 | 0.6531 | 0.86 |
75
+ | 0.0218 | 6.0 | 675 | 0.3650 | 0.91 |
76
+ | 0.0831 | 7.0 | 787 | 0.4631 | 0.88 |
77
+ | 0.0002 | 8.0 | 900 | 0.4604 | 0.87 |
78
+ | 0.1109 | 9.0 | 1012 | 0.4126 | 0.91 |
79
+ | 0.0003 | 10.0 | 1125 | 0.3681 | 0.92 |
80
+ | 0.0001 | 11.0 | 1237 | 0.3977 | 0.9 |
81
+ | 0.0001 | 12.0 | 1350 | 0.3466 | 0.91 |
82
+ | 0.0001 | 13.0 | 1462 | 0.3682 | 0.91 |
83
+ | 0.0001 | 14.0 | 1575 | 0.3695 | 0.9 |
84
+ | 0.0 | 15.0 | 1687 | 0.3664 | 0.91 |
85
+ | 0.0001 | 16.0 | 1800 | 0.3714 | 0.9 |
86
+ | 0.0 | 17.0 | 1912 | 0.3718 | 0.9 |
87
+ | 0.0001 | 18.0 | 2025 | 0.3730 | 0.9 |
88
+ | 0.0001 | 19.0 | 2137 | 0.3717 | 0.9 |
89
+ | 0.0 | 19.91 | 2240 | 0.3724 | 0.9 |
90
+
91
+
92
+ ### Framework versions
93
+
94
+ - Transformers 4.33.0.dev0
95
+ - Pytorch 2.0.1+cu118
96
+ - Datasets 2.14.4
97
+ - Tokenizers 0.13.3
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.33.0.dev0"
49
+ }
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
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab74c091e1b30bf4e9cc5880ddf9b3d5409605072070cf9c73e6049f8a50abe7
3
+ size 344860025
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22c49b6fda5ce4b0f565e2a72c0fa7267b36abd3ec170022faa8af11f9e3142c
3
+ size 4091