New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error occurred when executing Load Face Swap Model (mtb) [bug] #95
Comments
Hi please post logs in the section called Console output in the issue template. The error is pretty clear: INVALID_PROTOBUF There is a growing raise of issues here about onnx unfortunately none provide information useful to help sort it out. In your case I think it's just a protobuf compatibility issue. |
I had the same issue, I was able to work around that on my own. If you use Windows, first make sure you installed required dependencies from python -m venv venv
.\venv\Scripts\pip.exe install -r .\custom_nodes\comfy_mtb\reqs_windows.txt Be aware that insightface removed their inswapper_128.onnx model from releases, and maintainer didn't update download URLs. File created is just a plain text file with "Not Found" or something like that. To get it fixed, you must find and download Same story with Then I was successful with using both As for I also found some additional PTH files to download, but I'm not sure if they can be useful or not. |
I'm having same issue. how do you install dependencies from reqs_windows.txt? |
Where to install the buffalo file? It is reading the inswapper_128.onx now but not reading the Buffalo file. I am not a coder so no idea what error it is and cannot find anything on google about how to fix this. |
@Famekrafts you probably did not run the install. There are issues with it that will get fixed this week so in the meantime: Download anthelopev2 from here: https://drive.google.com/uc?id=18wEUfMNohBJ4K3Ly5wpTejPfDzp-8fI8 And extract it to "ComfyUI/models/insightface/models/antelopev2" like so: |
Ok Mel. I will wait for the issues to get fixed. Till then I am using photoshop and image to image to swap faces. |
Describe the bug
I am getting an error when using Load Face Swap Model (mtb) using the inswapper_128.onnx model.
[ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from G:\ComfyUI_windows_portable\ComfyUI\models\insightface\inswapper_128.onnx failed:Protobuf parsing failed.
File "G:\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "G:\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "G:\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_mtb\nodes\faceswap.py", line 98, in load_model
onnxruntime.InferenceSession(
File "G:\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "G:\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 424, in _create_inference_session
sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
Any assistance would be appreciated
Reproduction
I have not been able to stop the behavior other than removing the node from the workflow
Expected behavior
No response
Operating System
Windows (Default)
Comfy Mode
Comfy Portable (embed) (Default)
Console output
Additional context
No response
The text was updated successfully, but these errors were encountered: