At your model.prototxt file the first layer should be a data layer. When defining a data layer you chose the source that will be used. For example the following code is similar to the data layer definition which can be found to the ImageNet tutorial and specifically from the train_val.prototxt file:
Εισαγωγή κώδικα εδώ...layer {
name: "data"
type: "Data"
top: "data"
top: "label"
transform_param {
mirror: true
crop_size: 227
mean_file: "data/ilsvrc12/imagenet_mean.binaryproto"
}
data_param {
source: "examples/imagenet/ilsvrc12_train_lmdb"
batch_size: 256
backend: LMDB
}
In the data_param field you choose the input of your network (the dataset's path that you need), the backend that you use (LMDB) and the batch size. I do not think that the data should be in HDF5 format; I believe that it can be in any form as long as you put the right backend type. Also, it might be better to be in the LMDB format because it is more frequently used, unless you have got other reasons to use something else.