Skip to content

dnn: test data for depthwise QLinearConv (opencv #28798)#1360

Open
5usu wants to merge 1 commit into
opencv:5.xfrom
5usu:fix/28798-yunet-int8-objbranch
Open

dnn: test data for depthwise QLinearConv (opencv #28798)#1360
5usu wants to merge 1 commit into
opencv:5.xfrom
5usu:fix/28798-yunet-int8-objbranch

Conversation

@5usu
Copy link
Copy Markdown

@5usu 5usu commented May 9, 2026

Companion PR for opencv/opencv#28920.

Adds three small fixtures (~9 KB total) for the depthwise QLinearConv regression test:

  • testdata/dnn/onnx/models/quantized_depthwise_conv_int8_weights.onnx (629 B)
  • testdata/dnn/onnx/data/input_quantized_depthwise_conv_int8_weights.npy (4.2 KB)
  • testdata/dnn/onnx/data/output_quantized_depthwise_conv_int8_weights.npy (4.2 KB)

The model is a single 16-group, 1-channel-per-group, 3×3 depthwise QLinearConv with non-zero x_zp — the minimal shape that exercises the Kg<K0 code path fixed in the OpenCV PR. Reference output produced by onnxruntime.

Branch name matches the OpenCV PR per the contribution guide.

@asmorkalov
Copy link
Copy Markdown
Contributor

@5usu Thanks for the contribution! How do you generated the model file and reference input/output tensors? If you do it with torch/onnx-script or similar tool, please add you code to one of generate_ scripts in https://github.com/opencv/opencv_extra/tree/5.x/testdata/dnn/onnx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants