Error Const input blob for weights not found in function 'getConstBlob' in function readNetFromTensorFlow
terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.2) /home/karlo/OpenCV/modules/dnn/src/tensorflow/tf_importer.cpp:528: error: (-2:Unspecified error) Const input blob for weights not found in function 'getConstBlob'
Model was previously transformed with function optimize_for_inference.py and method was called using this declaration : cv::dnn::Net myNet = cv::dnn::readNetFromTensorflow("pnet_opencv.pb");
Network is an implementation of P-net from this paper https://kpzhang93.github.io/MTCNN_fac..., so there are none complex and custom operations.
Does anybody know what might be the problem?
if everything else fails, there's an opencv adapted MTCNN using caffe networks, that works out-of-the-box. (and another one here)