You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我发现使用onnx转换后,输出是11个,不是代码里面的三个,而且我用shape 768 1344去转换,直接报错
Traceback (most recent call last):
File "onnx_exporter.py", line 231, in
check(args, dummy_input, check_onnx=True, check_trt=False)
File "onnx_exporter.py", line 126, in check
sess = rt.InferenceSession(args.out)
File "/home/tao/anaconda3/lib/python3.8/site-packages/onnxruntime/capi/session.py", line 195, in init
self._create_inference_session(providers, provider_options)
File "/home/tao/anaconda3/lib/python3.8/site-packages/onnxruntime/capi/session.py", line 205, in _create_inference_session
sess.initialize_session(providers or [], provider_options or [])
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Node (Concat_637) Op (Concat) [ShapeInferenceError] Can't merge shape info. Both source and target dimension have values but they differ. Source=49 Target=48 Dimension=2
我发现使用onnx转换后,输出是11个,不是代码里面的三个,而且我用shape 768 1344去转换,直接报错
Traceback (most recent call last):
File "onnx_exporter.py", line 231, in
check(args, dummy_input, check_onnx=True, check_trt=False)
File "onnx_exporter.py", line 126, in check
sess = rt.InferenceSession(args.out)
File "/home/tao/anaconda3/lib/python3.8/site-packages/onnxruntime/capi/session.py", line 195, in init
self._create_inference_session(providers, provider_options)
File "/home/tao/anaconda3/lib/python3.8/site-packages/onnxruntime/capi/session.py", line 205, in _create_inference_session
sess.initialize_session(providers or [], provider_options or [])
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Node (Concat_637) Op (Concat) [ShapeInferenceError] Can't merge shape info. Both source and target dimension have values but they differ. Source=49 Target=48 Dimension=2
这个是我在single_stage_ins 加了你介绍的代码后出现的,不加就不会报错,但输出就变成10个了,求教
The text was updated successfully, but these errors were encountered: