hoangbinhmta99 commited on
Commit
c9684b1
·
1 Parent(s): 10b672b

Update my model

Browse files
Files changed (1) hide show
  1. README.md +23 -1
README.md CHANGED
@@ -1,6 +1,7 @@
1
  Convert from model .pt to transformer
2
  Link: https://huggingface.co/tommy19970714/wav2vec2-base-960h
3
  Bash:
 
4
  pip install transformers[sentencepiece]
5
  pip install fairseq -U
6
 
@@ -12,4 +13,25 @@ mkdir dict
12
  wget https://dl.fbaipublicfiles.com/fairseq/wav2vec/dict.ltr.txt
13
 
14
  mkdir outputs
15
- python convert_wav2vec2_original_pytorch_checkpoint_to_pytorch.py --pytorch_dump_folder_path ./outputs --checkpoint_path ./finetuned/wav2vec_small.pt --dict_path ./dict/dict.ltr.txt --not_finetuned
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  Convert from model .pt to transformer
2
  Link: https://huggingface.co/tommy19970714/wav2vec2-base-960h
3
  Bash:
4
+ ```bash
5
  pip install transformers[sentencepiece]
6
  pip install fairseq -U
7
 
 
13
  wget https://dl.fbaipublicfiles.com/fairseq/wav2vec/dict.ltr.txt
14
 
15
  mkdir outputs
16
+ python convert_wav2vec2_original_pytorch_checkpoint_to_pytorch.py
17
+ --pytorch_dump_folder_path ./outputs --checkpoint_path ./finetuned/wav2vec_small.pt
18
+ --dict_path ./dict/dict.ltr.txt --not_finetuned
19
+ ```
20
+ # install and upload model
21
+ ```
22
+ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
23
+ git lfs install
24
+ sudo apt-get install git-lfs
25
+ git lfs install
26
+ git clone https://huggingface.co/hoangbinhmta99/wav2vec-demo
27
+ ls
28
+ cd wav2vec-demo/
29
+ git status
30
+ git add .
31
+ git commit -m "First model version"
32
+ git config --global user.email [yourname]
33
+ git config --global user.name [yourpass]
34
+ git commit -m "First model version"
35
+ git push
36
+ ```
37
+