未知的Blob输入数据到Caffe中的第0层 [英] Unknown blob input data to layer 0 in caffe

查看:66
本文介绍了未知的Blob输入数据到Caffe中的第0层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用我的Caffe原型时出现以下错误:

I am getting following error while using my caffe prototxt:

F0329 17:37:40.771555 24587 insert_splits.cpp:35] Unknown blob input data to layer 0
*** Check failure stack trace: ***

下面是我的caffe原型中的前2层:

The first 2 layers in my caffe prototxt is given below:

layers {
  name: "data"
  type: IMAGE_DATA
  top: "data"
  top: "label"
  include {
    phase: TRAIN
  }
  image_data_param {
    source: "train2.txt"
    batch_size: 100
    new_height: 28
    new_width: 28
    is_color: false
  }
}
layers {
  name: "conv1"
  type: CONVOLUTION
  bottom: "data"
  top: "conv1"
  blobs_lr: 1
  blobs_lr: 3
  convolution_param {
    num_output: 8
    kernel_size: 9
    stride: 1
    weight_filler { type: "xavier" }
    bias_filler { type: "constant" }
  }
}

相同的可能原因是什么?

What could be the possible reason for the same ?

推荐答案

t似乎是您的 IMAGE_DATA 层仅在 Train 阶段定义。因此,未在 TEST 阶段定义 data label 斑点。我怀疑您在求解器构建火车相网时看不到任何错误,只有在构建测试相网时才出现错误。

t seems like your IMAGE_DATA layer is only defined for TRAIN phase. Thus blobs data and label are not defined for TEST phase. I suspect you see no error when the solver builds the train phase net, and only when test phase net is built then the error appears.

这篇关于未知的Blob输入数据到Caffe中的第0层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆