0. 說明
跑通他: https://github.com/CorentinJ/Real-Time-Voice-Cloning
中文版1: https://github.com/KuangDD/zhrtvc
![]()
- git clone https://github.com/CorentinJ/Real-Time-Voice-Cloning.git
- cd Real-Time-Voice-Cloning/
1. 環境



環境名字為: voiceclone_p36
- conda create -n voiceclone_p36 python=3.6.5
- conda activate voiceclone_p36
- conda install pytorch torchvision torchaudio cpuonly -c pytorch
- conda install -c conda-forge librosa # 這一點是特別的 (把ffmpeg也順便裝好了)
- 將requirement.txt中的librosa那條洗掉
- conda install tensorflow-gpu==1.14
- 將requirement.txt中的tensorflow==1.15那條洗掉
- sudo pacman -S python-pyqt5
- 將requirement.txt中的PyQt5那條洗掉
- 再洗掉一些已經裝好的, 剩下的為7行
- pip install -r requirements.txt
注:
服務器網路太慢, 離線安裝pytorch

缺什么先下好什么, 單獨按照順序人工pip install就可以
- pip install numpy-1.19.4-cp36-cp36m-manylinux1_x86_64.whl
- pip install torch-1.6.0-cp36-cp36m-manylinux1_x86_64.whl
2. Download Pretrained Models
https://github.com/CorentinJ/Real-Time-Voice-Cloning/wiki/Pretrained-models
- 開vpn下載
- 按照路徑放進去, 都很熟悉
3. Test Configuration
- cd /datapool/home/hujk17/Real-Time-Voice-Cloning
- conda activate voiceclone_p36
- python demo_cli.py
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/223738.html
標籤:python
