【问题标题】:How to install PyTorch for Real-Time-Voice-Cloning on Windows?如何在 Windows 上安装 PyTorch 以进行实时语音克隆?
【发布时间】:2021-08-25 13:39:57
【问题描述】:

我遇到了以下问题:我想安装 CorentinJ/Real-Time-Voice-Cloning,但 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'

然后,我尝试使用我在https://pytorch.org/get-started/locally 上获得的以下命令使用 Pip 安装 PyTorch:

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

【问题讨论】:

    标签: python pytorch conda


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

      您可以安装仅 cpu 的 pytorch 和 vocoder、synthesizer、encoder 文件,这些文件可在 CoretinJ 实时语音克隆的 github repo 上找到。然后执行:python demo_toolbox.py 并获得 GUI 或 python demo_cli.py 以使用 CLI。

      【讨论】:

        猜你喜欢
        • 2011-02-01
        • 2020-09-30
        • 2018-05-10
        • 2018-07-18
        • 1970-01-01
        • 1970-01-01
        • 2018-05-25
        相关资源
        最近更新 更多