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

deep-live-cam AttributeError: 'NoneType' object has no attribute 'reshape'

Open inia123 opened this issue 1 year ago • 3 comments

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'

inia123 avatar Sep 04 '24 12:09 inia123

Duplicate of https://github.com/hacksider/Deep-Live-Cam/issues/520 and https://github.com/hacksider/Deep-Live-Cam/issues/509 and probably more..

AVGRadmin avatar Sep 04 '24 12:09 AVGRadmin

The same error. Has anyone resolved it?

mrbingo1024 avatar Sep 06 '24 08:09 mrbingo1024

Change the source image. It works after that.

UltraSeeder avatar Sep 13 '24 03:09 UltraSeeder

搞定了,哈哈,原来是你导入的人脸图片路径不能包含中文

robji15 avatar Oct 26 '24 16:10 robji15