Hi, Thank you for sharing the code.
I have compiled 3D-Caffe for pycaffe, and I created the .h files in python. At first since I saw that the input shape based on 3D-Caffe should be in this order NxCxDxHxW
shape of h5 files for example for a volume with grayscale images is (1, 256, 256, 104) for both data and label, which is in order CxHxWxD (channel, height,width,depth). Once I want to run it in 3D-Caffe, it is showing this error, which is related to Concat layer,
But the problem is that the number of slices is different from patient to patient. Then, then based on what I saw in HeartSeg, I added
transform_param { crop_size_l : 64 crop_size_h : 64 crop_size_w : 64 } to HDF5Data layer, But am still getting an error:
Hi, Thank you for sharing the code. I have compiled 3D-Caffe for pycaffe, and I created the
.h
files in python. At first since I saw that the input shape based on 3D-Caffe should be in this orderNxCxDxHxW
Then I changed the code to only have
CxHxWxD
:shape of h5 files for example for a volume with grayscale images is (1, 256, 256, 104) for both
data
andlabel
, which is in order CxHxWxD (channel, height,width,depth). Once I want to run it in 3D-Caffe, it is showing this error, which is related to Concat layer,But the problem is that the number of slices is different from patient to patient. Then, then based on what I saw in HeartSeg, I added
transform_param { crop_size_l : 64 crop_size_h : 64 crop_size_w : 64 }
toHDF5Data
layer, But am still getting an error:I0``` 721 04:29:23.488734 8998 hdf5_data_layer.cpp:117] Number of HDF5 files: 90 I0721 04:29:23.489279 8998 hdf5.cpp:32] Datatype class: H5T_FLOAT I0721 04:29:23.506300 8998 hdf5.cpp:35] Datatype class: H5T_INTEGER F0721 04:29:23.520934 8998 blob.hpp:122] Check failed: axis_index < num_axes() (4 vs. 4) axis 4 out of range for 4-D Blob with shape 1 256 256 104 (6815744) Check failure stack trace: @ 0x7fb7ed6565cd google::LogMessage::Fail() @ 0x7fb7ed658433 google::LogMessage::SendToLog() @ 0x7fb7ed65615b google::LogMessage::Flush() @ 0x7fb7ed658e1e google::LogMessageFatal::~LogMessageFatal() @ 0x7fb7edbea0d8 caffe::Blob<>::CanonicalAxisIndex() @ 0x7fb7edcd0cf9 caffe::HDF5DataLayer<>::HDF5DataTransform() @ 0x7fb7edccec49 caffe::HDF5DataLayer<>::LoadHDF5FileData() @ 0x7fb7edccda81 caffe::HDF5DataLayer<>::LayerSetUp() @ 0x7fb7edd3ea45 caffe::Net<>::Init() @ 0x7fb7edd40301 caffe::Net<>::Net() @ 0x7fb7edd1a7ea caffe::Solver<>::InitTrainNet() @ 0x7fb7edd1ad57 caffe::Solver<>::Init() @ 0x7fb7edd1b0ea caffe::Solver<>::Solver() @ 0x7fb7edbd3c93 caffe::Creator_SGDSolver<>() @ 0x40c48f train() @ 0x409214 main @ 0x7fb7ec0a8830 __libc_start_main @ 0x4099b9 _start @ (nil) (unknown) Aborted (core dumped)