caffe prototxt 编写注意

https://github.com/BVLC/caffe/blob/dev/src/caffe/proto/caffe.proto

这个是要参考的,里面有各种参数的说明。

 
layer {
  name: "car_detector"
  type: "Data"
  top: "data"
  top: "label"
  include {
    phase: TRAIN
  }
  transform_param {
    mean_file: "../train_set/car_detector_mean.binaryproto"
    scale: 0.00390625
  }
  data_param {
    source: "../train_set"
    batch_size: 64
    backend: LMDB
    mirror: true
  }
}
这个里面,mean_file 和 scale都要放在transform_param中,虽然caffe.proto中也有规定data_param中也可以,但是实测不可以,也许是transform_param的存在导致失败。

以防万一,以后都统一放在tran。。。中吧。


src/caffe/proto/caffe.proto


You can also write your own solver - check out caffe/src/caffe/solver.cpp for details.


To convert the data, caffe/tools/extra/ may contain multiple scripts that are useful.




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值