如何在Windows上安装实时语音克隆PyTorch



我遇到以下问题:我想安装CorentinJ/实时语音克隆,但PyTorch有问题。以下是我已经做过的:

  • 下载了实时语音克隆存储库
  • 将预先训练好的模型下载到编码器、声码器和合成器文件夹中
  • 已安装ffmpeg
  • 成功运行pip install -r requirements.txt
  • 已安装Anaconda
  • 使用conda install pytorch torchvision torchaudio cpuonly -c pytorch成功安装PyTorch

但是,当使用python demo_cli.py检查安装时,我得到错误:

ModuleNotFoundError: No module named 'torch'

然后,我尝试使用下面的命令用Pip安装PyTorchhttps://pytorch.org/get-started/locally:

pip3 install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html

但我得到了错误:

ERROR: Could not find a version that satisfies the requirement torch==1.8.1+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.8.1+cpu

此外,我只尝试了pip3 install torch(和pip install torch(,但得到了错误:ModuleNotFoundError: No module named 'tools.nnwrap'。我能够安装tools,但没有成功安装nnwrap

我可以做些什么来使实时语音克隆工作?我必须使用CUDA让PyTorch工作吗?

我的Python版本:3.7.4

您可以在CoretinJ实时语音克隆的github repo上安装仅限cpu的pytorch和声码器、合成器、编码器文件。然后执行:python-demo_toolbox.py,即可获得使用cli的GUI或python demo_cli.py。

解决方案:我不知道必须使用Anaconda Prompt来运行python demo_cli.py。然后它就起作用了。

最新更新