Commit
·
48b45cd
1
Parent(s):
4b150b4
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
| 1 |
Wav2Vec2 Model (initialized from [`facebook/wav2vec2-base`](https://huggingface.co/facebook/wav2vec2-base)) with **no** LM head.
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
Wav2Vec2 Model (initialized from [`facebook/wav2vec2-base`](https://huggingface.co/facebook/wav2vec2-base)) with **no** LM head.
|
| 2 |
|
| 3 |
+
Model weights are converted into TensorFlow using following script:
|
| 4 |
+
|
| 5 |
+
```shell
|
| 6 |
+
python3 convert_torch_to_tf.py --hf_model_id "facebook/wav2vec2-base"
|
| 7 |
+
```
|
| 8 |
+
|
| 9 |
+
**TF SavedModel** is obtained by running following commands:
|
| 10 |
+
|
| 11 |
+
```shell
|
| 12 |
+
git clone https://huggingface.co/vasudevgupta/gsoc-wav2vec2
|
| 13 |
+
|
| 14 |
+
python3 export2hub.py \
|
| 15 |
+
--hf_model_id facebook/wav2vec2-base \
|
| 16 |
+
--saved_model_dir gsoc-wav2vec2/saved-model \
|
| 17 |
+
--seqlen 246000
|
| 18 |
+
|
| 19 |
+
cd gsoc-wav2vec2 && tar -czf saved-model.tar.gz saved-model
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
Project Link: https://github.com/vasudevgupta7/gsoc-wav2vec2
|