poonehmousavi
commited on
Commit
•
37cecca
1
Parent(s):
b65f67c
Upload README (1).md
Browse files- README (1).md +64 -0
README (1).md
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
datasets:
|
4 |
+
- librispeech_asr
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
library_name: sklearn
|
8 |
+
---
|
9 |
+
|
10 |
+
<iframe src="https://ghbtns.com/github-btn.html?user=speechbrain&repo=speechbrain&type=star&count=true&size=medium" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
|
11 |
+
<br/><br/>
|
12 |
+
|
13 |
+
# K-means (Quantization)
|
14 |
+
## <font color="red"> Work In Progress .... </font>
|
15 |
+
|
16 |
+
This folder contains pre-trained K-means models for the LibriSpeech Dataset.
|
17 |
+
The model serves to quantize self-supervised representations into discrete representation. Thus representations can be used as a discrete audio input for various tasks including classification, ASR and speech gneration.
|
18 |
+
It supports kmeans models using the features from HuBERT, WAVLM or Wav2Vec.
|
19 |
+
|
20 |
+
### Training
|
21 |
+
The model was trained with SpeechBrain.
|
22 |
+
To train it from scratch follow these steps:
|
23 |
+
1. Clone SpeechBrain:
|
24 |
+
```bash
|
25 |
+
git clone --branch unstable-v0.6 https://github.com/speechbrain/speechbrain/
|
26 |
+
```
|
27 |
+
2. Install it:
|
28 |
+
```bash
|
29 |
+
cd speechbrain
|
30 |
+
pip install -r requirements.txt
|
31 |
+
pip install -e .
|
32 |
+
```
|
33 |
+
|
34 |
+
3. Run Training:
|
35 |
+
```bash
|
36 |
+
cd recipes/LibriSpeech/quantization/
|
37 |
+
pip install -r rextra-requirements.txt
|
38 |
+
python train.py hparams/train_with_[ssl_model].yaml --data_folder=your_data_folder
|
39 |
+
```
|
40 |
+
|
41 |
+
You can find our training results (models, logs, etc) [here](https://huggingface.co/speechbrain/SSL_Quantization).
|
42 |
+
|
43 |
+
### Limitations
|
44 |
+
The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.
|
45 |
+
|
46 |
+
#### Referencing SpeechBrain
|
47 |
+
|
48 |
+
```
|
49 |
+
@misc{SB2021,
|
50 |
+
author = {Ravanelli, Mirco and Parcollet, Titouan and Rouhe, Aku and Plantinga, Peter and Rastorgueva, Elena and Lugosch, Loren and Dawalatabad, Nauman and Ju-Chieh, Chou and Heba, Abdel and Grondin, Francois and Aris, William and Liao, Chien-Feng and Cornell, Samuele and Yeh, Sung-Lin and Na, Hwidong and Gao, Yan and Fu, Szu-Wei and Subakan, Cem and De Mori, Renato and Bengio, Yoshua },
|
51 |
+
title = {SpeechBrain},
|
52 |
+
year = {2021},
|
53 |
+
publisher = {GitHub},
|
54 |
+
journal = {GitHub repository},
|
55 |
+
howpublished = {\\\\url{https://github.com/speechbrain/speechbrain}},
|
56 |
+
}
|
57 |
+
```
|
58 |
+
|
59 |
+
#### About SpeechBrain
|
60 |
+
SpeechBrain is an open-source and all-in-one speech toolkit. It is designed to be simple, extremely flexible, and user-friendly. Competitive or state-of-the-art performance is obtained in various domains.
|
61 |
+
|
62 |
+
Website: https://speechbrain.github.io/
|
63 |
+
|
64 |
+
GitHub: https://github.com/speechbrain/speechbrain
|