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
40.91k stars 5.96k forks source link

The app UI looks almost transparent and invisible after starting #643

Closed phpmooc closed 1 month ago

phpmooc commented 1 month ago

OS: windows11 Python Version: 3.10

I have searched the issues related to #597 , and pulled the latest commit with 5845b9c48098d2d30cedaa26769626f1c2726aec,
but it not works for me, the app UI still looks transparent and almost invisible, what am I doing wrong? or which commit should I get?thanks in advance.

Flansi commented 1 month ago

OS: windows11 Python Version: 3.10 GPU: 4090

I have the same issue,

issue

(venv) PS G:\App\Deep-Live-Cam - unchanged> .\run-cuda.bat

G:\App\Deep-Live-Cam - unchanged>python run.py --execution-provider cuda --execution-threads 60 --max-memory 60 Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\hanne\AppData\Local\Programs\Python\Python310\lib\tkinter__init.py", line 1921, in call return self.func(*args) File "C:\Users\hanne\AppData\Local\Programs\Python\Python310\lib\tkinter\init.py", line 839, in callit func(*args) File "G:\App\Deep-Live-Cam - unchanged\venv\lib\site-packages\customtkinter\windows\widgets\scaling\scaling_tracker.py", line 186, in check_dpi_scaling window.block_update_dimensions_event() File "C:\Users\hanne\AppData\Local\Programs\Python\Python310\lib\tkinter\init.py", line 2383, in getattr__ return getattr(self.tk, attr) AttributeError: '_tkinter.tkapp' object has no attribute 'block_update_dimensions_event'

hacksider commented 1 month ago

You can get the latest one and start from that :) If it still have an issue, please report it back here

UHDPass commented 1 month ago

You can get the latest one and start from that :) If it still have an issue, please report it back here

Latest one still has the same issue...

Already up to date.

(venv) d:\test\Deep-Live-Cam>python run.py --execution-provider cuda --execution-threads 60 --max-memory 60 Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\lib\tkinter__init.py", line 1921, in call return self.func(*args) File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\lib\tkinter\init.py", line 839, in callit func(*args) File "d:\test\Deep-Live-Cam\venv\lib\site-packages\customtkinter\windows\widgets\scaling\scaling_tracker.py", line 186, in check_dpi_scaling window.block_update_dimensions_event() File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\lib\tkinter\init.py", line 2383, in getattr__ return getattr(self.tk, attr) AttributeError: '_tkinter.tkapp' object has no attribute 'block_update_dimensions_event'

Flansi commented 1 month ago

Still the same issue:

issue

phpmooc commented 1 month ago

You can get the latest one and start from that :) If it still have an issue, please report it back here

The latest one still has the same issue

animemoeus commented 1 month ago

Same problem here

image

(venv)  arter@animemoeus        Deep-Live-Cam  main  python .\run.py
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\arter\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py", line 1921, in __call__
    return self.func(*args)
  File "C:\Users\arter\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py", line 839, in callit
    func(*args)
  File "C:\Users\arter\Documents\Python\Deep-Live-Cam\venv\lib\site-packages\customtkinter\windows\widgets\scaling\scaling_tracker.py", line 186, in check_dpi_scaling
    window.block_update_dimensions_event()
  File "C:\Users\arter\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py", line 2383, in __getattr__
    return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'block_update_dimensions_event'
WhoJoshi69 commented 1 month ago

i am also having the same issue

Bhl0318 commented 1 month ago

you can comment out these two lines "window.block_update_dimensions_event()" and "window.unblock_update_dimensions_event()" in scaling_tracker.py

WhoJoshi69 commented 1 month ago

you can comment out these two lines "window.block_update_dimensions_event()" and "window.unblock_update_dimensions_event()" in scaling_tracker.py

thanks bro!!! this worked

KRSHH commented 1 month ago

@phpmooc try installing this in the venv - https://github.com/KRSHH/FileStorage/raw/refs/heads/main/customtkinter-5.2.2-py3-none-any.whl

KRSHH commented 1 month ago

pip install https://github.com/KRSHH/FileStorage/raw/refs/heads/main/customtkinter-5.2.2-py3-none-any.whl

Flansi commented 1 month ago

you can comment out these two lines "window.block_update_dimensions_event()" and "window.unblock_update_dimensions_event()" in scaling_tracker.py

this works, thank you!

phpmooc commented 1 month ago

pip install https://github.com/KRSHH/FileStorage/raw/refs/heads/main/customtkinter-5.2.2-py3-none-any.whl

thanks, but still not work.

then tried @Bhl0318 's solution, it worked.

KRSHH commented 1 month ago

pip install https://github.com/KRSHH/FileStorage/raw/refs/heads/main/customtkinter-5.2.2-py3-none-any.whl

thanks, but still not work.

then tried @Bhl0318 's solution, it worked.

Did you do these steps before -

Open terminal in Deep-Live-Cam folder, enter these two commands -

.\venv\Scripts\Activate
python -m pip install --force-reinstall https://github.com/KRSHH/FileStorage/raw/refs/heads/main/customtkinter-5.2.2-py3-none-any.whl
KRSHH commented 1 month ago

I am asking to try this method, as it would make the fix easy for other users if they face it...

phpmooc commented 1 month ago

pip install https://github.com/KRSHH/FileStorage/raw/refs/heads/main/customtkinter-5.2.2-py3-none-any.whl

thanks, but still not work. then tried @Bhl0318 's solution, it worked.

Did you do these steps before -

Open terminal in Deep-Live-Cam folder, enter these two commands -

.\venv\Scripts\Activate
python -m pip install --force-reinstall https://github.com/KRSHH/FileStorage/raw/refs/heads/main/customtkinter-5.2.2-py3-none-any.whl

Yep, it works this time after executing --force-reinstall,thanks a lot.

KRSHH commented 1 month ago

Great.