sd-webui-roop icon indicating copy to clipboard operation
sd-webui-roop copied to clipboard

Roop is using CPU instead of GPU

Open waelmansourx opened this issue 1 year ago • 1 comments

I'm getting this message and it's using CPU instead of GPU

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

waelmansourx avatar Jul 04 '23 11:07 waelmansourx

I'm getting this message and it's using CPU instead of GPU

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

Because it uses the CPU by default. I watched the original ROOP and there you can switch to GPU acceleration, although not without problems. It seems that such a function is simply not made here.

PS: Author if you are reading this. Please make a switch in the extension itself with a choice of CPU \ GPU, or at least an indicator.

======

Update!

I tried to force turn on the GPU using the solution from here: https://github.com/s0md3v/roop/wiki/2.-Acceleration

However, setting onnxruntime-gpu==1.15.0 causes onnxruntime error 126

win10 system GPU 3060 12Gb

Everything is installed and reinstalled according to the instructions.

Long story short: I'm waiting for updates.

GlukXP avatar Jul 04 '23 13:07 GlukXP

Update!

I tried to force turn on the GPU using the solution from here: https://github.com/s0md3v/roop/wiki/2.-Acceleration

However, setting onnxruntime-gpu==1.15.0 causes onnxruntime error 126

win10 system GPU 3060 12Gb

Everything is installed and reinstalled according to the instructions.

Long story short: I'm waiting for updates.

does it faster using GPU? I tried solution from that link and it gave me more messages in the console. I'm also using 3060 12GB and CPUproviders give +7secs/face swap but CUDAproviders make it longer to +20secs/face swap because the long messages

We discussed here https://github.com/s0md3v/sd-webui-roop/issues/74 but dunno why @s0md3v mark it as closed

kukalikuk avatar Jul 05 '23 11:07 kukalikuk

Using GPU makes sense if you're swapping video and really have a giant batch of frames But in the case of swapping photo (even some batch) CPU works rather fast, even faster than with GPU, because CPU Execution Provider loads very quick

Gourieff avatar Jul 07 '23 17:07 Gourieff

Intended.

s0md3v avatar Jul 11 '23 09:07 s0md3v