Skip to content

Enhance resize

Houssem ROUIS requested to merge enhance_resize into dev

Context

This merge request finalizes the implementation of the Resize operator in aidge_backend_cpu, ensuring full support for all attributes and inputs across all ONNX versions (up to OPSET 19).
It resolves aidge_backend_cpu#53, improving ONNX models compatibility.

What’s New

This MR brings the Resize operator to full ONNX compliance by:

  • Adding the interpolation mode: cubic
  • Supporting the ROI input:
    • Enables region-specific resizing by defining a box in the input and output.
    • Used exclusively with tf_crop_and_resize mode.
  • Adding support for additional ONNX attributes:
    • antialias: Applies a low-pass filter when downscaling (for linear and cubic modes).
    • cubic_coeff_a: Adjusts the cubic interpolation sharpness.
    • exclude_outside: Ignores values outside the interpolation area when true.
    • extrapolation_value: Fills output regions when input is out of bounds.
  • 🧪 Expanding test coverage to validate all new attributes and edge cases.
Edited by Houssem ROUIS

Merge request reports

Loading