WARNING: ONNX Optimizer has been moved to https://github.com/onnx/optimizer.
All further enhancements and fixes to optimizers will be done in this new repo.
The optimizer code in onnx/onnx repo will be removed in 1.9 release.
Traceback (most recent call last):
File "detect_imgs_onnx.py", line 59, in
predictor = backend.prepare(predictor, device="CPU") # default CPU
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/caffe2/python/onnx/backend.py", line 708, in prepare
init_net, predict_net = cls._onnx_model_to_caffe2_net(model, device, opset_version, False)
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/caffe2/python/onnx/backend.py", line 875, in _onnx_model_to_caffe2_net
onnx_model = onnx.utils.polish_model(onnx_model)
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/onnx/utils.py", line 24, in polish_model
model = onnx.optimizer.optimize(model)
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/onnx/optimizer.py", line 55, in optimize
optimized_model_str = C.optimize(model_str, passes)
IndexError: Input 405 is undefined!
WARNING: ONNX Optimizer has been moved to https://github.com/onnx/optimizer. All further enhancements and fixes to optimizers will be done in this new repo. The optimizer code in onnx/onnx repo will be removed in 1.9 release.
Traceback (most recent call last): File "detect_imgs_onnx.py", line 59, in
predictor = backend.prepare(predictor, device="CPU") # default CPU
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/caffe2/python/onnx/backend.py", line 708, in prepare
init_net, predict_net = cls._onnx_model_to_caffe2_net(model, device, opset_version, False)
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/caffe2/python/onnx/backend.py", line 875, in _onnx_model_to_caffe2_net
onnx_model = onnx.utils.polish_model(onnx_model)
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/onnx/utils.py", line 24, in polish_model
model = onnx.optimizer.optimize(model)
File "/home/tao/anaconda3/envs/lama/lib/python3.8/site-packages/onnx/optimizer.py", line 55, in optimize
optimized_model_str = C.optimize(model_str, passes)
IndexError: Input 405 is undefined!