hacksider / Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image
GNU Affero General Public License v3.0
34.78k stars 4.9k forks source link

Still uses CPU #85

Open Moulick opened 1 month ago

Moulick commented 1 month ago

I have an M3 Pro, but after following the below, it still uses the CPU and not the GPU

pip uninstall onnxruntime onnxruntime-silicon
pip install onnxruntime-silicon==1.13.1
python run.py --execution-provider coreml

with --execution-provider coreml, it enables both the CPU and GPU, is there a way to force disable the CPU provider?

CreativeBuilds commented 1 month ago

same here

RootingInLoad commented 1 month ago

Are both models: GFPGANv1.4.pth and inswapper_128_fp16.onnx compatible with the CoreML architecture ? Because I tried to force the core.py file to utilize the CoreMLExecutionProvider instead of the CPUExecutionProvider, but it always reverts to CPU only. I also tried to make ONNX being more verbose-like, but I got no extra verbose output out of it. Any other idea ?

TehBrian commented 1 month ago

@julywint007, out of curiosity, why did you thumbs-down @Moulick? Do you think there's something obvious we're overlooking?

small-cactus commented 1 month ago

Also same issue on M3 Pro

julywint007 commented 1 month ago

close

julywint007 commented 1 month ago

pip uninstall onnxruntime onnxruntime-silicon pip install onnxruntime-silicon==1.13.1 python run.py --execution-provider coreml

julywint007 commented 1 month ago

I have an M3 Pro, but after following the below, it still uses the CPU and not the GPU

pip uninstall onnxruntime onnxruntime-silicon
pip install onnxruntime-silicon==1.13.1
python run.py --execution-provider coreml

with --execution-provider coreml, it enables both the CPU and GPU, is there a way to force disable the CPU provider?

LeonSolisPedro commented 1 month ago

@julywint007 Huh?

yiwenzhouzoe commented 1 month ago

seems it's impossible for live cam to use GPU on M2/M3 chips? Is there anyone able to do that?

yiwenzhouzoe commented 1 month ago

@julywint007 are you able to use apple GPU?

NightingaleCen commented 1 month ago

Just wonder if CoreMLExecutionProvider has really been tested on apple silicon, it seems GPU properties are not working at all.

segmentationf4u1t commented 1 month ago

@yiwenzhouzoe @julywint007 Better alternative thats compatible with Apple Silicon and CoreML utilizing full its potential is FaceFusion and it works on same principles https://github.com/facefusion/facefusion

TehBrian commented 1 month ago

@yiwenzhouzoe @julywint007 Better alternative thats compatible with Apple Silicon and CoreML utilizing full its potential is FaceFusion and it works on same principles https://github.com/facefusion/facefusion

Does FaceFusion allow for live swapping?

segmentationf4u1t commented 1 month ago

Yep

TehBrian commented 4 weeks ago

Yep

Awesome! Thank you.