i bump this question, have the same issue.
obviously there will be a conflict if you do
n.data, n.label = L.Data(batch_size=batch_size, backend=P.Data.LMDB, source=test_lmdb,
transform_param=dict(scale=1./255), ntop=2,include=[dict(phase=1)])
and then try to define same variables using a different db with include=[dict(phase=0)]
The mechanism by which pycaffe allows dicts with multiple uses of the same key is with lists - for instance to get
transform_param {
scale: 0.00392156862745
mean_value: 112
mean_value: 123
mean_value: 136
}
we do transform_param=dict(scale=1./255,mean_value=[meanB,meanG,meanR])
so conceivably to get multiple layer defs with the same name one could analogously try a list
n.data, n.label = [L.Data(batch_size=batch_size, backend=P.Data.LMDB, source=train_lmdb,
transform_param=dict(scale=1./255), ntop=2,include=[dict(phase=0) ,
L.Data(batch_size=batch_size, backend=P.Data.LMDB, source=lmdb,
transform_param=dict(scale=1./255), ntop=2,include=[dict(phase=1)]) ]
i will try it as soon as i obtain two donuts