iflamed commited on
Commit
6faabaa
1 Parent(s): 3e87d92

revert readme

Browse files
Files changed (1) hide show
  1. README.md +4 -22
README.md CHANGED
@@ -34,13 +34,13 @@ sudo yum install sox sox-devel
34
  ```
35
 
36
  **Model download**
37
- > *If you are expert in this field, and you are only interested in training your own CosyVoice model from scratch, you can skip this step.*
38
 
39
  We strongly recommend that you download our pretrained `CosyVoice-300M` `CosyVoice-300M-SFT` `CosyVoice-300M-Instruct` model and `CosyVoice-ttsfrd` resource.
40
 
41
- Download models with python script.
42
 
43
  ``` python
 
44
  from modelscope import snapshot_download
45
  snapshot_download('iic/CosyVoice-300M', local_dir='pretrained_models/CosyVoice-300M')
46
  snapshot_download('iic/CosyVoice-300M-SFT', local_dir='pretrained_models/CosyVoice-300M-SFT')
@@ -48,8 +48,8 @@ snapshot_download('iic/CosyVoice-300M-Instruct', local_dir='pretrained_models/Co
48
  snapshot_download('iic/CosyVoice-ttsfrd', local_dir='pretrained_models/CosyVoice-ttsfrd')
49
  ```
50
 
51
- Download models with git, you should install [git lfs](https://github.com/git-lfs/git-lfs?utm_source=CosyVoice_site&utm_medium=download_models&utm_campaign=gitlfs#installing) first.
52
  ``` sh
 
53
  mkdir -p pretrained_models
54
  git clone https://www.modelscope.cn/iic/CosyVoice-300M.git pretrained_models/CosyVoice-300M
55
  git clone https://www.modelscope.cn/iic/CosyVoice-300M-SFT.git pretrained_models/CosyVoice-300M-SFT
@@ -122,24 +122,6 @@ python3 webui.py --port 50000 --model_dir pretrained_models/CosyVoice-300M
122
  For advanced user, we have provided train and inference scripts in `examples/libritts/cosyvoice/run.sh`.
123
  You can get familiar with CosyVoice following this recipie.
124
 
125
- **Serve with FastAPI**
126
-
127
- The `runtime/python/fastapi_server.py` file contains the http API build with `FastAPI`.
128
-
129
- ```sh
130
- cd runtime/python
131
- # Set inference model
132
- export MODEL_DIR=pretrained_models/CosyVoice-300M-Instruct
133
-
134
- # For development
135
- fastapi dev --port 6006 fastapi_server.py
136
- # For production
137
- fastapi run --port 6006 fastapi_server.py
138
-
139
- # Call the API with python client
140
- python fastapi_client.py --api_base http://127.0.0.1:6006 --mode cross_lingual --tts_wav ./demo.wav
141
- ```
142
-
143
  **Build for deployment**
144
 
145
  Optionally, if you want to use grpc for service deployment,
@@ -170,4 +152,4 @@ You can also scan the QR code to join our official Dingding chat group.
170
  5. We borrowed a lot of code from [WeNet](https://github.com/wenet-e2e/wenet).
171
 
172
  ## Disclaimer
173
- The content provided above is for academic purposes only and is intended to demonstrate technical capabilities. Some examples are sourced from the internet. If any content infringes on your rights, please contact us to request its removal.
 
34
  ```
35
 
36
  **Model download**
 
37
 
38
  We strongly recommend that you download our pretrained `CosyVoice-300M` `CosyVoice-300M-SFT` `CosyVoice-300M-Instruct` model and `CosyVoice-ttsfrd` resource.
39
 
40
+ If you are expert in this field, and you are only interested in training your own CosyVoice model from scratch, you can skip this step.
41
 
42
  ``` python
43
+ # SDK模型下载
44
  from modelscope import snapshot_download
45
  snapshot_download('iic/CosyVoice-300M', local_dir='pretrained_models/CosyVoice-300M')
46
  snapshot_download('iic/CosyVoice-300M-SFT', local_dir='pretrained_models/CosyVoice-300M-SFT')
 
48
  snapshot_download('iic/CosyVoice-ttsfrd', local_dir='pretrained_models/CosyVoice-ttsfrd')
49
  ```
50
 
 
51
  ``` sh
52
+ # git模型下载,请确保已安装git lfs
53
  mkdir -p pretrained_models
54
  git clone https://www.modelscope.cn/iic/CosyVoice-300M.git pretrained_models/CosyVoice-300M
55
  git clone https://www.modelscope.cn/iic/CosyVoice-300M-SFT.git pretrained_models/CosyVoice-300M-SFT
 
122
  For advanced user, we have provided train and inference scripts in `examples/libritts/cosyvoice/run.sh`.
123
  You can get familiar with CosyVoice following this recipie.
124
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  **Build for deployment**
126
 
127
  Optionally, if you want to use grpc for service deployment,
 
152
  5. We borrowed a lot of code from [WeNet](https://github.com/wenet-e2e/wenet).
153
 
154
  ## Disclaimer
155
+ The content provided above is for academic purposes only and is intended to demonstrate technical capabilities. Some examples are sourced from the internet. If any content infringes on your rights, please contact us to request its removal.