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
30.93k stars 4.28k forks source link

Protobuf parsing failed - model fails #10

Closed Jordan-Bowman-Davis closed 9 months ago

Jordan-Bowman-Davis commented 9 months ago

The inswapper_128_fp16.onnx model is invalid. This can be checked with

import onnx
onnx_model = onnx.load("inswapper_128_fp16.onnx")
onnx.checker.check_model(onnx_model)

I solved this by adjusting faceswapper.py and just using the standard inswapper_128.onnx model here

hacksider commented 9 months ago

Let me check on this, the inswapper_128_fp16.onnx should be faster than the old one but I believe it's not downloading on your end (you can manually download it as well based on the instruction)

Thanks for the report though! Will check on this later when I get home.

Jordan-Bowman-Davis commented 9 months ago

I managed to get it working. Re-downloaded from here. Seems to be working, even though it does not pass the onnx check