dnn(onnx): test data for quantized layers support pr #28543#1319
dnn(onnx): test data for quantized layers support pr #28543#1319shahkarnav115-beep wants to merge 4 commits intoopencv:5.xfrom
Conversation
asmorkalov
left a comment
There was a problem hiding this comment.
- Please use existing image from OpenCV Extra as test image. No need to add a new one.
- Please add the code you used to generate ONNX models with https://github.com/opencv/opencv_extra/blob/4.x/testdata/dnn/onnx/generate_quantized_onnx_models.py. Or, better, reuse existing ONNX files.
|
@asmorkalov I am working on the code part to generate the given .onnx files, I will commit the changes shortly. |
|
@asmorkalov I have added code to generate the 4 specific models (single_qgemm, single_qlinearadd, single_qlinearconv, single_qpool). The mobilenetv2-12-qdq.onn was downloaded from huggingface, link: https://huggingface.co/onnxmodelzoo/mobilenetv2-12/tree/main |
|
No need to put imagenet_classes.txt into repo. Please remove classes file loading and add assertion with class index check. There are several classification tests in OpenCV, please use the same approach for result validation as other tests. |
|
Please do not put |
The pr has 6 files with one mobilenetv2-12-qdq.onnx, it was added to check if now qdq model runs on new engine or not.
Related: opencv/opencv#28543