Repository navigation
dnn: faster ConvTranspose2 on CPU - #30396
Conversation
Run fp32 ConvTranspose2 as MLAS GEMM + col2im, with a CPU-dispatched direct kernel as the fallback. Adds ConvTranspose2 and SAM3 decoder perf tests.
|
Jetson Orin: |
abhishek-gola
left a comment
There was a problem hiding this comment.
The MLAS packing and dispatch are otherwise well structured, but the new path introduces a divide-by-zero for empty spatial tensors. Please handle zero-sized spatial shapes and add focused coverage before merge.
Note: This is an initial review generated by Codex on behalf of @abhishek-gola. Abhishek's final review is still pending.
Codex-reviewed[abhishek-gola]
|
Jetson Orin: |
|
Hm, "EfficientDet_int8::DNNTestNetwork::OCV/CPU" regression is stable. Could you take a look? |
|
@sanjayk9 Reminder about red CI. |
abhishek-gola
left a comment
There was a problem hiding this comment.
The empty-tensor handling and regression coverage resolve the previous correctness finding, and the non-power-of-two stride rounding fix is sound. No new code issue was found in this delta, and CI is green. The stable EfficientDet_int8 regression raised in the existing thread is still unexplained; please resolve that performance question before merge.
Note: This is an initial review generated by Codex on behalf of @abhishek-gola. Abhishek's final review is still pending.
Codex-reviewed[abhishek-gola]
|
@sanjayk9 @abhishek-gola Please take a look on int8 perf regression. |
@asmorkalov i dont see any regression for EfficientDet_int8 :
|
opencv_extra: opencv/opencv_extra#1442 (test models for the single-tap path, channel chunks, and groups that start inside a channel block)
Measured on an i9-14900KS, times in ms.
Whole decoder
* SAM3 does not run on 5.x; this column includes the Attention change from this PR.
Best of several interleaved rounds, measured on the first commit. The col2im commit leaves the SAM ConvTranspose layers within a few percent.
ConvTranspose layer
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.