Exception in Tkinter callback
Traceback (most recent call last):
File "F:\Python3.10.8\lib\tkinter_init_.py", line 1921, in call
return self.func(*args)
File "F:\github_ky\Deep-Live-Cam\venv\lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 554, in _clicked
self._command()
File "F:\github_ky\Deep-Live-Cam\modules\ui.py", line 114, in
live_button = ctk.CTkButton(root, text='Live', cursor='hand2', command=lambda: webcam_preview())
File "F:\github_ky\Deep-Live-Cam\modules\ui.py", line 356, in webcam_preview
temp_frame = frame_processor.process_frame(source_image, temp_frame)
File "F:\github_ky\Deep-Live-Cam\modules\processors\frame\face_swapper.py", line 64, in process_frame
temp_frame = swap_face(source_face, target_face, temp_frame)
File "F:\github_ky\Deep-Live-Cam\modules\processors\frame\face_swapper.py", line 48, in swap_face
return get_face_swapper().get(temp_frame, target_face, source_face, paste_back=True)
File "F:\github_ky\Deep-Live-Cam\venv\lib\site-packages\insightface\model_zoo\inswapper.py", line 50, in get
latent = source_face.normed_embedding.reshape((1,-1))
AttributeError: 'NoneType' object has no attribute 'reshape'
Duplicate of https://github.com/hacksider/Deep-Live-Cam/issues/520 and https://github.com/hacksider/Deep-Live-Cam/issues/509 and probably more..
The same error. Has anyone resolved it?
Change the source image. It works after that.
搞定了,哈哈,原来是你导入的人脸图片路径不能包含中文