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

New 1.5 UI causes issues when trying to map Faces

Open smilingjack10 opened this issue 4 months ago • 5 comments

When updating to the 1.5 release mapping faces causes the following error:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\usr \anaconda3\envs\faceswap\lib\tkinter\__init__.py", line 1921, in __call__
    return self.func(*args)
  File "C:\Users\usr\anaconda3\envs\faceswap\lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 554, in _clicked
    self._command()
  File "C:\Users\usr\Desktop\Deep-Live-Cam\modules\ui.py", line 533, in <lambda>
    command=lambda id=id: on_button_click(map, id),
  File "C:\Users\usr\Desktop\Deep-Live-Cam\modules\ui.py", line 516, in on_button_click
    update_popup_source(scrollable_frame, map, button_num)
  File "C:\Users\usr\Desktop\Deep-Live-Cam\modules\ui.py", line 642, in update_popup_source
    scrollable_frame.winfo_children()[button_num],
IndexError: list index out of range

Reproduce: Fresh install of Deep-Live-Cam in a blank venv with python 3.10 follow installation instructions of windows with cuda support Use a picture or movie with multiple faces and select face mapping Wait for the faces to be extracted from the picture/video Select source images when asked Only the First source image can be selected, all subsequent images will result in this error.

This is probably a simple mistake in indexing in the new ui.py file. But I would have to reverse engineer a lot in order to fix it. So hopefully someone with some more knowledge of the program can fix this 😉.

smilingjack10 avatar Sep 26 '24 08:09 smilingjack10