I follow TensorFlow Object Detection API and have been trained model.
I use ssd_mobilenet_v1_pets.config and revise num_classes, some path.
Then I reference Wiki and use tf_text_graph_ssd.py script to generate a text graph representation. Final I try run cvNet = cv.dnn.readNetFromTensorflow("frozen_inference_graph.pb", "graph.pbtxt")
,but result show error:
OpenCV Error: Unspecified error (Const input blob for weights not found) in cv::dnn::experimental_dnn_v2::'anonymous-namespace'::TFImporter::getConstBlob, file C:\ci\opencv_1512684736357\work\modules\dnn\src\tensorflow\tf_importer.cpp, line 555 Traceback (most recent call last): File "~\object-detection.py", line 4, in <module> cvNet = cv.dnn.readNetFromTensorflow("frozen_inference_graph.pb", "graph.pbtxt") cv2.error: C:\ci\opencv_1512684736357\work\modules\dnn\src\tensorflow\tf_importer.cpp:555: error: (-2) Const input blob for weights not found in function cv::dnn::experimental_dnn_v2::`anonymous-namespace'::TFImporter::getConstBlob
My trained config file and result link
Any suggestions how to make my model work in OpenCV?