sd-wav2lip-uhq icon indicating copy to clipboard operation
sd-wav2lip-uhq copied to clipboard

The Fix for Torch and GPU problem

Open APCOTech opened this issue 7 months ago • 30 comments

For those who got their webUI corrupted after installing sd-wav2lip-uhq extension, here is how to fix it:

  1. download this file: torchaudio-2.0.2+cu118-cp310-cp310-win_amd64.whl from https://download.pytorch.org/whl/torchaudio or https://mirror.sjtu.edu.cn/pytorch-wheels/cu118/?mirror_intel_list and save it anywhere for now... lets assume you will save it in D:\

  2. if you did not install sd-wav2lip-uhq yet, then go to the extensions tab and install it normally, it will corrupt the venv anyway... but do not click on (apply and restart). when webUI asks you to restart, just close it and close the command prompt.

  3. browse to your A1111 installation foloder and go to X:\stable-diffusion-webui\extensions\sd-wav2lip-uhq

  4. Edit the requirement.txt to this only: imutils dlib-bin numpy opencv-python scipy requests pillow librosa==0.10.0.post2 opencv-contrib-python tqdm numba imutils imageio_ffmpeg git+https://github.com/suno-ai/bark.git insightface==0.7.3 onnx==1.14.0 onnxruntime-gpu==1.15.0 ifnude

  5. run webUI normally, it will collapse again... so close the command prompt

  6. browse to X:\stable-diffusion-webui\venv\Lib\site-packages and run a command prompt

  7. run these two commands in the command prompt .\python.exe -m pip install torch==2.0.1+cu118 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

then install the .whl you downloaded in step 1 .\python.exe -m pip install "D:\torchaudio-2.0.2+cu118-cp310-cp310-win_amd64.whl"

  1. Done... Enjoy...

APCOTech avatar Nov 08 '23 21:11 APCOTech