Tensorflow' pb and pbtxt files don't work with OpenCV after retraining MobileNet SSD V1 COCO

柔情痞子 提交于 2019-12-02 07:13:48

The error was caused by the wrong input .pbtxt file passed into the function readNetFromTensorflow because the .pbtxt has to be geneated by tf_text_graph_ssd.py as describe here:

Run this script to get a text graph of SSD model from TensorFlow Object Detection API. Then pass it with .pb file to cv::dnn::readNetFromTensorflow function.

For other models such as faster r-cnn and mask r-cnn, there are also corresponding scripts.

PS: I just found there is a very good official tutorial here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!