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
37.55k stars 5.34k forks source link

Live Cam Issue - Latest version #663

Closed markbland82 closed 3 days ago

markbland82 commented 3 days ago

image This is what live cam seems to do now. Seeing if I can fix it but so far the latest commit is not working. Any ideas? Thanks!

KRSHH commented 3 days ago

what does the error message say?

markbland82 commented 3 days ago

Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\MJB\AppData\Local\Programs\Python\Python310\lib\tkinter__init.py", line 1921, in call return self.func(*args) File "C:\Users\MJB\AppData\Local\Programs\Python\Python310\lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 554, in _clicked self._command() File "H:\AI\RealTimeFaceSwap\Updated Version\Deep-Live-Cam\modules\ui.py", line 409, in command=lambda: webcam_preview(root), File "H:\AI\RealTimeFaceSwap\Updated Version\Deep-Live-Cam\modules\ui.py", line 967, in webcam_preview create_webcam_preview() File "H:\AI\RealTimeFaceSwap\Updated Version\Deep-Live-Cam\modules\ui.py", line 1018, in create_webcam_preview temp_frame = frame_processor.process_frame(source_image, temp_frame) File "H:\AI\RealTimeFaceSwap\Updated Version\Deep-Live-Cam\modules\processors\frame\face_swapper.py", line 65, in process_frame temp_frame = swap_face(source_face, target_face, temp_frame) File "H:\AI\RealTimeFaceSwap\Updated Version\Deep-Live-Cam\modules\processors\frame\face_swapper.py", line 49, in swap_face return get_face_swapper().get(temp_frame, target_face, source_face, paste_back=True) File "H:\AI\RealTimeFaceSwap\Updated Version\Deep-Live-Cam\modules\processors\frame\face_swapper.py", line 44, in get_face_swapper FACE_SWAPPER = insightface.model_zoo.get_model(model_path, providers=modules.globals.execution_providers) File "C:\Users\MJB\AppData\Local\Programs\Python\Python310\lib\site-packages\insightface\model_zoo\model_zoo.py", line 96, in get_model model = router.get_model(providers=providers, provider_options=provider_options) File "C:\Users\MJB\AppData\Local\Programs\Python\Python310\lib\site-packages\insightface\model_zoo\model_zoo.py", line 40, in get_model session = PickableInferenceSession(self.onnx_file, kwargs) File "C:\Users\MJB\AppData\Local\Programs\Python\Python310\lib\site-packages\insightface\model_zoo\model_zoo.py", line 25, in init super().init(model_path, kwargs) File "C:\Users\MJB\AppData\Local\Programs\Python\Python310\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 419, in init__ self._create_inference_session(providers, provider_options, disabled_optimizers) File "C:\Users\MJB\AppData\Local\Programs\Python\Python310\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 452, in _create_inference_session sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model) onnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from H:\AI\RealTimeFaceSwap\Updated Version\Deep-Live-Cam\models\inswapper_128.onnx failed:Protobuf parsing failed.

markbland82 commented 3 days ago

Had to use replacement file. Thanks!

ronitosan commented 1 day ago

What replacement file?

GhoulBoii commented 1 day ago

What replacement file?

https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx (in the readme as well)