Error Const input blob for weights not found in function 'getConstBlob' in function readNetFromTensorFlow

asked 2019-03-11 10:26:05 -0600

Tuc gravatar image

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?

edit retag flag offensive close merge delete

Comments

if everything else fails, there's an opencv adapted MTCNN using caffe networks, that works out-of-the-box. (and another one here)

berak gravatar imageberak ( 2019-03-12 05:19:54 -0600 )edit