Closed 360Ibra closed 9 months ago
I have a same problem. have you solved that problem?
just like Traceback (most recent call last):
File "/home/zhengzb/mmdeploy/tools/deploy.py", line 335, in
main()
File "/home/zhengzb/mmdeploy/tools/deploy.py", line 259, in main
backend_files = to_backend(
File "/home/zhengzb/mmdeploy/mmdeploy/apis/core/pipeline_manager.py", line 356, in _wrap
return self.call_function(func_name_, *args, **kwargs)
File "/home/zhengzb/mmdeploy/mmdeploy/apis/core/pipeline_manager.py", line 326, in call_function
return self.call_function_local(func_name, *args, **kwargs)
File "/home/zhengzb/mmdeploy/mmdeploy/apis/core/pipeline_manager.py", line 275, in call_function_local
return pipe_caller(*args, **kwargs)
File "/home/zhengzb/mmdeploy/mmdeploy/apis/core/pipeline_manager.py", line 107, in call
ret = func(*args, **kwargs)
File "/home/zhengzb/mmdeploy/mmdeploy/apis/utils/utils.py", line 98, in to_backend
return backend_mgr.to_backend(
File "/home/zhengzb/mmdeploy/mmdeploy/backend/openvino/backend_manager.py", line 97, in to_backend
from_onnx(onnx_path, work_dir, input_info, output_names,
File "/home/zhengzb/mmdeploy/mmdeploy/backend/openvino/onnx2openvino.py", line 114, in from_onnx
mo_output = run(command, stdout=PIPE, stderr=PIPE, shell=True, check=True)
File "/home/zhengzb/download/yes/envs/mmdeploy/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'mo --input_model="rtmpose/word_dir/end2end.onnx" --output_dir="rtmpose/word_dir" --output="output" --input="input" --input_shape="[1, 3, 256, 192]" ' returned non-zero exit status 1.
Hey @BingoZZBZZ , Apologies for the late reply if you still haven't managed to fix it in my case it was an error on my behalf specifically when selecting the backend configuration for the model this is what fixed it for me I just changed the backend configuration to configs/mmpose/pose-detection_simcc_ncnn-fp16_static-256x192.py . When debugging the problem I was printing out the tensors and realized I was only receiving one when the expected was two so when I changed to this backend configuration it had two outputs for simcc x and y then when I tried printing again I was receiving two tensors and this solved it in my case.
Checklist
Describe the bug
I'm encountering a ValueError during the deployment process of my RTMPOSE model on GitHub. The error message specifically mentions 'not enough values to unpack (expected 2, got 1).' Despite searching for similar issues, I haven't found a solution. I would greatly appreciate assistance from anyone who can help me resolve this issue.
Reproduction
python ./tools/deploy.py \ /home/ibrahim/mmdeploy/configs/mmpose/pose-detection_ncnn_static-256x192.py \ /home/ibrahim/mmpose/work_dirs/rtmpose-t_8xb256-420e_coco-256x192/rtmpose-t_8xb256-420e_coco-256x192.py \ /home/ibrahim/mmpose/work_dirs/rtmpose-t_8xb256-420e_coco-256x192/epoch_1_publish-de0cee58_20240126.pth \ /home/ibrahim/Pictures/demo.jpg \ --test-img /home/ibrahim/Pictures/demo.jpg \ --work-dir /home/ibrahim/mmpose/work_dirs \ --device cuda:0 \ --log-level INFO \ --show \ --dump-info
Environment
Error traceback