numz / sd-wav2lip-uhq

Wav2Lip UHQ extension for Automatic1111
Apache License 2.0
1.19k stars 161 forks source link

RuntimeError #36

Closed liuhedong closed 10 months ago

liuhedong commented 10 months ago

RuntimeError: Detected that PyTorch and TorchAudio were compiled with different CUDA versions. PyTorch has CUDA version 11.8 whereas TorchAudio has CUDA version 11.7. Please install the TorchAudio version that matches your PyTorch version.

numz commented 10 months ago

Hi, That came from your initial installation of torch package , torch is installed with cuda 11.8 and torchaudio with cuda 11.7 Just uninstall/reinstall torchaudio must resolve the issue Let me know Regards

RinLovesYou commented 10 months ago

Hardly a solution... obviously the same thing still happens. i have even installed torch+cu117 and the same thing still happens.

RinLovesYou commented 10 months ago

I don't know what kind of sham this is, i've also tried installing the cu118 version of torchaudio...

RinLovesYou commented 10 months ago

it would help installing it all in automatic's venv 🤦

numz commented 10 months ago

yes but my extension doesn't install torch and torchaudio. for resolve the issue, you have to change this in the "venv" so activate your "automatic1111" venv and uninstall torchaudio and reinstall with the cuda version installed on your computer

venv\Scripts\activate pip uninstall torchaudio torch pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117

let me know if it works regards

hanishkeloth commented 10 months ago

The following installation command works for me: pip install torch==2.0.0+cu117 torchvision==0.15.1+cu117 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu117