HDF5 format for grayscale images?

157 views
Skip to first unread message

Prabhu

unread,
Jan 26, 2015, 10:58:29 AM1/26/15
to caffe...@googlegroups.com
i am trying to write grayscale images 96x96 px to hdf5 file. My input data is currently in the shape 6000, 96, 96 then i feed it to caffe for making convolutions and it is not working.

I0126 16:47:07.845268  2466 hdf5_data_layer.cpp:49] Successully loaded 6000 rows
I0126
16:47:07.845345  2466 hdf5_data_layer.cpp:81] output data size: 100,96,96,1
I0126
16:47:07.845388  2466 net.cpp:103] Top shape: 100 96 96 1 (921600)
I0126
16:47:07.845412  2466 net.cpp:103] Top shape: 100 30 1 1 (3000)
I0126
16:47:07.845455  2466 net.cpp:67] Creating Layer conv1
I0126
16:47:07.845480  2466 net.cpp:394] conv1 <- data
I0126
16:47:07.845516  2466 net.cpp:356] conv1 -> conv1
I0126
16:47:07.845554  2466 net.cpp:96] Setting up conv1
F0126
16:47:08.215721  2466 blob.cpp:14] Check failed: width >= 0 (-3 vs. 0)


Do you think i should reshape the data to 6000, 1, 96, 96 like a blob and write it to hd5?
1 is for grayscale channel. i

Prabhu

unread,
Jan 26, 2015, 11:08:51 AM1/26/15
to caffe...@googlegroups.com
i fixed it by reshaping the data to 6000,1,96,96
thanks :)
Message has been deleted

Abhishek Sharma

unread,
Jun 29, 2015, 9:26:37 AM6/29/15
to caffe...@googlegroups.com
Can you explain me what [ Top shape: 100 30 1 1 (3000) ] this thing means? I mean what kind of file is this?

little solider Chang

unread,
Oct 4, 2015, 11:03:06 AM10/4/15
to Caffe Users
Hi, whether the  Top shape: 100 30 1 1 (3000) of label can be 100 30 ?

在 2015年1月26日星期一 UTC下午4:08:51,Prabhu写道:
Reply all
Reply to author
Forward
0 new messages