[ONNXRuntimeError] : 7 : INVALID_PROTOBUF while trying to run hugging face repo in WSL = Windows Subsystem LINUX
I am trying to run Nymbo/Virtual-Try-On at main in my local server based on ubuntu, I had set it up, installed the libraries yet getting [ONNXRuntimeError] : 7 : INVALID_PROTOBUF.
Although I was able to run this repository successfully on google colab.
Error in detail:
python app.py
/home/ubuntu/VTON-env/lib/python3.10/site-packages/huggingface_hub/file_download.py:1142: FutureWarning: resume_download
is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True
.
warnings.warn(
The config attributes {âdecayâ: 0.9999, âinv_gammaâ: 1.0, âmin_decayâ: 0.0, âoptimization_stepâ: 37000, âpowerâ: 0.6666666666666666, âupdate_after_stepâ: 0, âuse_ema_warmupâ: False} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file.
Some weights of the model checkpoint were not used when initializing UNet2DConditionModel:
[âadd_embedding.linear_1.bias, add_embedding.linear_1.weight, add_embedding.linear_2.bias, add_embedding.linear_2.weightâ]
Traceback (most recent call last):
File â/home/ubuntu/Virtual-Try-On/app.pyâ, line 93, in
parsing_model = Parsing(0)
File â/home/ubuntu/Virtual-Try-On/preprocess/humanparsing/run_parsing.pyâ, line 20, in init
self.session = ort.InferenceSession(os.path.join(Path(file).absolute().parents[2].absolute(), âckpt/humanparsing/parsing_atr.onnxâ),
File â/home/ubuntu/VTON-env/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.pyâ, line 419, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File â/home/ubuntu/VTON-env/lib/python3.10/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 /home/ubuntu/Virtual-Try-On/ckpt/humanparsing/parsing_atr.onnx failed:Protobuf parsing failed.
I will be really thankful if anyone can help me resolve this error.