-
Notifications
You must be signed in to change notification settings - Fork 19
Description
I was able to hack the code to get it to use XPU/open vino.
It wasn't that difficult but required a lot of trial and error, specially since I don't know much about using these NN models.
Most of the changes involved messing with inswapper.py and refacer.py:
While it now runs on the intel GPU it is still relatively slow. To get it to work I had to use a lock because I didn't feel like trying to figure out how to use the Async code.
Also, I think the BasicSR still uses the cpu(I switched it over the XPU and it partially says so but it
BasicSR Archs: Using XPU backend.
BasicSR: Using CPU backend.
Using Intel GPU (XPU) for acceleration.
Available providers: ['OpenVINOExecutionProvider', 'CPUExecutionProvider']
Using providers: ['OpenVINOExecutionProvider', 'CPUExecutionProvider']
Active provider: OpenVINOExecutionProvider
Mode: RefacerMode.COREML
Face Detector providers: ['OpenVINOExecutionProvider', 'CPUExecutionProvider']
Face Recognizer providers: ['OpenVINOExecutionProvider', 'CPUExecutionProvider']