chrisjay commited on
Commit
9347956
1 Parent(s): 8491c3c

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-gax
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-gax
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_oromo_gax_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-gax_confusion_matrix_VALID.png)
36
+
37
+
38
+ ## Training and evaluation data
39
+
40
+ The model was trained on a mixed audio data from Oromo (`gax`).
41
+
42
+ - Size of training set: 32
43
+ - Size of validation set: 8
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-gax.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.0699 | 1 | 1.0 |
64
+ | 0.0021 | 50 | 0.875 |
65
+ | 0.0026 | 100 | 0.875 |
66
+ | 0.0017 | 150 | 0.875 |
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_oromo_gax_audio_data.csv ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ audio_path,transcript,lang,lang_code,gender,age,country,accent
2
+ AUDIO_HOMEPATH/data/4HVUPzA5dfgRfXBPpBUXU4SinMRhtBB0/audio.wav,3,"oromo, borana-arsi-guji",gax,Female,32.0,Kenya,
3
+ AUDIO_HOMEPATH/data/gKlAe3jQJinxr0Dz1MhWadKvbygpODpv/audio.wav,7,"oromo, borana-arsi-guji",gax,Female,32.0,,
4
+ AUDIO_HOMEPATH/data/aiTWEcoQRqolvmAj5199F7o0hG9i7vms/audio.wav,8,"oromo, borana-arsi-guji",gax,Female,32.0,Kenya,
5
+ AUDIO_HOMEPATH/data/1zOxtAS9TYlZdsJAFsWo7vQOnKDC7kYZ/audio.wav,5,"oromo, borana-arsi-guji",gax,Female,32.0,Kenya,
6
+ AUDIO_HOMEPATH/data/EsHbP4zpF42i8Sj7FIWc0FWWA79XnGmb/audio.wav,9,"oromo, borana-arsi-guji",gax,Female,32.0,Kenya,
7
+ AUDIO_HOMEPATH/data/vw9i6XM4r3ScuqRuyCZzlTh4slPyLOYU/audio.wav,6,"oromo, borana-arsi-guji",gax,Female,32.0,,
8
+ AUDIO_HOMEPATH/data/bMobvLv8zmLQXIyl6vhwIaN2qGAxDkVr/audio.wav,3,"oromo, borana-arsi-guji",gax,Female,32.0,Kenya,
9
+ AUDIO_HOMEPATH/data/EyFRinnW0k3vANK46oKw9ARbveL9AMRD/audio.wav,2,"oromo, borana-arsi-guji",gax,Female,32.0,Kenya,
afrospeech-wav2vec-gax_METRICS_VALID.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"acc": 1.0, "f1": 1.0}
afrospeech-wav2vec-gax_confusion_matrix_VALID.png ADDED
digits-bar-plot-for-afrospeech-wav2vec-gax.png ADDED