【发布时间】:2016-09-29 13:54:25
【问题描述】:
我正在尝试使用我创建的 LMDB 文件来定义 caffe net 中的数据层,但出现以下错误
TypeError: 'LMDB' has type (type 'str'), but expected one of: (type 'int', type 'long')
我检查了传递给生成 lmdb 文件 (caffe/build/tools/convert_imageset) 的脚本的文本文件中的标签。
我在这里遗漏了什么吗?
编辑-1: 这是我的数据层定义:
n.data,n.labels = L.Data(batch_size = batch_size,
source=lmdb_src,
backend = "LMDB",
transform_param = dict(mean_file = mean_file),
ntop=2)
【问题讨论】:
标签: neural-network protocol-buffers deep-learning caffe lmdb