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 DIFY API Endpoint 问题。
    • ¥20 sub地址DHCP问题
    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办
    • ¥15 kylin启动报错log4j类冲突