Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ONNX conformance test results #21078

Open
27 of 48 tasks
rogday opened this issue Nov 18, 2021 · 4 comments
Open
27 of 48 tasks

ONNX conformance test results #21078

rogday opened this issue Nov 18, 2021 · 4 comments
Assignees
Labels
bug category: dnn (onnx) ONNX suport issues in DNN module effort: ∞ Do not start this alone. You can discuss / improve existed proposals. feature
Milestone

Comments

@rogday
Copy link
Member

rogday commented Nov 18, 2021

System information (version)
  • OpenCV => 4.5.4
  • Operating System / Platform => Linux
  • Compiler => g++ 8.4.0
Detailed description

I ran ONNX conformance tests from official repo, and the found the following issues:

Steps to reproduce

Clone ONNX repo, clone my branch, fix paths in the code and run opencv_test_dnn.

Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc
@fengyuentau
Copy link
Member

fengyuentau commented Mar 14, 2023

@asmorkalov
Copy link
Contributor

@fengyuentau I believe "Gemm B blob is supported only as const" is complete?

@fengyuentau
Copy link
Member

@fengyuentau I believe "Gemm B blob is supported only as const" is complete?

No, B can be either const or variable. See

if (const_B) {
CV_CheckGT(packed_B.size(), static_cast<size_t>(0), "DNN/Gemm: constant B is not pre-packed");
fastGemm(trans_a, M, N, K, alpha, A.ptr<const float>(), na, packed_B.data(), 1.f, Y.ptr<float>(), N, opt);
} else {
fastGemmBatch(trans_a, trans_b, alpha, A, inputs[1], 1.f, Y, opt);
}

@asmorkalov
Copy link
Contributor

Related: #25442

asmorkalov pushed a commit that referenced this issue Apr 22, 2024
…reduce

Comments for parser denylist #25465

Relates to #21078

This PR is designed to figure out why the test in `test_onnx_conformance_layer_parser_denylist.inl.hpp` fails. Currently, conformance tests do not pass for the following reasons:

1. BOOL, INT(8, 16) types are not supported **(MAJOR)**
2. Some layers can not be created due to various reasons  **(MAJOR)**
3. Shape mismatches while creating layers  **(MAJOR)**
4. Some layers are expected to support dynamic parameter initialization  **(MAJOR)**
5. Some layers are expected to receive weight as inputs (no idea why that is needed)   **(MAJOR)**
6. Other unknown reasons

 **(MAJOR)** - These are the most frequently encountered reasons for test failure.

The style of comments is not consistent everywhere. Let's keep this PR without merging, just for our reference.
A couple of tests are commented on since they have passed on the MacOS platform.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category: dnn (onnx) ONNX suport issues in DNN module effort: ∞ Do not start this alone. You can discuss / improve existed proposals. feature
Projects
Status: In Progress
Development

No branches or pull requests

5 participants