Tensorflow重新训练图像分类器

时间:2018-09-30 07:15:51

标签: tensorflow go deep-learning

我只是按照文档here Image Retraining

在步骤使用经过训练的模型中,我有一个非常正确的估算值

python label_image.py --graph=graph.pb --labels=labels.pb --input_layer=Placeholder --output_layer=final_result --image=../color/blue/blue25.jpg
2018-09-30 10:57:53.153552: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
blue 0.9326643
red 0.06733578  

但是如果我尝试在此代码中使用:

tf-classifier by hybridgroup/gocv

我有一个错误:

libc++abi.dylib: terminating with uncaught exception of type cv::Exception: OpenCV(3.4.2) /tmp/opencv-20180704-99354-1kt9ska/opencv-3.4.2/modules/dnn/src/dnn.cpp:2270: error: (-204:Requested object was not found) Requested blob "input" not found in function 'setInput'

但是,如果我使用Tensorflow“ Inception”模型,它就可以工作。

你有个主意吗?

0 个答案:

没有答案