OS Platform and Distribution (e.g. Linux Ubuntu 16.04): ubuntu-22.04
ONNX version (e.g. 1.6): latest (upcoming 1.5.0)
Backend/Runtime version (e.g. ONNX Runtime 1.1, PyTorch 1.2): N/A
Provide a code snippet to reproduce your errors.
import onnx
model = onnx.load('model.onnx')
inferred = onnx.shape_inference.infer_shapes(model, strict_mode=True)
...
Notes
Since ONNX Model Zoo will deprecate these ancient models https://github.com/onnx/models/issues/616, we can also consider just remove this if the direct fix is difficult, because we have a correct newer model already (opset_version 12 instead of 10): ssd_mobilenet_v1_12.onnx.
Bug Report
Which model does this pertain to?
SSD-MobilenetV1: https://github.com/onnx/models/blob/main/vision/object_detection_segmentation/ssd-mobilenetv1/model/ssd_mobilenet_v1_10.onnx
Describe the bug
Failed with the latest onnx as:
after the enhancement from ONNX: https://github.com/onnx/onnx/pull/5488.
Reproduction instructions
System Information
OS Platform and Distribution (e.g. Linux Ubuntu 16.04): ubuntu-22.04 ONNX version (e.g. 1.6): latest (upcoming 1.5.0) Backend/Runtime version (e.g. ONNX Runtime 1.1, PyTorch 1.2): N/A
Provide a code snippet to reproduce your errors.
Notes
Since ONNX Model Zoo will deprecate these ancient models https://github.com/onnx/models/issues/616, we can also consider just remove this if the direct fix is difficult, because we have a correct newer model already (opset_version 12 instead of 10): ssd_mobilenet_v1_12.onnx.