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_face_detection_alignment/paper/spl.pdf, so there are none complex and custom operations.
Does anybody know what might be the problem?