Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
fix ONNXImporter diagnostic mode layer registration issue#20494
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| * @brief Skip model import after diagnostic run in readNet() functions. | ||
| * @param[in] skip Indicates whether to skip the import. | ||
| */ | ||
| CV_EXPORTSvoidskipModelImport(bool skip); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Why do we need that as part of public API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This function is used intest_tf_importer.cpp and prevents tests of diagnostic mode from failing. I agree that users probably shouldn't care about this. I couldn't move the definition todnn_common.hpp because of undefined reference error(implementation was placed indnn.cpp). Can you suggest a better place for it or how to get around this problem?
As for the contents oflayer_reg.private.hpp, I think removing it would be a breaking change, and so if someone is using it, they should be able to use it thread-safely.
…f DNN_DIAGNOSTICS_RUN between onnx and tf importers
60b1d5d to3960253Compareasmorkalov commentedAug 20, 2021 • edited by alalek
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by alalek
Uh oh!
There was an error while loading.Please reload this page.
alalek left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks good to me! Thank you 👍
rogday commentedAug 20, 2021
I found an error in TF logic. |
fix ONNXImporter diagnostic mode layer registration issue* fix layer registration, thread unsafe access and align the behavior of DNN_DIAGNOSTICS_RUN between onnx and tf importers* move skipModelInput* print all missing layers* address TF issue
In diagnostic mode it showed that some layer isn't supported even if it was registered beforehand.
Pull Request Readiness Checklist
See details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.