End of training
Browse files- README.md +96 -0
- config.json +100 -0
- model.safetensors +3 -0
- preprocessor_config.json +9 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: facebook/hubert-base-ls960
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- marsyas/gtzan
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: hubert-base-ls960-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.89
|
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 |
+
# hubert-base-ls960-finetuned-gtzan
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [facebook/hubert-base-ls960](https://huggingface.co/facebook/hubert-base-ls960) on the GTZAN dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.4867
|
36 |
+
- Accuracy: 0.89
|
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: 20
|
57 |
+
- eval_batch_size: 20
|
58 |
+
- seed: 42
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- lr_scheduler_warmup_ratio: 0.1
|
62 |
+
- num_epochs: 20
|
63 |
+
- mixed_precision_training: Native AMP
|
64 |
+
|
65 |
+
### Training results
|
66 |
+
|
67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
68 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
69 |
+
| 2.2324 | 1.0 | 45 | 2.1551 | 0.32 |
|
70 |
+
| 1.858 | 2.0 | 90 | 1.7637 | 0.43 |
|
71 |
+
| 1.6808 | 3.0 | 135 | 1.5373 | 0.5 |
|
72 |
+
| 1.4424 | 4.0 | 180 | 1.3738 | 0.59 |
|
73 |
+
| 1.2715 | 5.0 | 225 | 1.1840 | 0.61 |
|
74 |
+
| 1.1501 | 6.0 | 270 | 1.0517 | 0.63 |
|
75 |
+
| 1.0187 | 7.0 | 315 | 0.8796 | 0.72 |
|
76 |
+
| 0.9446 | 8.0 | 360 | 0.8616 | 0.66 |
|
77 |
+
| 0.9266 | 9.0 | 405 | 0.8598 | 0.68 |
|
78 |
+
| 0.7204 | 10.0 | 450 | 0.7464 | 0.72 |
|
79 |
+
| 0.5817 | 11.0 | 495 | 0.7511 | 0.79 |
|
80 |
+
| 0.6758 | 12.0 | 540 | 0.8287 | 0.75 |
|
81 |
+
| 0.5383 | 13.0 | 585 | 0.6391 | 0.8 |
|
82 |
+
| 0.659 | 14.0 | 630 | 0.5670 | 0.84 |
|
83 |
+
| 0.4272 | 15.0 | 675 | 0.6181 | 0.85 |
|
84 |
+
| 0.4661 | 16.0 | 720 | 0.4935 | 0.86 |
|
85 |
+
| 0.4798 | 17.0 | 765 | 0.5827 | 0.85 |
|
86 |
+
| 0.3895 | 18.0 | 810 | 0.4870 | 0.88 |
|
87 |
+
| 0.3039 | 19.0 | 855 | 0.4571 | 0.9 |
|
88 |
+
| 0.2401 | 20.0 | 900 | 0.4867 | 0.89 |
|
89 |
+
|
90 |
+
|
91 |
+
### Framework versions
|
92 |
+
|
93 |
+
- Transformers 4.35.0
|
94 |
+
- Pytorch 2.0.0+cu117
|
95 |
+
- Datasets 2.14.6
|
96 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/hubert-base-ls960",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"apply_spec_augment": true,
|
5 |
+
"architectures": [
|
6 |
+
"HubertForSequenceClassification"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.1,
|
9 |
+
"bos_token_id": 1,
|
10 |
+
"classifier_proj_size": 256,
|
11 |
+
"conv_bias": false,
|
12 |
+
"conv_dim": [
|
13 |
+
512,
|
14 |
+
512,
|
15 |
+
512,
|
16 |
+
512,
|
17 |
+
512,
|
18 |
+
512,
|
19 |
+
512
|
20 |
+
],
|
21 |
+
"conv_kernel": [
|
22 |
+
10,
|
23 |
+
3,
|
24 |
+
3,
|
25 |
+
3,
|
26 |
+
3,
|
27 |
+
2,
|
28 |
+
2
|
29 |
+
],
|
30 |
+
"conv_stride": [
|
31 |
+
5,
|
32 |
+
2,
|
33 |
+
2,
|
34 |
+
2,
|
35 |
+
2,
|
36 |
+
2,
|
37 |
+
2
|
38 |
+
],
|
39 |
+
"ctc_loss_reduction": "sum",
|
40 |
+
"ctc_zero_infinity": false,
|
41 |
+
"do_stable_layer_norm": false,
|
42 |
+
"eos_token_id": 2,
|
43 |
+
"feat_extract_activation": "gelu",
|
44 |
+
"feat_extract_dropout": 0.0,
|
45 |
+
"feat_extract_norm": "group",
|
46 |
+
"feat_proj_dropout": 0.1,
|
47 |
+
"feat_proj_layer_norm": true,
|
48 |
+
"final_dropout": 0.1,
|
49 |
+
"gradient_checkpointing": false,
|
50 |
+
"hidden_act": "gelu",
|
51 |
+
"hidden_dropout": 0.1,
|
52 |
+
"hidden_dropout_prob": 0.1,
|
53 |
+
"hidden_size": 768,
|
54 |
+
"id2label": {
|
55 |
+
"0": "blues",
|
56 |
+
"1": "classical",
|
57 |
+
"2": "country",
|
58 |
+
"3": "disco",
|
59 |
+
"4": "hiphop",
|
60 |
+
"5": "jazz",
|
61 |
+
"6": "metal",
|
62 |
+
"7": "pop",
|
63 |
+
"8": "reggae",
|
64 |
+
"9": "rock"
|
65 |
+
},
|
66 |
+
"initializer_range": 0.02,
|
67 |
+
"intermediate_size": 3072,
|
68 |
+
"label2id": {
|
69 |
+
"blues": "0",
|
70 |
+
"classical": "1",
|
71 |
+
"country": "2",
|
72 |
+
"disco": "3",
|
73 |
+
"hiphop": "4",
|
74 |
+
"jazz": "5",
|
75 |
+
"metal": "6",
|
76 |
+
"pop": "7",
|
77 |
+
"reggae": "8",
|
78 |
+
"rock": "9"
|
79 |
+
},
|
80 |
+
"layer_norm_eps": 1e-05,
|
81 |
+
"layerdrop": 0.1,
|
82 |
+
"mask_feature_length": 10,
|
83 |
+
"mask_feature_min_masks": 0,
|
84 |
+
"mask_feature_prob": 0.0,
|
85 |
+
"mask_time_length": 10,
|
86 |
+
"mask_time_min_masks": 2,
|
87 |
+
"mask_time_prob": 0.05,
|
88 |
+
"model_type": "hubert",
|
89 |
+
"num_attention_heads": 12,
|
90 |
+
"num_conv_pos_embedding_groups": 16,
|
91 |
+
"num_conv_pos_embeddings": 128,
|
92 |
+
"num_feat_extract_layers": 7,
|
93 |
+
"num_hidden_layers": 12,
|
94 |
+
"pad_token_id": 0,
|
95 |
+
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|
96 |
+
"torch_dtype": "float32",
|
97 |
+
"transformers_version": "4.35.0",
|
98 |
+
"use_weighted_layer_sum": false,
|
99 |
+
"vocab_size": 32
|
100 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f8172f0c6a5871018522e23fdd3f4c402d00a92ebc18baa55f49117c96358ad
|
3 |
+
size 378310128
|
preprocessor_config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"padding_side": "right",
|
6 |
+
"padding_value": 0,
|
7 |
+
"return_attention_mask": true,
|
8 |
+
"sampling_rate": 16000
|
9 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33693d8d73f876d1de2196f63e86596191f2819dbf9c71eac6871118c46c695f
|
3 |
+
size 4219
|