numz / sd-wav2lip-uhq

Wav2Lip UHQ extension for Automatic1111
Apache License 2.0
1.16k stars 158 forks source link

RuntimeError: Torch is not able to use GPU #81

Open prezofpizza opened 8 months ago

prezofpizza commented 8 months ago

After installing the extension I am getting the following error:

Traceback (most recent call last): File "D:\WebUiCopy\webui\launch.py", line 48, in main() File "D:\WebUiCopy\webui\launch.py", line 39, in main prepare_environment() File "D:\WebUiCopy\webui\modules\launch_utils.py", line 356, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

I setup a clean install of Automatic1111 to see if it was conflicting models or extensions.

I've been trying for a long while to resolve this and nothing seems to do the trick.

I just want to be sure that the extension is indeed leveraging my NVIDIA GPU (RTX4090) correctly.

Thanks!

imdaewoong commented 8 months ago

I also have NVIDIA GPU (RTX4090)and i had the same issue and it wasn't resolved. So I didn't install wav2lip and it worked normally. In my opinion, the moment you install wav2lip, Torch is upgraded and the GPU cannot be used, and then automatically it changes Torch2.0.1+CU118 to Torch2.1.0+CPU, it does not work and an error occurs. And the production speed slows down significantly. I tested it dozens of times over 5 days, but couldn't solve it. Please resolve this. thank you

numz commented 8 months ago

Hi This issue seems to come from faceswap installation package, but I don't understand when torch2.1.0 is installed in the process because in requirements.txt there is no pytorch package, it seems to come from other requirements.txt that come from onnxruntime or insightface but can't see where, still investigating.... Sorry about that

APCOTech commented 8 months ago

Hi This issue seems to come from faceswap installation package, but I don't understand when torch2.1.0 is installed in the process because in requirements.txt there is no pytorch package, it seems to come from other requirements.txt that come from onnxruntime or insightface but can't see where, still investigating.... Sorry about that

I think it is from Bark

"git checkout 2283dac" for no bark and no face swap "git checkout 579d384" for no face swap

Commit 579d384 does the same problem for me, only 2283dac works fine

huwhitememes commented 8 months ago

Is there a solve for this?

skitzes commented 8 months ago

so this sd extension version of wav2lip just doesn't work? i cant even get sd web ui to open after installing this plugin. this is a shame bc it sounded amazing. will it be fixed soon?

prezofpizza commented 8 months ago

I've found that I can get it to work if I open my WebUi folder and use the Launch shortcut.

I believe it doesn't leverage CUDA or GPU though, but it works. It takes a while and is cpu intensive. It's a workaround just to tinker with the tool, not a solution.

On Sat, Nov 4, 2023, 10:56 PM skitzes @.***> wrote:

so this sd extension version of wav2lip just doesn't work? i cant even get sd web ui to open after installing this plugin. this is a shame bc it sounded amazing. will it be fixed soon?

— Reply to this email directly, view it on GitHub https://github.com/numz/sd-wav2lip-uhq/issues/81#issuecomment-1793617082, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDU3J27PLURKZGTHGZXU6UDYC357RAVCNFSM6AAAAAA6YICYOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTGYYTOMBYGI . You are receiving this because you authored the thread.Message ID: @.***>

imdaewoong commented 8 months ago

i'm ok git checkout e6ee80ada64e59837c2a7a294a3c002d2ad667ac. i'm still hope use wav2lip with facefusion. thanks

P-Elendil commented 8 months ago

Confirming I can't find a good workaround at present too making this sadly unfunctional at the moment.

APCOTech commented 8 months ago

Finally, it worked for me

prezofpizza commented 8 months ago

Finally, it worked for me

Were you able to use the latest version of the extension with the face swapping? What did you do that got it working?

APCOTech commented 8 months ago

I explained it here... https://github.com/numz/sd-wav2lip-uhq/issues/86

I hope I explained it correctly...