feat(pnnx): relax F_interpolate_onnx Resize pattern matching#6651
Open
kalcohol wants to merge 1 commit intoTencent:masterfrom
Open
feat(pnnx): relax F_interpolate_onnx Resize pattern matching#6651kalcohol wants to merge 1 commit intoTencent:masterfrom
kalcohol wants to merge 1 commit intoTencent:masterfrom
Conversation
F_interpolate_onnx and F_interpolate_onnx_dynamic rejected Resize nodes with non-empty ROI or nearest_mode=round_prefer_floor, which are common in opset 11-13 ONNX models from Caffe2ONNX, ncnn caffe2onnx, etc. Accept: - Non-empty identity ROI [1,1,...,1] (fused by fuse_constant_as_attribute) - nearest_mode round_prefer_floor (maps to ncnn nearest default behavior) Verified on 5 models: - picodet_l_640_coco.sim - pp_human_seg_mobile_sim - 59_crop_512128_opset11 - gaomei_od_indoor_sf_60ms_opset13_fromcaffe (Resize part, ArgMax separate) - deeplabv3.sim.fix (Resize part, ArgMax separate) Co-developed with GLM-5-Turbo (ZhipuAI API, annual max subscription), orchestrated via OpenCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
F_interpolate_onnx and F_interpolate_onnx_dynamic rejected Resize nodes with non-empty ROI or nearest_mode=round_prefer_floor, which are common in opset 11-13 ONNX models from Caffe2ONNX, ncnn caffe2onnx, etc.
Accept:
Verified on 5 models:
Co-developed with GLM-5-Turbo (ZhipuAI API, annual max subscription), orchestrated via OpenCode