Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #103

Open
AK51 opened this issue Jan 22, 2024 · 1 comment

Comments

@AK51
Copy link

AK51 commented Jan 22, 2024

Hi,

I am using ubuntu, is there any solution of properly install wav2lip?
Other solutions are for windows only...
I did try to reinstall torchaudio, delete torchaudio folder in site-package.... no luck...

stable-diffusion-webui/venv/lib/python3.10/site-packages/torchaudio/_extension/utils.py", line 119, in _check_cuda_version
    raise RuntimeError(
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.

Thanks.

@numz
Copy link
Owner

numz commented Jan 26, 2024

Hi,
Sorry about that, It should works on ubunutu

you can try :
Go to you stable diffusion folder with terminal and activate your venv python (on windows venv\Scripts\activate but I don't know on your environnement)
`
pip uninstall torch torchaudio torchvision

pip3 install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
`
Let me know,
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants