quanhua92 / human-pose-estimation-opencv

Perform Human Pose Estimation in OpenCV Using OpenPose MobileNet
Apache License 2.0
345 stars 144 forks source link

MobileNetV2 pb #9

Open xiangdeyizhang opened 5 years ago

xiangdeyizhang commented 5 years ago

当我使用 ildoonet/tf-pose-estimation 中提供的mobilenet_v2_small 模型时,有如下错误

File "openpose.py", line 29, in net = cv.dnn.readNetFromTensorflow("graph_opt.pb") cv2.error: OpenCV(3.4.4) /io/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:535: error: (-2:Unspecified error) Input [strided_slice] for node [base/layer_14/output/upsample] not found in function 'getConstBlob'

请问这个是什么原因呢,谢谢!!!

Guo-king commented 5 years ago

I got the same error. Has anyone solved this problem?

quanhua92 commented 5 years ago

I think we need to convert to ONNX with https://github.com/onnx/tensorflow-onnx then use OpenCV readNetFromONNX. However, I don't know to convert the graph probably.