Deep-Live-Cam icon indicating copy to clipboard operation
Deep-Live-Cam copied to clipboard

Low Framerate on MacOS Apple silicon ~5-6FPS

Open phillips321 opened this issue 6 months ago • 1 comments

Have tried on a Mac M1, M1 Pro and now and M4 Pro.

Using venv, python 3.10.16 and brew tcl-tk only all off the machines I get limited FPS, in the region of 5-6 FPS at most. It appears the GPU is not being used at all:

python
Python 3.10.16 (main, May 13 2025, 14:37:36) [Clang 17.0.0 (clang-1700.0.13.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
python run.py --execution-provider coreml

This is also using the inswapper_128.onnx model.

Has anyone else managed to get a decent frame rate on apple silicon hardware? Also has anyone been able to get the GPUs to be used? mactop shows the CPU being maxed out but the GPUs not being utilised.

phillips321 avatar May 13 '25 14:05 phillips321

So reading this here it appears that onnxruntime on MacOS Arm only works with the CPU.

phillips321 avatar May 13 '25 19:05 phillips321

Same here, i just get 1-1.5 FPS with M4

ashafizullah avatar May 15 '25 17:05 ashafizullah

Just a heads up, NVIDIA with CUDA is the best application to run this application when using live. Mac is only an option. It can run but not as good when using NVIDIA

hacksider avatar May 15 '25 18:05 hacksider