Merge pull request #20494 from rogday:onnx_diagnostic_fix
authorrogday <s.e.a.98@yandex.ru>
Fri, 20 Aug 2021 14:43:47 +0000 (17:43 +0300)
committerGitHub <noreply@github.com>
Fri, 20 Aug 2021 14:43:47 +0000 (14:43 +0000)
commit6801dd043de53030a6f8e36893580951a20dd842
tree6db93873b2592c71e7093d56431ae798b9cb331d
parentbb5f33d13c608c51818ec31a9974d5c4ddcb1042
Merge pull request #20494 from rogday:onnx_diagnostic_fix

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
apps/model-diagnostics/model_diagnostics.cpp
modules/dnn/include/opencv2/dnn/layer_reg.private.hpp
modules/dnn/include/opencv2/dnn/utils/debug_utils.hpp [new file with mode: 0644]
modules/dnn/src/debug_utils.cpp [new file with mode: 0644]
modules/dnn/src/dnn.cpp
modules/dnn/src/dnn_common.hpp
modules/dnn/src/onnx/onnx_importer.cpp
modules/dnn/src/tensorflow/tf_importer.cpp
modules/dnn/test/test_tf_importer.cpp