Frequently Asked Questions (FAQ)#
AMD Quark for ONNX#
Model Issues#
Issue 1:
Error of “ValueError:Message onnx.ModelProto exceeds maximum protobuf size of 2GB”
Solution:
This error is caused by the input model size exceeding 2GB. Set optimize_model=False
and use_external_data_format=True
.
Quantization Issues#
Issue 1:
Error of “onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Reshape node.”
Solution:
For networks with an ROI head, such as Mask R-CNN or Faster R-CNN, quantization errors might arise if ROIs are not generated in the network. Use quark.onnx.PowerOfTwoMethod.MinMSE or quark.onnx.CalibrationMethod.Percentile quantization and perform inference with real data.