작성
·
153
0
import cv2 import matplotlib.pyplot as plt %matplotlib inline cv_net = cv2.dnn.readNetFromTensorflow('./train_pet/training/frozen_inference_graph.pb', './train_pet/config/graph.pbtxt')
--------------------------------------------------------------------------- error Traceback (most recent call last) <ipython-input-10-506cb9ca0c40> in <module> 4 5 cv_net = cv2.dnn.readNetFromTensorflow('./train_pet/training/frozen_inference_graph.pb', ----> 6 './train_pet/config/graph.pbtxt') error: OpenCV(4.4.0) /tmp/pip-req-build-kne9u3r2/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:553: error: (-2:Unspecified error) Input layer not found: FeatureExtractor/InceptionV2/Conv2d_1a_7x7/depthwise_weights in function 'connect'
답변 1
0
안녕하십니까,
정확한 원인은 모르지만, graph.pbtxt 생성시 뭔가 잘못 만들어진것 같습니다. graph.pbtxt만드는게 쉽지 않습니다. 어렵지만 다시한번 강의대로 따라해 보시는게 어떨지요?
감사합니다.