Skip to content

AttributeError: 'NoneType' object has no attribute 'shape' #1640

@obsidianocean

Description

@obsidianocean

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python311\Lib\tkinter_init_.py", line 1967, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 554, in _clicked
self.command()
File "C:\Users\levio\OneDrive\desktop\DeepLiveCam\modules\ui.py", line 326, in
root, text=
("Start"), cursor="hand2", command=lambda: analyze_target(start, root)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\levio\OneDrive\desktop\DeepLiveCam\modules\ui.py", line 487, in analyze_target
get_unique_faces_from_target_image()
File "C:\Users\levio\OneDrive\desktop\DeepLiveCam\modules\face_analyser.py", line 80, in get_unique_faces_from_target_image
many_faces = get_many_faces(target_frame)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\levio\OneDrive\desktop\DeepLiveCam\modules\face_analyser.py", line 37, in get_many_faces
return get_face_analyser().get(frame)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\insightface\app\face_analysis.py", line 59, in get
bboxes, kpss = self.det_model.detect(img,
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\insightface\model_zoo\retinaface.py", line 211, in detect
im_ratio = float(img.shape[0]) / img.shape[1]
^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'shape'

picture name is just 1 and 2 no special character

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions