stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

reactor not working after update

Open Kasukus opened this issue 1 year ago • 13 comments

2024-07-31 13:57:07.4381847 [E:onnxruntime:Default, provider_bridge_ort.cc:1745 onnxruntime::TryGetProviderInfo_CUDA] D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1426 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\webui_forge_cu121_torch21\system\python\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

tried to install forge again. but the same problem coming after installing reactor

Kasukus avatar Jul 31 '24 08:07 Kasukus

install Reactor is fine.... but... function not working just tested

dongxiat avatar Jul 31 '24 15:07 dongxiat

Reactor is working for me, though I did have to go the Settings tab (in Reactor extension, not main webUI settings) and set the Execution Provider. Before doing that, I was getting same error as Kasukus. Tested from image and from face model. See also this issue to fix the Select Source radio buttons.

DenOfEquity avatar Jul 31 '24 23:07 DenOfEquity

how to go to the settings on reactor extension? can u help me

Kasukus avatar Aug 01 '24 02:08 Kasukus

i checked the Execution Provider and its gpu

Kasukus avatar Aug 01 '24 02:08 Kasukus

sorry its cuda

Kasukus avatar Aug 01 '24 02:08 Kasukus

The error message hints that the problem is CUDA related, so set ReActor to use CPU then press the Save button and restart if necessary. You should find that speed using CPU is fine. Takes a couple of seconds on my old laptop; about same as using CUDA. I believe the error is related to onnxruntime version not matching CUDA version. If you have another webUI where ReActor does work using CUDA, you can simply copy that .dll mentioned in the error message across. That's what I did this time, copied from old Forge into fresh install of new Forge. Alternatively, try temporarily installing a different face swap extension to see if that sets up the onnxruntime correctly. I remember I had to do that months ago, when I first tried ReActor.

DenOfEquity avatar Aug 01 '24 09:08 DenOfEquity

thank u my dear friend ..... i will try .... thanks a lot

Kasukus avatar Aug 01 '24 12:08 Kasukus

i switched to cpu mode, and its working fine as cuda. but all other features like remove background, that works using cuda is not working at the moment. I hope your imagination is right. some way onnxruntime version is not supporting cuda right now. I tried to uninstall cuda and install it again, but no luck.

Kasukus avatar Aug 01 '24 12:08 Kasukus

anyway i copied onnxruntime_providers_cuda.dll file that works perfect on my other forge version into my new forge, and now its working fine on cuda also. thank u so much dear friend DenOfEquity to sort out this problem to me.

Kasukus avatar Aug 01 '24 18:08 Kasukus

I have gotten it to work 100 percent as it should and using cuda as normal by simply adding these 2 lines to the requirements file for reactor onnxruntime==1.18.1 onnxruntime-gpu==1.18.1

the file is located in \webui\extensions\sd-webui-reactor

dramatticdev avatar Aug 02 '24 02:08 dramatticdev

thank you dramatticdev. it works for me.

Kasukus avatar Aug 02 '24 08:08 Kasukus

Thanks, dramatticdev. sorted for me too!

Adpack82 avatar Aug 02 '24 12:08 Adpack82

thank you dramatticdev. it works for me.

This Issue should be marked as solved.

The error is with the ReActor extension, not exclusive to Forge.

I have gotten it to work 100 percent as it should and using cuda as normal by simply adding these 2 lines to the requirements file for reactor onnxruntime==1.18.1 onnxruntime-gpu==1.18.1

the file is located in \webui\extensions\sd-webui-reactor

THANKS!!!! You've ended my suffering!

altoiddealer avatar Aug 05 '24 14:08 altoiddealer

I have gotten it to work 100 percent as it should and using cuda as normal by simply adding these 2 lines to the requirements file for reactor onnxruntime==1.18.1 onnxruntime-gpu==1.18.1

the file is located in \webui\extensions\sd-webui-reactor

THANK YOU SO MUCH!!!

emribilemir avatar Oct 11 '24 21:10 emribilemir