【发布时间】:2017-01-17 14:51:50
【问题描述】:
我正准备使用 hdf5 文件中的数据在 Caffe 中进行训练。该文件还包含训练集的每像素平均数据/图像。在'train_val.prototxt' 部分中的输入数据层文件'transform_params' 中,可以使用mean_file 来规范化数据,通常采用二进制原型格式,例如ImageNet Caffe tutorial example:
transform_param {
mirror: true
crop_size: 227
mean_file: "data/ilsvrc12/imagenet_mean.binaryproto"
}
对于每个通道的标准化,可以使用 mean_value 代替 mean_file。
但是有没有办法直接从我的数据库(这里是 hdf5)文件中使用平均图像数据?
我已经从 hdf5 提取平均值到一个 numpy 文件,但不确定它是否可以在 prototxt 中使用或转换。我在 Caffe 文档中找不到这方面的信息。
【问题讨论】:
标签: machine-learning computer-vision neural-network deep-learning caffe