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

I can run the work, but the output is so blurry even with face enhancer.

Open Zeelyne opened this issue 1 year ago • 4 comments

Hi, I used an uploaded image of 738 738 pixel and a target video of 512 512 pixel, 25fps.

屏幕截图 2024-08-13 174118

Not error was shown, but I got very very blurry result. The face was not well replaced. 屏幕截图 2024-08-13 174208 Here is the log. 屏幕截图 2024-08-13 174154

Then i compressed the uploaded image to 126 126 pixel and applied it as image, and with the same target video of 512 512 pixel, 25fps. But still, the results is slightly improved but remains very blurry. Like the image below.(Sorry if this scare you guys... the effect is not so good)

2

I think there must something wrong with my settings or installations, would you please give me some suggestions for this? Thanks a lot!

Zeelyne avatar Aug 13 '24 09:08 Zeelyne

same

peytoncai avatar Aug 13 '24 12:08 peytoncai

pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.16.3

It works.(By NV ENV)

StatLee avatar Aug 13 '24 14:08 StatLee

Thanks! It works!

pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.16.3

It works.(By NV ENV)

Zeelyne avatar Aug 13 '24 16:08 Zeelyne

Issue resolved

Zeelyne avatar Aug 13 '24 16:08 Zeelyne

There is no version 1.16.3

xx7Ahmed7xx avatar May 08 '25 16:05 xx7Ahmed7xx

There is no version 1.16.3

using python 3.10 plz

StevenCanDrink avatar Jun 28 '25 10:06 StevenCanDrink

I had the same issue and I had a little "harder" fix.

For some reason the version 1.16.3 of onnxruntime didn't work for my GPU (Laptop RTX 4060), it just kept crashing as soon as I started Live cam with this error:

RuntimeError: D:\a\_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:743 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.

I had to install a earlier version of Cuda (11.8), and a different version of cuDNN (v8.9.7compatible with CUDA 11.X) for it to work properly. If you had a newer version of CUDA installed, make sure to edit the path properly so that the correct version is used.

So for all the people having the same issue: Get these: CUDA 11.8 cuDNN

Then just reinstall onnxruntime like above:

pip uninstall onnxruntime onnxruntime-gpu
pip install onnxruntime-gpu==1.16.3

If crashes keep happening, it could be caused by numpy, so just install this version and it should be fixed.

pip uninstall numpy
pip install numpy==1.26.4

Nenormaln1 avatar Jul 22 '25 17:07 Nenormaln1