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

Face enhancer slow with CUDA

Open fojenj opened this issue 1 year ago • 12 comments

Is there any recommended settings for using face enhancer with CUDA? OR should I be using DML instead? My GPU is only at like 40% utilization and same with RAM is way under usage so I feel like it should be able to run better.

It also just looks terrible without face enhancer no matter the quality settings I have.

fojenj avatar Sep 01 '24 08:09 fojenj

DML is suitable for cards that don't work with CUDA (older NVIDIA graphics cards as well as any AMD\ INTEL graphics cards). but it is slower than CUDA. to fix this, you can just use more threads.

NeuroDonu avatar Sep 01 '24 08:09 NeuroDonu

My system is far from being CPU or GPU bound, so increasing the number of threads via --execution-threads does nothing at all. This is a pure software issue on my end.

NXTler avatar Sep 01 '24 16:09 NXTler

Same here.. we don't have to install the requirements(e.g CUDA TOOLKIT) if we're using the provided release that has everything in the env right?

RainyZombie avatar Sep 02 '24 00:09 RainyZombie

No, otherwise the GPU wouldn't work at all. The release itself isn't the problem, as I have the issue with a complete manual install.

NXTler avatar Sep 02 '24 05:09 NXTler

My GPU, CPU, and RAM utilization are also low

lianglll avatar Sep 03 '24 01:09 lianglll

It can only process as much using the live video as of this moment. Usual usage is just 6gb GPU vram. I'm still finding ways on how to improve it.

hacksider avatar Sep 05 '24 07:09 hacksider

It can only process as much using the live video as of this moment. Usual usage is just 6gb GPU vram. I'm still finding ways on how to improve it.

Is it normal that I convert a 1440p video spending 30 mins?(my gpu is 4060 8G)

foxmaid avatar Sep 10 '24 12:09 foxmaid

This question doesn't really belong here. Anyway, 1440p is a large resolution for the Models so I would expect a significant slow down. Furthermore your GPU doesn't have a lot of VRAM, you might hit the limit with that resolution and some idle VRAM usage. You also didn't say how long the video is.

NXTler avatar Sep 10 '24 12:09 NXTler

This question doesn't really belong here. Anyway, 1440p is a large resolution for the Models so I would expect a significant slow down. Furthermore your GPU doesn't have a lot of VRAM, you might hit the limit with that resolution and some idle VRAM usage. You also didn't say how long the video is.

the video is 1080*1440 30fps in 30s

foxmaid avatar Sep 10 '24 13:09 foxmaid

This question doesn't really belong here. Anyway, 1440p is a large resolution for the Models so I would expect a significant slow down. Furthermore your GPU doesn't have a lot of VRAM, you might hit the limit with that resolution and some idle VRAM usage. You also didn't say how long the video is.

It can be finished in 1min without face enhancer

foxmaid avatar Sep 10 '24 13:09 foxmaid

I would bet that you are running into VRAM limit with Face Enhancer, did you checked usage?

NXTler avatar Sep 10 '24 13:09 NXTler

I would bet that you are running into VRAM limit with Face Enhancer, did you checked usage?

windows task manager shows vram: 7.5/8GB u r right, VRAM is the limit 😂

foxmaid avatar Sep 10 '24 14:09 foxmaid