chrisjay commited on
Commit
1a6bde5
1 Parent(s): f101a4b

added updates

Browse files
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - afro-digits-speech
5
+ datasets:
6
+ - crowd-speech-africa
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: afrospeech-wav2vec-sna
11
+ results:
12
+ - task:
13
+ name: Audio Classification
14
+ type: audio-classification
15
+ dataset:
16
+ name: Afro Speech
17
+ type: chrisjay/crowd-speech-africa
18
+ args: no
19
+ metrics:
20
+ - name: Validation Accuracy
21
+ type: accuracy
22
+ value: 1.0
23
+ ---
24
+
25
+
26
+ # afrospeech-wav2vec-sna
27
+
28
+ This model is a fine-tuned version of [facebook/wav2vec2-base](https://huggingface.co/facebook/wav2vec2-base) on the [crowd-speech-africa](https://huggingface.co/datasets/chrisjay/crowd-speech-africa), which was a crowd-sourced dataset collected using the [afro-speech Space](https://huggingface.co/spaces/chrisjay/afro-speech). It achieves the following results on the [validation set](VALID_shona_sna_audio_data.csv):
29
+
30
+ - F1: 1.0
31
+ - Accuracy: 1.0
32
+
33
+ The confusion matrix below helps to give a better look at the model's performance across the digits. Through it, we can see the precision and recall of the model as well as other important insights.
34
+
35
+ ![confusion matrix](afrospeech-wav2vec-sna_confusion_matrix_VALID.png)
36
+
37
+
38
+ ## Training and evaluation data
39
+
40
+ The model was trained on a mixed audio data from Shona (`sna`).
41
+
42
+ - Size of training set: 24
43
+ - Size of validation set: 6
44
+
45
+ Below is a distribution of the dataset (training and valdation)
46
+
47
+ ![digits-bar-plot-for-afrospeech](digits-bar-plot-for-afrospeech-wav2vec-sna.png)
48
+
49
+
50
+ ### Training hyperparameters
51
+
52
+ The following hyperparameters were used during training:
53
+ - learning_rate: 3e-05
54
+ - train_batch_size: 64
55
+ - eval_batch_size: 64
56
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
57
+ - num_epochs: 150
58
+
59
+ ### Training results
60
+
61
+ | Training Loss | Epoch | Validation Accuracy |
62
+ |:-------------:|:-----:|:--------:|
63
+ | 0.02387 | 1 | 1.0 |
64
+ | 0.0021066 | 50 | 1.0 |
65
+ | 0.001157 | 100 | 1.0 |
66
+ | 0.0009537 | 150 | 1.0 |
67
+
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.21.3
73
+ - Pytorch 1.12.0
74
+ - Datasets 1.14.0
75
+ - Tokenizers 0.12.1
VALID_shona_sna_audio_data.csv ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ audio_path,transcript,lang,lang_code,gender,age,country,accent
2
+ AUDIO_HOMEPATH/data/R6W5zU8ezS1V76stFCCwXZPPbwxhltrJ/audio.wav,0,shona,sna,Male,34.0,Australia,Shona
3
+ AUDIO_HOMEPATH/data/8wO2rBjlXFkaBU11BhFXZ8JEgTIY0USA/audio.wav,4,shona,sna,Male,23.0,Zimbabwe,
4
+ AUDIO_HOMEPATH/data/3Ojig6rJkV2UvnRrqCpF8CWxQUaVlojm/audio.wav,2,shona,sna,Male,34.0,Australia,Shona
5
+ AUDIO_HOMEPATH/data/ImBUzQW22uPvBx46BR3gkc6iqC7NzRvw/audio.wav,5,shona,sna,Male,34.0,Australia,Shona
6
+ AUDIO_HOMEPATH/data/vudM0Q3QhYQRUSxnWwZLQJPFSpL1S9rk/audio.wav,7,shona,sna,Male,34.0,Australia,Shona
7
+ AUDIO_HOMEPATH/data/M2G2KFjKpMSEvijN6txPxeDm4UlkbMqr/audio.wav,2,shona,sna,Male,23.0,Zimbabwe,
afrospeech-wav2vec-sna_METRICS_VALID.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"acc": 1.0, "f1": 1.0}
afrospeech-wav2vec-sna_confusion_matrix_VALID.png ADDED
digits-bar-plot-for-afrospeech-wav2vec-sna.png ADDED