0-hero commited on
Commit
127a440
1 Parent(s): 568e443

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +106 -0
README.md CHANGED
@@ -27,3 +27,109 @@ configs:
27
  - split: train
28
  path: data/train-*
29
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  - split: train
28
  path: data/train-*
29
  ---
30
+
31
+ ## Explanation
32
+ A small experiment insipred by the [Mistral playing DOOM experiment](https://github.com/umuthopeyildirim/DOOM-Mistral/tree/main) from the Mistral Hackathon
33
+
34
+ **How it works?**
35
+ ```
36
+ Audio -> Waveform Visualization -> Waveform ASCII Art -> Finetune Mistral on ASCII Art to predict text from ASCII Art
37
+ ```
38
+
39
+ **Quick video explanation**
40
+ <video width="820" controls src="https://cdn-uploads.huggingface.co/production/uploads/6382255fcae34727b9cc149e/nCB8Qu8QwDbJAKcq9IzPE.mp4"></video>
41
+
42
+
43
+ #### Example Waveform
44
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6382255fcae34727b9cc149e/4ui-5eJihKm0vYQ33MRfZ.png)
45
+
46
+
47
+ #### Example ASCII Art
48
+ ```
49
+
50
+ y
51
+ x
52
+ x
53
+ x
54
+ ux
55
+ tx
56
+ dx
57
+ 9 ex v
58
+ 4 dr v
59
+ 4 do s
60
+ 1Y 6o e o5
61
+ x 1Y y 6o ze 7 iYY
62
+ e YYz r Ys Ym xd Y gYY
63
+ 6 YYY r Ys Yl xd sY Y eYY Y
64
+ z 6 YYY y s k z Ys Yl xd sY Y m vYYY s 5Y z
65
+ Yh 6Y xfYYY y qq i 2m Ydu Y6 Y vd sYY Yz cq vYYY eY 5Y0 b z q
66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 v4 sYYzt Y YY 6d 4YYY 7YYY o 5YYx f Yzy0yY 3 1Y 8
83
+ YYx ZYo hfwYYYY ZykY7 wf Z9YY Ydu xz7 Y6 Ykb v3 sYY YY 6d 9YYY uYYy o 5YY f Y zpyY b 1Y z
84
+ YY 6Y xywYYYY ZzqYy f YY Ydu Y6 Y vd sYY Yo 6d jYYY 1Yz 5YY Y z 9 g lm
85
+ Yi 6Y ygYYY y qq i 9m Ydu Y6 Y vd sYY Y cs vYYY rY 5Yp e z t
86
+ 6 YYY y s o Ys Yl xd sY Y r vYYY y 5Y z
87
+ 6 YYY r Ys Yl xd sY Y eYY Y
88
+ e YYz r Ys Ym xd Y gYY
89
+ x 1Y z 6o ze 8 mYY
90
+ 14 6o e o5
91
+ 4 do t
92
+ 4 dv v
93
+ h ex v
94
+ dx
95
+ ux
96
+ ux
97
+ x
98
+ x
99
+ x
100
+ y
101
+
102
+
103
+ ```
104
+
105
+ ## Models & Results
106
+ Mistral 7B 0.2 finetunes on ascii art. **As seen in the results, experiment didn't amount to much**
107
+ - 2 epochs - [0-hero/mistral-speech-to-text-preview](https://huggingface.co/0-hero/mistral-speech-to-text-preview/) - Loss pretty much flattened after this epoch
108
+ - ```
109
+ Metrics:
110
+ rouge-1: {'r': 0.12919024091165357, 'p': 0.1163312036605547, 'f': 0.11315199212991178}
111
+ rouge-2: {'r': 0.013705453572242508, 'p': 0.0137500428446463, 'f': 0.012676757505648992}
112
+ rouge-l: {'r': 0.11261286554140228, 'p': 0.09921920076529338, 'f': 0.09705621471622536}
113
+ length_correlation: 0.014470676120233311
114
+ avg_actual_length: 16.59
115
+ avg_pred_length: 21.46
116
+ exact_match_accuracy: 0.0
117
+ ```
118
+ - 4 epochs - [0-hero/mistral-speech-to-text](https://huggingface.co/0-hero/mistral-speech-to-text/)
119
+ - ```
120
+ Metrics:
121
+ rouge-1: {'r': 0.11869828051815862, 'p': 0.11697319273190071, 'f': 0.11154343875398197}
122
+ rouge-2: {'r': 0.008572925612399297, 'p': 0.009040061245943597, 'f': 0.008369604666309954}
123
+ rouge-l: {'r': 0.10780857719316121, 'p': 0.10373665666448233, 'f': 0.09985384905943501}
124
+ length_correlation: -0.1500200314034927
125
+ avg_actual_length: 16.59
126
+ avg_pred_length: 18.32
127
+ exact_match_accuracy: 0.0
128
+ ```
129
+
130
+ ## Datasets
131
+ [lj_speech](https://huggingface.co/datasets/lj_speech) dataset used to convert audio waveforms into ASCII Art
132
+ - [0-hero/lj_speech_with_spectogram_conversations](https://huggingface.co/datasets/0-hero/lj_speech_with_spectogram_conversations) - ShareGPT style finetuning dataset with train, test split
133
+ - [0-hero/lj_speech_with_spectogram](https://huggingface.co/datasets/0-hero/lj_speech_with_spectogram) - Raw dataset with ASCII Art (this)
134
+
135
+