Как установить PyTorch для клонирования голоса в реальном времени в Windows?Python

Программы на Python
Гость
Как установить PyTorch для клонирования голоса в реальном времени в Windows?

Сообщение Гость »


I've got the following problem: I want to install CorentinJ/Real-Time-Voice-Cloning but there's a problem with PyTorch. Here's what I've done already:
  • downloaded the Real-Time-Voice-Cloning repository
  • downloaded the pre-trained models into the encoder, vocoder and synthesizer folder
  • installed ffmpeg
  • successfully ran

    Код: Выделить всё

    pip install -r requirements.txt
  • installed Anaconda
  • successfully installed PyTorch using

    Код: Выделить всё

    conda install pytorch torchvision torchaudio cpuonly -c pytorch

However, when checking the installation using

Код: Выделить всё

python demo_cli.py
I get the error:

Код: Выделить всё

ModuleNotFoundError: No module named 'torch' 
Then, I tried installing PyTorch with Pip using the following command I got on https://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 
But I got the error:

Код: Выделить всё

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 
Also, I tried just

Код: Выделить всё

pip3 install torch
(and

Код: Выделить всё

pip install torch
) but got the error:

Код: Выделить всё

ModuleNotFoundError: No module named 'tools.nnwrap'
. I was able to install but didn't succeed in installing .

What can I do to make Real-Time-Voice-Cloning work? Do I have to use CUDA for PyTorch to work?

My Python version: 3.7.4


Источник: https://stackoverflow.com/questions/678 ... on-windows

Вернуться в «Python»