Unknown bottom blob 'data' (layer 'conv1', bottom index 0)
来源:互联网 发布:金凯度 知乎 编辑:程序博客网 时间:2024/05/16 02:52
caffe训练的时候,出现错误Unknown bottom blob 'data' (layer 'conv1', bottom index 0)
原因1:
data layer中的top名称与conv1 bottom的名称不一致。
比如:(下方红色字内容应该统一,否则报错)
name: "Test_net"layer { name: "data" type: "HDF5Data" top: "Inputdata" top: "label" hdf5_data_param { source:"~/*_hdf5_train.txt" batch_size: 32 } include{phase: TRAIN}}layer { name: "data2" type: "HDF5Data" top: "Inputdata" top: "label" hdf5_data_param { source:"~/*_hdf5_test.txt" batch_size: 32 } include{phase: TEST}}layer { name: "conv1" type: "convolution" bottom: "data" top: "conv1" param {lr_mult:1} param {lr_mult:2} convolution_param{ num_output: 20 kernel_h: 1 kernel_w: 5 stride_h: 1 stride_w: 1 weight_filler { type: "xavier" } bias_filler { type: "xavier" } }}
原因2:
没有单独的测试数据,在网络中却使用了phrase:TRAIN 或TEST的定义。
比如:(不该有下方红色字的部分,否则报错)
name: "Test_net"layer { name: "data" type: "HDF5Data" top: "data" top: "label" hdf5_data_param { source:"~/*_hdf5_train.txt" batch_size: 32 } include{phase: TRAIN}}layer { name: "conv1" type: "convolution" bottom: "data" top: "conv1" param {lr_mult:1} param {lr_mult:2} convolution_param{ num_output: 20 kernel_h: 1 kernel_w: 5 stride_h: 1 stride_w: 1 weight_filler { type: "xavier" } bias_filler { type: "xavier" } }}
阅读全文
0 0
- Unknown bottom blob 'data' (layer 'conv1', bottom index 0)
- caffe出错:Unknown bottom blob 'data' (layer 'conv1', bottom index 0)
- caffe中 insert_splits Unknown bottom blob
- bottom
- caffe源码分析 vector<Blob<Dtype>*>& bottom
- caffe源码分析 vector<Blob<Dtype>*>& bottom
- Bottom Sheet
- ubuntu bottom
- margin-bottom与bottom不同
- padding-bottom和 margin-bottom
- position top bottom left right height z-index
- smooth_L1_loss_layer.cpp:28] Check failed: bottom[0]->channels() == bottom[1]->channels() (12 vs. 84
- firefox 下样式bottom
- Flex Bottom Bleeding DataGrid
- bottom half执行
- IE8 margin-bottom 不起作用
- android-tabhost-bottom-layout
- Bottom TabBar control
- div布局
- 【JavaScript学习】面向对象的程序设计(6):原型式继承
- 基于github或者码云平台的使用git提交,下载,更新项目
- ThinkPHP 配置数据库文件
- Android 开发者的进阶之路
- Unknown bottom blob 'data' (layer 'conv1', bottom index 0)
- concurrent学习笔记
- TCP协议中的三次握手和四次挥手
- 转载sql中的group by 用法解析
- iOS-动态库创建(详解)
- Struts2拦截器学习
- 心灵毒药
- ZXing库的使用及相应的修改
- POI 颜色Color