doudou6050 2018-09-30 07:15
浏览 316

Tensorflow重新训练图像分类器

I just followed the documentation here Image Retraining

In step Using the Retrained Model I have a very correct estimate

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  

But if i try to use in this code :

tf-classifier by hybridgroup/gocv

i have a error :

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'

But if I use Tensorflow "Inception" model it works.

Do you have an idea ?

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 stable diffusion
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
    • ¥15 perl MISA分析p3_in脚本出错
    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿
    • ¥15 回答4f系统的像差计算