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

On Mac, running run.py opens a blank window.

Open ZeeMenng opened this issue 1 year ago • 4 comments

image

On Mac, running run.py opens a blank window.

Mac,运行run.py 窗口打开是空白。

ZeeMenng avatar Aug 09 '24 09:08 ZeeMenng

Same. But you can click in the blank, seems it works only missing UI component render

i m in MacOS 15 Beta

ryancui92 avatar Aug 09 '24 10:08 ryancui92

My operating system is macOS 14.4.1 . You're right, although the window appears blank, all the components are clickable. I tried using the live view feature, and it responded—the camera turns on, but the pop-up window still doesn't display.

我的操作系统是MacOS 14.4.1 ,你说的对,虽然窗口上显示空白,但组件都可以点击到,我试着用了实时查看功能,有反应,摄像头会打开,但弹出的子窗口还是看不到人像。

image

ZeeMenng avatar Aug 09 '24 10:08 ZeeMenng

The same problem guys

My device info:

  • Mac 14.5 Apple M2 Pro
  • Python 3.10.14

caocuong2404 avatar Aug 09 '24 11:08 caocuong2404

https://github.com/hacksider/Deep-Live-Cam/issues/38 they have the same problem which is already solved

hacksider avatar Aug 09 '24 13:08 hacksider

Yes, I reinstalled tcl-tk, reset the environment variables to guide the Python interpreter to the correct version of the Tk library, and then reinstalled [email protected]. After re-running the installation steps with pip install -r requirements.txt, it worked.

However, it's a bit cumbersome. I hope future installation scripts can directly accommodate macOS systems.

是的,我重新安装了tcl-tk、重新设置环境变量指导 Python 解释器在哪里找到正确版本的 Tk 库、再重新安装[email protected],重新执行安装步骤 pip install -r requirements.txt,就可以了。

不过有点麻烦,希望后面可以直接在安装脚本中适配下Mac系统。

image

ZeeMenng avatar Aug 09 '24 15:08 ZeeMenng

Good to hear that it is resolved on your end. Sorry but I really don't have any mac so I'm at the mercy of the communities help in everything when it comes to mac issues.

hacksider avatar Aug 09 '24 16:08 hacksider

Anyway, since it is resolved. I'm going to close the issue but feel free to reply or start another issue if you encounter one (or feel free to push some codes as well)

hacksider avatar Aug 09 '24 16:08 hacksider

Despite reinstalling tcl-tk, resetting environment variables and reinstalling [email protected], I'm still getting the blank screen. Anyone else find another solution?

amaanr avatar Aug 09 '24 21:08 amaanr

Despite reinstalling tcl-tk, resetting environment variables and reinstalling [email protected], I'm still getting the blank screen. Anyone else find another solution?

https://stackoverflow.com/a/61879759

laloe74 avatar Aug 10 '24 10:08 laloe74

Traceback (most recent call last): File "C:\Users\USER\miniconda3\envs\deep-live\lib\tkinter_init_.py", line 1921, in call return self.func(*args) File "C:\Users\USER\miniconda3\envs\deep-live\lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 554, in _clicked self._command() File "C:\Users\USER\Desktop\New_models_2024\Deep-Live-Cam\modules\ui.py", line 104, in live_button = ctk.CTkButton(root, text='Live', cursor='hand2', command=lambda: webcam_preview()) File "C:\Users\USER\Desktop\New_models_2024\Deep-Live-Cam\modules\ui.py", line 281, in webcam_preview source_image = get_one_face(cv2.imread(modules.globals.source_path)) File "C:\Users\USER\Desktop\New_models_2024\Deep-Live-Cam\modules\face_analyser.py", line 20, in get_one_face face = get_face_analyser().get(frame) File "C:\Users\USER\Desktop\New_models_2024\Deep-Live-Cam\modules\face_analyser.py", line 14, in get_face_analyser FACE_ANALYSER = insightface.app.FaceAnalysis(name='buffalo_l', providers=modules.globals.execution_providers) File "C:\Users\USER\AppData\Roaming\Python\Python310\site-packages\insightface\app\face_analysis.py", line 43, in init assert 'detection' in self.models AssertionError

is someone faced like this issue?

Mrkomiljon avatar Aug 13 '24 03:08 Mrkomiljon