-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDF5 output #8
Comments
Ask Christian and Hannes |
BVLC/caffe#1698 might be useful. It seems we can also use LMDB for label storage. We would then create a separate lmdb that only contains the labels |
@normanrz Sorry, I am new in Caffe. How do you store your data in HDF5 format. I have flow matrix that has 2 components (I generated it by Matlab) and I am going to import it as a HDF5 file to Caffe. |
Please use the caffe user mailing list for questions about caffe https://groups.google.com/forum/#!forum/caffe-users. Nevertheless, here is what we did:
|
@tmbo Thanks for your answer. Actually, I did what you suggested and I successfully stacked my images in a 4D Array, but when I fed it into Caffe using HDFDATA layer, the accuracy was very low compared with feeding images separately using ImageData layer. Did you load your array using HDF5DATA layer as well? |
@fahimeh62 Please use the Caffe Mailing list for better support. You can check our code to save data as HDF5 here: https://github.com/normanrz/face-vid/blob/master/frameIO.py#L98 Make sure that your data is in the correct order for Caffe: `Frames x Layers x X x Y as one big nparray`` You can check our network to see how we load the HDF5 layer. There is nothing special here: https://github.com/normanrz/face-vid/blob/master/face-vid-nets/one-vs-all/train_val.prototxt#L2 |
@hotzenklotz I rechecked my data. when I view my data in HDF5 viewer, the dimension of data is: 7996_2_224_244 and the dimension of label is 7996_1 in my case. I fed this data into Caffe using a txt file including the path of my (.h5) file. Are the dimensions right? |
Store frames/flow data in HDF5 format
The text was updated successfully, but these errors were encountered: