Unverified Commit 0e006a9f authored by Bowen Bao's avatar Bowen Bao Committed by GitHub
Browse files

[ONNX] Rephrase ONNX RoiAlign warning for aligned=True (#6704)



* Rephrase ONNX RoiAlign warning for aligned=True

* add comma
Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
parent 71885b0f
......@@ -45,8 +45,8 @@ def _register_custom_op():
rois = _process_rois_for_roi_align(g, rois)
if aligned:
warnings.warn(
"ROIAlign with aligned=True is not supported in ONNX, but is supported in opset 16. "
"Please export with opset 16 or higher to use aligned=False."
"ROIAlign with aligned=True is only supported in opset >= 16. "
"Please export with opset 16 or higher, or use aligned=False."
)
sampling_ratio = _process_sampling_ratio_for_roi_align(g, sampling_ratio)
return g.op(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment