Replies: 9 comments 2 replies
-
|
Here is ZIP for testing on CPU-GPU. |
Beta Was this translation helpful? Give feedback.
-
|
I dont know how to use pip uninstall onnxruntime |
Beta Was this translation helpful? Give feedback.
-
'pip uninstall onnxruntime' - it's command in cmd.exe window. |
Beta Was this translation helpful? Give feedback.
-
|
is this still the case or fixed in the latest version? |
Beta Was this translation helpful? Give feedback.
-
It's still the case - because it's not problem with Reactor, but problem with 'onnxruntime' vs 'onnxruntime-gpu'. omegaconf 2.3.0 |
Beta Was this translation helpful? Give feedback.
-
Image2image face swap is pretty fast even on CPU. But Face Restore has much difference. Especially for image2video face swap. Btw, some updating (ComfyUI, or custom nodes) - can install 'onnxruntime' - and you can see a bit slower work. Always check 'requirements.txt' before install something (to prevent install 'onnxruntime') - or check Happy face swapping! |
Beta Was this translation helpful? Give feedback.
-
|
works thanks you. |
Beta Was this translation helpful? Give feedback.
-
|
onnx 1.20.0 |
Beta Was this translation helpful? Give feedback.
-
|
Glad I found this discussion, thanks Buumcode. First I had version 1.23.2 of both packages installed but nothing could be detected due to this error: So it actually was trying to use the GPU but failing probably because they have dropped support for good old GTX 970. I tried downgrading the packages and the error went away but at the same time ReActor started running on CPU only. After finding this topic, I uninstalled the onnxruntime package, then tried different versions of onnxruntime-gpu again, and finally found that 1.20.2 is the latest that supports this GPU. Now it finally works without errors and fast too. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
On market now we have two versions of ONNXRUNTIME -- for CPU and for GPU (onnxruntime and onnxruntime-gpu).
And here is big MISTAKE (big problem) -- BOTH versions of packages after installing became ONNXRUNTIME <---- get the same name!!
So, if you have installed in your system ONNXRUNTIME <----- your Reactor uses your CPU, NOT GPU.
(GPU two times faster than CPU -- which especially important in image-to-video face swapping).
Example 1 -- if you have installed BOTH onnxruntime and onnxruntime-gpu -- you still uses CPU:
onnx 1.16.1
onnxruntime 1.20.1
onnxruntime-gpu 1.20.1
opencv-python 4.10.0.84
Example 2 -- here is good config (my today's config) - only onnxruntime-gpu is installed = you uses your GPU:
onnx 1.17.0
onnxruntime-gpu 1.22.0
open_clip_torch 2.31.0
---- What to do ----
If your PIP LIST show you - you have installed onnxruntime -- you should completely uninstall them. But IMPORTANT - you should uninstall BOTH your onnxruntime and onnxruntime-gpu first!! And only after uninstalling BOTH versions of onnxruntime -- you need to install ONLY one onnxruntime-gpu.
Here is your steps:
Now, if you do it right -- your PIP LIST show you only onnxruntime-gpu is installed -- and you run your Reactor on GPU! 🌌🚀
Beta Was this translation helpful? Give feedback.
All reactions