【问题标题】:How to configure Caffe deploy.prototxt?如何配置 Caffe deploy.prototxt?
【发布时间】:2015-12-30 22:59:28
【问题描述】:

我在这个question 上遵循了@ypx 的说明。现在我想预测一些图片。所以我正在使用:

MODEL_FILE = '/tmp/deploy.prototxt'
PRETRAINED = '/tmp/ck.caffemodel'
IMAGE_FILE = '/tmp/img.png'

net = caffe.Classifier(MODEL_FILE, PRETRAINED, image_dims=(200, 200))

但我收到了这条消息:

I1002 13:49:24.331648 28172 net.cpp:435] Input 0 -> data
I1002 13:49:24.331667 28172 layer_factory.hpp:76] Creating layer data
I1002 13:49:24.332259 28172 net.cpp:110] Creating Layer data
F1002 13:49:24.332272 28172 net.cpp:427] Top blob 'data' produced by multiple sources.
*** Check failure stack trace: ***

我认为我的问题出在 deploy.prototxt 文件上。 This is my deploy.prototxt 和 This is my train.prototxt

谁能帮我配置我的部署文件?

【问题讨论】:

  • prototxt 文件的链接现在是死链接。

标签: image-processing neural-network caffe conv-neural-network


【解决方案1】:

您应该从部署网络中删除训练输入层(第 8--21 行)。

也就是说,丢弃这个:

layer {
  name: "data"
  type: "Data"
  top: "data"
  top: "label"
  transform_param {
    scale: 0.00392156862745
  }
  data_param {
    source: "/tmp/db"
    batch_size: 64
    backend: LMDB
  }
}

【讨论】:

    猜你喜欢
    • 2016-04-17
    • 2016-08-28
    • 1970-01-01
    • 2023-03-19
    • 2015-11-21
    • 2017-03-20
    • 1970-01-01
    • 1970-01-01
    • 2016-09-01
    相关资源
    最近更新 更多