Ask Your Question

Revision history [back]

readNet fails

Hi,

I'm trying to import https://github.com/cmusatyalab/openface model in opencv But I have this error

Message=OpenCV(4.1.0-dev) G:\Lib\opencv\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp:908: error: (-215:Assertion failed) nodesMapIt != nodesMap.end() in function 'cv::dnn::dnn4_v20190430::sortByExecutionOrder' Source=openface.py StackTrace: File "openface.py", line 15, in <module> netFace = cv.dnn.readNet(path+"frozen_inference_graph_face.pb")

model is here

Stack trace :

>   opencv_dnn410d.dll!cv::dnn::dnn4_v20190430::sortByExecutionOrder(opencv_tensorflow::GraphDef & net) Line 908    C++
    opencv_dnn410d.dll!cv::dnn::dnn4_v20190430::`anonymous namespace'::TFImporter::populateNet(cv::dnn::dnn4_v20190430::Net dstNet) Line 719    C++
    opencv_dnn410d.dll!cv::dnn::dnn4_v20190430::readNetFromTensorflow(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & model, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & config) Line 1993    C++
    opencv_dnn410d.dll!cv::dnn::dnn4_v20190430::readNet(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & _model, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & _config, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & _framework) Line 3987   C++
    ANN_Regression.exe!main() Line 120  C++

and inpName value is "BoxPredictor_0/strided_slice"

image description

readNet fails

Hi,

I'm trying to import https://github.com/cmusatyalab/openface https://github.com/yeephycho/tensorflow-face-detection model in opencv But I have this error

Message=OpenCV(4.1.0-dev) G:\Lib\opencv\modules\dnn\src\tensorflow\tf_graph_simplifier.cpp:908: error: (-215:Assertion failed) nodesMapIt != nodesMap.end() in function 'cv::dnn::dnn4_v20190430::sortByExecutionOrder' Source=openface.py StackTrace: File "openface.py", line 15, in <module> netFace = cv.dnn.readNet(path+"frozen_inference_graph_face.pb")

model is here

Stack trace :

>   opencv_dnn410d.dll!cv::dnn::dnn4_v20190430::sortByExecutionOrder(opencv_tensorflow::GraphDef & net) Line 908    C++
    opencv_dnn410d.dll!cv::dnn::dnn4_v20190430::`anonymous namespace'::TFImporter::populateNet(cv::dnn::dnn4_v20190430::Net dstNet) Line 719    C++
    opencv_dnn410d.dll!cv::dnn::dnn4_v20190430::readNetFromTensorflow(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & model, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & config) Line 1993    C++
    opencv_dnn410d.dll!cv::dnn::dnn4_v20190430::readNet(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & _model, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & _config, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & _framework) Line 3987   C++
    ANN_Regression.exe!main() Line 120  C++

and inpName value is "BoxPredictor_0/strided_slice"

image description