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

The interface opens successfully, but when I start Live, the face appears black. Why is this happening, and how can I fix it?

Open hhhaiai opened this issue 1 year ago • 22 comments

The interface opens successfully, but when I start Live, the face appears black. Why is this happening, and how can I fix it? image

image

hhhaiai avatar Aug 12 '24 09:08 hhhaiai

image not real people. from net web

hhhaiai avatar Aug 12 '24 09:08 hhhaiai

when run

$python run.py
Frame processor face_enhancer not found
2024-08-12 17:45:17.621 Python[58252:278202] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.

hhhaiai avatar Aug 12 '24 09:08 hhhaiai

MacBook Pro

  1. 2.4 GHz 八核Intel Core i9

AMD Radeon Pro 5500M 8 GB Intel UHD Graphics 630 1536 MB 3. 64 GB 2667 MHz DDR4 4. os version: 14.4.1

hhhaiai avatar Aug 12 '24 09:08 hhhaiai

Try strictly follow the official tutorial: pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.16.3

William-island avatar Aug 12 '24 12:08 William-island

@William-island

ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.16.3 (from versions: none)
ERROR: No matching distribution found for onnxruntime-gpu==1.16.3

AlexUrrutia avatar Aug 12 '24 15:08 AlexUrrutia

I meet same error but I use windows11 and without GPU, Error: [ WARN:[email protected]] global cap_msmf.cpp:471 anonymous-namespace'::SourceReaderCB::OnReadSample videoio(MSMF): OnReadSample() is called with error status: -1072873821 [ WARN:[email protected]] global cap_msmf.cpp:483 anonymous-namespace'::SourceReaderCB::OnReadSample videoio(MSMF): async ReadSample() call is failed with error status: -1072873821 [ WARN:[email protected]] global cap_msmf.cpp:471 anonymous-namespace'::SourceReaderCB::OnReadSample videoio(MSMF): OnReadSample() is called with error status: -1072873821 [ WARN:[email protected]] global cap_msmf.cpp:483 anonymous-namespace'::SourceReaderCB::OnReadSample videoio(MSMF): async ReadSample() call is failed with error status: -1072873821 [ WARN:[email protected]] global cap_msmf.cpp:471 anonymous-namespace'::SourceReaderCB::OnReadSample videoio(MSMF): OnReadSample() is called with error status: -1072873821 [ WARN:[email protected]] global cap_msmf.cpp:483 anonymous-namespace'::SourceReaderCB::OnReadSample videoio(MSMF): async ReadSample() call is failed with error status: -1072873821

sunyq1995 avatar Aug 12 '24 15:08 sunyq1995

image

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.16.3 (from versions: none) ERROR: No matching distribution found for onnxruntime-gpu==1.16.3

hhhaiai avatar Aug 12 '24 17:08 hhhaiai

@William-island failed ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.16.3 (from versions: none) ERROR: No matching distribution found for onnxruntime-gpu==1.16.3

hhhaiai avatar Aug 12 '24 17:08 hhhaiai

win10 ,without GPU, running result is the same as the subject, with a large black face

ANK789 avatar Aug 13 '24 01:08 ANK789

I can find the package from tsinghua index. image

William-island avatar Aug 13 '24 07:08 William-island

for people that struggle with onnx 1.16.3, make sure your python is 3.10, if it is it will be installed automatically it worked on an env using py 3.10

aamasimak avatar Aug 14 '24 02:08 aamasimak

or people that struggle with onnx 1.16.3, make sure your python is 3.10, if it is it will be installed automatically it worked on an env using py 3.10

it works, really thanks!

sunyq1995 avatar Aug 15 '24 14:08 sunyq1995

if i install onnxruntime-gpu==1.16.3 programm dont start with errors

(deep) PS D:\deep_live_cam\Deep-Live-Cam> python .\run.py Traceback (most recent call last): File "D:\deep_live_cam\Deep-Live-Cam\run.py", line 3, in from modules import core File "D:\deep_live_cam\Deep-Live-Cam\modules\core.py", line 20, in import modules.ui as ui File "D:\deep_live_cam\Deep-Live-Cam\modules\ui.py", line 10, in from modules.face_analyser import get_one_face File "D:\deep_live_cam\Deep-Live-Cam\modules\face_analyser.py", line 2, in import insightface File "D:\deep_live_cam\Deep-Live-Cam\deep\Lib\site-packages\insightface_init_.py", line 16, in from . import model_zoo File "D:\deep_live_cam\Deep-Live-Cam\deep\Lib\site-packages\insightface\model_zoo_init_.py", line 1, in from .model_zoo import get_model File "D:\deep_live_cam\Deep-Live-Cam\deep\Lib\site-packages\insightface\model_zoo\model_zoo.py", line 22, in class PickableInferenceSession(onnxruntime.InferenceSession): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'onnxruntime' has no attribute 'InferenceSession' (deep) PS D:\deep_live_cam\Deep-Live-Cam>

but if i installed onnxruntime-gpu==1.19 program starts properly but face is like black square

pyenv global 3.10 local 3.10

how to fix i?

maximka1980 avatar Aug 16 '24 11:08 maximka1980

if i install onnxruntime-gpu==1.16.3 programm dont start with errors

(deep) PS D:\deep_live_cam\Deep-Live-Cam> python .\run.py Traceback (most recent call last): File "D:\deep_live_cam\Deep-Live-Cam\run.py", line 3, in from modules import core File "D:\deep_live_cam\Deep-Live-Cam\modules\core.py", line 20, in import modules.ui as ui File "D:\deep_live_cam\Deep-Live-Cam\modules\ui.py", line 10, in from modules.face_analyser import get_one_face File "D:\deep_live_cam\Deep-Live-Cam\modules\face_analyser.py", line 2, in import insightface File "D:\deep_live_cam\Deep-Live-Cam\deep\Lib\site-packages\insightface__init__.py", line 16, in from . import model_zoo File "D:\deep_live_cam\Deep-Live-Cam\deep\Lib\site-packages\insightface\model_zoo__init__.py", line 1, in from .model_zoo import get_model File "D:\deep_live_cam\Deep-Live-Cam\deep\Lib\site-packages\insightface\model_zoo\model_zoo.py", line 22, in class PickableInferenceSession(onnxruntime.InferenceSession): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'onnxruntime' has no attribute 'InferenceSession' (deep) PS D:\deep_live_cam\Deep-Live-Cam>

but if i installed onnxruntime-gpu==1.19 program starts properly but face is like black square

pyenv global 3.10 local 3.10

how to fix i?

@maximka1980 from what I noticed you are running this using only python .\run.py from documentation u should use python run.py --execution-provider cuda if u are using cuda and keep the same onnxruntime-gpu==1.16.3

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

aamasimak avatar Aug 16 '24 14:08 aamasimak

@aamasimak i am use cuda, i am starting bat file with cuda provider. "pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.16.3" dont work properly because pip install onnxruntime-gpu==1.16.3 dont working yet.

maximka1980 avatar Aug 16 '24 17:08 maximka1980

has no cuda (navid) , can work?

hhhaiai avatar Aug 19 '24 03:08 hhhaiai

@aamasimak i am use cuda, i am starting bat file with cuda provider. "pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.16.3" dont work properly because pip install onnxruntime-gpu==1.16.3 dont working yet.

@maximka1980 what do u mean doesnt work? If u are unable to download it probably u dont have the right python version 3.10

Also will be better to share ur output so we know what is going on

aamasimak avatar Aug 19 '24 08:08 aamasimak

has no cuda (navid) , can work?

@hhhaiai i believe it can run on cpu, check documentation

aamasimak avatar Aug 19 '24 08:08 aamasimak

if i install onnxruntime-gpu==1.16.3 programm dont start with errors

(deep) PS D:\deep_live_cam\Deep-Live-Cam> python .\run.py Traceback (most recent call last): File "D:\deep_live_cam\Deep-Live-Cam\run.py", line 3, in from modules import core File "D:\deep_live_cam\Deep-Live-Cam\modules\core.py", line 20, in import modules.ui as ui File "D:\deep_live_cam\Deep-Live-Cam\modules\ui.py", line 10, in from modules.face_analyser import get_one_face File "D:\deep_live_cam\Deep-Live-Cam\modules\face_analyser.py", line 2, in import insightface File "D:\deep_live_cam\Deep-Live-Cam\deep\Lib\site-packages\insightface__init__.py", line 16, in from . import model_zoo File "D:\deep_live_cam\Deep-Live-Cam\deep\Lib\site-packages\insightface\model_zoo__init__.py", line 1, in from .model_zoo import get_model File "D:\deep_live_cam\Deep-Live-Cam\deep\Lib\site-packages\insightface\model_zoo\model_zoo.py", line 22, in class PickableInferenceSession(onnxruntime.InferenceSession): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'onnxruntime' has no attribute 'InferenceSession' (deep) PS D:\deep_live_cam\Deep-Live-Cam>

but if i installed onnxruntime-gpu==1.19 program starts properly but face is like black square

pyenv global 3.10 local 3.10

how to fix i?

first of all install this pip install insightface==0.7.3

exploretech avatar Sep 04 '24 13:09 exploretech

pip install insightface==0.7.3

It can work in windows, mac (intel) can't work.

Frame processor face_enhancer not found

hhhaiai avatar Sep 05 '24 06:09 hhhaiai

for people that struggle with onnx 1.16.3, make sure your python is 3.10, if it is it will be installed automatically it worked on an env using py 3.10

Not has 1.16.3


$pip install onnx==1.16.3
ERROR: Could not find a version that satisfies the requirement onnx==1.16.3 (from versions: 0.1, 0.2, 0.2.1, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.1.2, 1.2.1, 1.2.2, 1.2.3, 1.3.0, 1.4.0, 1.4.1, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.9.0, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.16.0, 1.16.1, 1.16.2)
ERROR: No matching distribution found for onnx==1.16.3


hhhaiai avatar Sep 05 '24 06:09 hhhaiai

pip install insightface==0.7.3

same case

hhhaiai avatar Sep 05 '24 06:09 hhhaiai