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
30.94k stars 4.29k forks source link

CUDAExecutionProvider doesn't seem to be used, CPUExecutionProvider instead #37

Closed cserpellZF closed 3 months ago

cserpellZF commented 3 months ago

I am trying to use it with a GPU with cuda 12.2 in ubuntu 24.04. After starting it with python run.py --execution-provider cuda, it starts but it says

Processing:   0%|                                                                                   | 0/1789 [00:00<?, ?frame/s, execution_providers=['CUDAExecutionProvider'], execution_threads=8, max_memory=16]Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

I am not clear whether the GPU is being used at all, and it is very slow. Is this expected?

hacksider commented 3 months ago

It seems your just processing a video. Yes, it's using CUDA.

thanhiart commented 3 months ago

With CUDA , 12 Thread, 20 Memory, proccesing video very low. What's minium requirement for proccesing video with Many Faces and Keep FPS, Keep Frames ?. Thank you !

thanhiart commented 3 months ago

CPU and GPU use only 20% at all.

cserpellZF commented 3 months ago

Thanks.