And this is my currents problem, for some reason when I reshape the layer the number of labels change:
I0427 13:42:22.268987 127300 layer_factory.hpp:76] Creating layer data
I0427 13:42:22.269012 127300 net.cpp:106] Creating Layer data
I0427 13:42:22.269019 127300 net.cpp:411] data -> data
I0427 13:42:22.269040 127300 net.cpp:411] data -> label
I0427 13:42:22.269054 127300 hdf5_data_layer.cpp:79] Loading list of HDF5 filenames from: /home/antonio/face_hallucination/architectures/train.txt
I0427 13:42:22.269076 127300 hdf5_data_layer.cpp:93] Number of HDF5 files: 1
I0427 13:42:22.270187 127300 hdf5.cpp:32] Datatype class: H5T_FLOAT
I0427 13:42:22.413625 127300 net.cpp:150] Setting up data
I0427 13:42:22.413676 127300 net.cpp:157] Top shape: 5 1 32 32 (5120)
I0427 13:42:22.413683 127300 net.cpp:157] Top shape: 5 1 32 32 (5120)
I0427 13:42:22.413687 127300 net.cpp:165] Memory required for data: 40960
I0427 13:42:22.413697 127300 layer_factory.hpp:76] Creating layer data_data_0_split
I0427 13:42:22.413712 127300 net.cpp:106] Creating Layer data_data_0_split
I0427 13:42:22.413719 127300 net.cpp:454] data_data_0_split <- data
I0427 13:42:22.413733 127300 net.cpp:411] data_data_0_split -> data_data_0_split_0
I0427 13:42:22.413744 127300 net.cpp:411] data_data_0_split -> data_data_0_split_1
I0427 13:42:22.413787 127300 net.cpp:150] Setting up data_data_0_split
I0427 13:42:22.413795 127300 net.cpp:157] Top shape: 5 1 32 32 (5120)
I0427 13:42:22.413800 127300 net.cpp:157] Top shape: 5 1 32 32 (5120)
I0427 13:42:22.413805 127300 net.cpp:165] Memory required for data: 81920
I0427 13:42:22.413808 127300 layer_factory.hpp:76] Creating layer fc1
I0427 13:42:22.413820 127300 net.cpp:106] Creating Layer fc1
I0427 13:42:22.413823 127300 net.cpp:454] fc1 <- data_data_0_split_0
I0427 13:42:22.413830 127300 net.cpp:411] fc1 -> fc1
I0427 13:42:22.420203 127300 net.cpp:150] Setting up fc1
I0427 13:42:22.420230 127300 net.cpp:157] Top shape: 5 512 (2560)
I0427 13:42:22.420235 127300 net.cpp:165] Memory required for data: 92160
I0427 13:42:22.420253 127300 layer_factory.hpp:76] Creating layer relu1
I0427 13:42:22.420261 127300 net.cpp:106] Creating Layer relu1
I0427 13:42:22.420266 127300 net.cpp:454] relu1 <- fc1
I0427 13:42:22.420271 127300 net.cpp:397] relu1 -> fc1 (in-place)
I0427 13:42:22.576689 127300 net.cpp:150] Setting up relu1
I0427 13:42:22.576740 127300 net.cpp:157] Top shape: 5 512 (2560)
I0427 13:42:22.576745 127300 net.cpp:165] Memory required for data: 102400
I0427 13:42:22.576755 127300 layer_factory.hpp:76] Creating layer fc2
I0427 13:42:22.576772 127300 net.cpp:106] Creating Layer fc2
I0427 13:42:22.576779 127300 net.cpp:454] fc2 <- fc1
I0427 13:42:22.576788 127300 net.cpp:411] fc2 -> fc2
I0427 13:42:22.578515 127300 net.cpp:150] Setting up fc2
I0427 13:42:22.578541 127300 net.cpp:157] Top shape: 5 256 (1280)
I0427 13:42:22.578546 127300 net.cpp:165] Memory required for data: 107520
I0427 13:39:41.444768 126749 net.cpp:106] Creating Layer relu2
I0427 13:39:41.444773 126749 net.cpp:454] relu2 <- fc2
I0427 13:39:41.444778 126749 net.cpp:397] relu2 -> fc2 (in-place)
I0427 13:39:41.444942 126749 net.cpp:150] Setting up relu2
I0427 13:39:41.444953 126749 net.cpp:157] Top shape: 5 256 (1280)
I0427 13:39:41.444957 126749 net.cpp:165] Memory required for data: 112640
I0427 13:39:41.444962 126749 layer_factory.hpp:76] Creating layer fc3
I0427 13:39:41.444968 126749 net.cpp:106] Creating Layer fc3
I0427 13:39:41.444991 126749 net.cpp:454] fc3 <- fc2
I0427 13:39:41.444998 126749 net.cpp:411] fc3 -> fc3
I0427 13:39:41.446216 126749 net.cpp:150] Setting up fc3
I0427 13:39:41.446226 126749 net.cpp:157] Top shape: 5 512 (2560)
I0427 13:39:41.446230 126749 net.cpp:165] Memory required for data: 122880
I0427 13:39:41.446238 126749 layer_factory.hpp:76] Creating layer relu2
I0427 13:39:41.446244 126749 net.cpp:106] Creating Layer relu2
I0427 13:39:41.446247 126749 net.cpp:454] relu2 <- fc3
I0427 13:39:41.446251 126749 net.cpp:397] relu2 -> fc3 (in-place)
I0427 13:39:41.446521 126749 net.cpp:150] Setting up relu2
I0427 13:39:41.446535 126749 net.cpp:157] Top shape: 5 512 (2560)
I0427 13:39:41.446539 126749 net.cpp:165] Memory required for data: 133120
I0427 13:39:41.446543 126749 layer_factory.hpp:76] Creating layer fc4
I0427 13:39:41.446552 126749 net.cpp:106] Creating Layer fc4
I0427 13:39:41.446555 126749 net.cpp:454] fc4 <- fc3
I0427 13:39:41.446562 126749 net.cpp:411] fc4 -> fc4
I0427 13:39:41.561897 126749 net.cpp:150] Setting up fc4
I0427 13:39:41.561934 126749 net.cpp:157] Top shape: 5 21904 (109520)
I0427 13:39:41.561939 126749 net.cpp:165] Memory required for data: 571200
I0427 13:39:41.561950 126749 layer_factory.hpp:76] Creating layer deconv
I0427 13:39:41.561964 126749 net.cpp:106] Creating Layer deconv
I0427 13:39:41.561969 126749 net.cpp:454] deconv <- data_data_0_split_1
I0427 13:39:41.561990 126749 net.cpp:411] deconv -> deconv
I0427 13:39:41.563319 126749 net.cpp:150] Setting up deconv
I0427 13:39:41.563333 126749 net.cpp:157] Top shape: 5 256 37 37 (1752320)
I0427 13:39:41.563349 126749 net.cpp:165] Memory required for data: 7580480
I0427 13:39:41.563365 126749 layer_factory.hpp:76] Creating layer dec_flatten
I0427 13:39:41.563374 126749 net.cpp:106] Creating Layer dec_flatten
I0427 13:39:41.563379 126749 net.cpp:454] dec_flatten <- deconv
I0427 13:39:41.563383 126749 net.cpp:411] dec_flatten -> dec_flatten
I0427 13:39:41.563410 126749 net.cpp:150] Setting up dec_flatten
I0427 13:39:41.563417 126749 net.cpp:157] Top shape: 5 350464 (1752320)
I0427 13:39:41.563421 126749 net.cpp:165] Memory required for data: 14589760
I0427 13:39:41.563426 126749 layer_factory.hpp:76] Creating layer concat
I0427 13:39:41.563432 126749 net.cpp:106] Creating Layer concat
I0427 13:39:41.563436 126749 net.cpp:454] concat <- fc4
I0427 13:39:41.563441 126749 net.cpp:454] concat <- dec_flatten
I0427 13:39:41.563446 126749 net.cpp:411] concat -> concat
I0427 13:39:41.563469 126749 net.cpp:150] Setting up concat
I0427 13:39:41.563477 126749 net.cpp:157] Top shape: 5 372368 (1861840)
I0427 13:39:41.563482 126749 net.cpp:165] Memory required for data: 22037120
I0427 13:39:41.563485 126749 layer_factory.hpp:76] Creating layer reshape
I0427 13:39:41.563493 126749 net.cpp:106] Creating Layer reshape
I0427 13:39:41.563498 126749 net.cpp:454] reshape <- concat
I0427 13:39:41.563503 126749 net.cpp:411] reshape -> output
I0427 13:39:41.563529 126749 net.cpp:150] Setting up reshape
I0427 13:39:41.563535 126749 net.cpp:157] Top shape: 85 1 148 148 (1861840)
I0427 13:39:41.563539 126749 net.cpp:165] Memory required for data: 29484480
I0427 13:39:41.563542 126749 layer_factory.hpp:76] Creating layer conv1
I0427 13:39:41.563551 126749 net.cpp:106] Creating Layer conv1
I0427 13:39:41.563556 126749 net.cpp:454] conv1 <- output
I0427 13:39:41.563563 126749 net.cpp:411] conv1 -> conv1
I0427 13:39:41.564617 126749 net.cpp:150] Setting up conv1
I0427 13:39:41.564645 126749 net.cpp:157] Top shape: 85 16 144 144 (28200960)
I0427 13:39:41.564649 126749 net.cpp:165] Memory required for data: 142288320
I0427 13:39:41.564656 126749 layer_factory.hpp:76] Creating layer relu3
I0427 13:39:41.564663 126749 net.cpp:106] Creating Layer relu3
I0427 13:39:41.564668 126749 net.cpp:454] relu3 <- conv1
I0427 13:39:41.564676 126749 net.cpp:397] relu3 -> conv1 (in-place)
I0427 13:39:41.564862 126749 net.cpp:150] Setting up relu3
I0427 13:39:41.564884 126749 net.cpp:157] Top shape: 85 16 144 144 (28200960)
I0427 13:39:41.564888 126749 net.cpp:165] Memory required for data: 255092160
I0427 13:39:41.564913 126749 layer_factory.hpp:76] Creating layer conv2
I0427 13:39:41.564923 126749 net.cpp:106] Creating Layer conv2
I0427 13:39:41.564937 126749 net.cpp:454] conv2 <- conv1
I0427 13:39:41.564944 126749 net.cpp:411] conv2 -> conv2
I0427 13:39:41.566232 126749 net.cpp:150] Setting up conv2
I0427 13:39:41.566259 126749 net.cpp:157] Top shape: 85 64 138 138 (103599360)
I0427 13:39:41.566264 126749 net.cpp:165] Memory required for data: 669489600
I0427 13:39:41.566272 126749 layer_factory.hpp:76] Creating layer relu4
I0427 13:39:41.566280 126749 net.cpp:106] Creating Layer relu4
I0427 13:39:41.566285 126749 net.cpp:454] relu4 <- conv2
I0427 13:39:41.566290 126749 net.cpp:397] relu4 -> conv2 (in-place)
I0427 13:39:41.566498 126749 net.cpp:150] Setting up relu4
I0427 13:39:41.566509 126749 net.cpp:157] Top shape: 85 64 138 138 (103599360)
I0427 13:39:41.566525 126749 net.cpp:165] Memory required for data: 1083887040
I0427 13:39:41.566529 126749 layer_factory.hpp:76] Creating layer conv3
I0427 13:39:41.566550 126749 net.cpp:106] Creating Layer conv3
I0427 13:39:41.566555 126749 net.cpp:454] conv3 <- conv2
I0427 13:39:41.566562 126749 net.cpp:411] conv3 -> conv3
I0427 13:39:41.567746 126749 net.cpp:150] Setting up conv3
I0427 13:39:41.567773 126749 net.cpp:157] Top shape: 85 16 134 134 (24420160)
I0427 13:39:41.567778 126749 net.cpp:165] Memory required for data: 1181567680
I0427 13:39:41.567785 126749 layer_factory.hpp:76] Creating layer loss
I0427 13:39:41.567792 126749 net.cpp:106] Creating Layer loss
I0427 13:39:41.567797 126749 net.cpp:454] loss <- conv3
I0427 13:39:41.567801 126749 net.cpp:454] loss <- label
I0427 13:39:41.567807 126749 net.cpp:411] loss -> loss
F0427 13:39:41.567827 126749 loss_layer.cpp:19] Check failed: bottom[0]->num() == bottom[1]->num() (85 vs. 5) The data and label should have the same number.