Error reading facenet model with dnn module

asked 2019-06-14 11:23:30 -0500


I'm working on a face recognition project with opencv. I use pretrained model for facenet from this github (model 20180402-114759) and load with readNetFromTensorflow. All I did is download the model and run those codes:

detector = cv2.dnn.readNetFromTensorflow(20180402-114759.pb)

However, I got error: error: (-2:Unspecified error) Input layer not found: image_batch in function 'connect'

Have anyone had this problem before? What did you do to solve it?


edit retag flag offensive close merge delete