mattyamonaca / layerdivider

A tool to divide a single illustration into a layered structure.
MIT License
695 stars 55 forks source link

Protobuf parsing failed. #49

Open magicwang1111 opened 1 year ago

magicwang1111 commented 1 year ago

(layerdivider) [wangxi@v100-2 layerdivider]$ python demo.py --share Traceback (most recent call last): File "/mnt/data1/wangxi/layerdivider/demo.py", line 6, in from ldivider.ld_processor import get_base, get_normal_layer, get_composite_layer, get_seg_base File "/mnt/data1/wangxi/layerdivider/ldivider/ld_processor.py", line 10, in from ldivider.bg_remover import get_foreground File "/mnt/data1/wangxi/layerdivider/ldivider/bg_remover.py", line 33, in rmbg_model = rt.InferenceSession(model_path, providers=providers) File "/home/wangxi/miniconda3/envs/layerdivider/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/wangxi/miniconda3/envs/layerdivider/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 /mnt/data1/wangxi/.cache/huggingface/hub/models--skytnt--anime-seg/ failed:Protobuf parsing failed. (layerdivider) [wangxi@v100-2 layerdivider]$ python demo.py --share Traceback (most recent call last): File "/mnt/data1/wangxi/layerdivider/demo.py", line 6, in from ldivider.ld_processor import get_base, get_normal_layer, get_composite_layer, get_seg_base File "/mnt/data1/wangxi/layerdivider/ldivider/ld_processor.py", line 10, in from ldivider.bg_remover import get_foreground File "/mnt/data1/wangxi/layerdivider/ldivider/bg_remover.py", line 33, in rmbg_model = rt.InferenceSession(model_path, providers=providers) File "/home/wangxi/miniconda3/envs/layerdivider/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/wangxi/miniconda3/envs/layerdivider/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 /mnt/data1/wangxi/.cache/huggingface/hub/models--skytnt--anime-seg/ failed:Protobuf parsing failed.