Skip to content
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

Issue when running inference : Protobuf parsing failed. #3

Open
moda20 opened this issue Jun 19, 2024 · 7 comments
Open

Issue when running inference : Protobuf parsing failed. #3

moda20 opened this issue Jun 19, 2024 · 7 comments

Comments

@moda20
Copy link

moda20 commented Jun 19, 2024

Hi whenever I am running the inference I am getting this error :

Load model from ./pretrained_models/face_analysis/models/1k3d68.onnx failed:Protobuf parsing failed.

I want to know if this is related to the model size as i only have 8GB of VRAM ?
if not is there a way to fix it ?

@rvsh2
Copy link

rvsh2 commented Jun 21, 2024

Got the same issue but I have 24gb VRAM. Used docker. How to fix?

@moda20
Copy link
Author

moda20 commented Jun 22, 2024

@rvsh2 i created the docker container for this repo, if you used that it might be the source of our problem

@chenav
Copy link

chenav commented Jul 20, 2024

same problem in a docker container. Same error, impossible to run. at all

@TemporalLabsLLC-SOL
Copy link

TemporalLabsLLC-SOL commented Aug 19, 2024

This is because the models inside '/pretrained_models` folder are outdated when pulling from what this repo was originally built with.

FOR NOW : https://huggingface.co/fudan-generative-ai/hallo/tree/main and get the latest to replace manually.

It works.

@moda20
Copy link
Author

moda20 commented Aug 27, 2024

@TemporalLabsLLC-SOL can you share a full example of how to use the new models ? they are not total replacement as i just tested them and i am getting the same error :

onnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from ./pretrained_models/face_analysis/models/1k3d68.onnx failed:Protobuf parsing failed. 

@bensonbs
Copy link

bensonbs commented Sep 1, 2024

For me use command

  1. apt-get install git-lfs
  2. git lfs install
  3. git lfs clone https://huggingface.co/fudan-generative-ai/hallo pretrained_models

to fix it.

@moda20
Copy link
Author

moda20 commented Sep 10, 2024

@bensonbs how much VRAM you have ?mine iss 8GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants