alexgkendall / caffe-segnet

Implementation of SegNet: A Deep Convolutional Encoder-Decoder Architecture for Semantic Pixel-Wise Labelling
http://mi.eng.cam.ac.uk/projects/segnet/
Other
1.08k stars 452 forks source link

upsample layer problem #76

Open R1994J opened 8 years ago

R1994J commented 8 years ago

Hello. When I run SegNet on my own data, I produce the following error:

I0926 14:14:41.714001 12023 dense_image_data_layer.cpp:41] Opening file ./SegNet/CamVid/train.txt I0926 14:14:41.718893 12023 dense_image_data_layer.cpp:51] Shuffling data I0926 14:14:41.719734 12023 dense_image_data_layer.cpp:56] A total of 6318 examples. I0926 14:14:41.792197 12023 dense_image_data_layer.cpp:109] output data size: 4,3,300,540 I0926 14:14:41.794148 12023 net.cpp:127] Top shape: 4 3 300 540 (1944000) I0926 14:14:41.794186 12023 net.cpp:127] Top shape: 4 1 300 540 (648000) I0926 14:14:41.794203 12023 layer_factory.hpp:74] Creating layer label_data_1_split I0926 14:14:41.794224 12023 net.cpp:90] Creating Layer label_data_1_split I0926 14:14:41.794236 12023 net.cpp:410] label_data_1_split <- label I0926 14:14:41.794255 12023 net.cpp:368] label_data_1_split -> label_data_1_split_0 I0926 14:14:41.794276 12023 net.cpp:368] label_data_1_split -> label_data_1_split_1 I0926 14:14:41.794289 12023 net.cpp:120] Setting up label_data_1_split I0926 14:14:41.794308 12023 net.cpp:127] Top shape: 4 1 300 540 (648000) I0926 14:14:41.794323 12023 net.cpp:127] Top shape: 4 1 300 540 (648000) I0926 14:14:41.794334 12023 layer_factory.hpp:74] Creating layer conv1_1 I0926 14:14:41.794353 12023 net.cpp:90] Creating Layer conv1_1 I0926 14:14:41.794366 12023 net.cpp:410] conv1_1 <- data I0926 14:14:41.794379 12023 net.cpp:368] conv1_1 -> conv1_1 I0926 14:14:41.794395 12023 net.cpp:120] Setting up conv1_1 I0926 14:14:41.794713 12023 net.cpp:127] Top shape: 4 64 300 540 (41472000) I0926 14:14:41.794737 12023 layer_factory.hpp:74] Creating layer conv1_1_bn I0926 14:14:41.794754 12023 net.cpp:90] Creating Layer conv1_1_bn I0926 14:14:41.794765 12023 net.cpp:410] conv1_1_bn <- conv1_1 I0926 14:14:41.794778 12023 net.cpp:357] conv1_1_bn -> conv1_1 (in-place) I0926 14:14:41.794793 12023 net.cpp:120] Setting up conv1_1_bn I0926 14:14:41.795433 12023 net.cpp:127] Top shape: 4 64 300 540 (41472000) I0926 14:14:41.795452 12023 layer_factory.hpp:74] Creating layer relu1_1 I0926 14:14:41.795466 12023 net.cpp:90] Creating Layer relu1_1 I0926 14:14:41.795503 12023 net.cpp:410] relu1_1 <- conv1_1 I0926 14:14:41.795516 12023 net.cpp:357] relu1_1 -> conv1_1 (in-place) I0926 14:14:41.795529 12023 net.cpp:120] Setting up relu1_1 I0926 14:14:41.795543 12023 net.cpp:127] Top shape: 4 64 300 540 (41472000) I0926 14:14:41.795554 12023 layer_factory.hpp:74] Creating layer conv1_2 I0926 14:14:41.795567 12023 net.cpp:90] Creating Layer conv1_2 I0926 14:14:41.795580 12023 net.cpp:410] conv1_2 <- conv1_1 I0926 14:14:41.795593 12023 net.cpp:368] conv1_2 -> conv1_2 I0926 14:14:41.795606 12023 net.cpp:120] Setting up conv1_2 I0926 14:14:41.796936 12023 net.cpp:127] Top shape: 4 64 300 540 (41472000) I0926 14:14:41.796957 12023 layer_factory.hpp:74] Creating layer conv1_2_bn I0926 14:14:41.796970 12023 net.cpp:90] Creating Layer conv1_2_bn I0926 14:14:41.796982 12023 net.cpp:410] conv1_2_bn <- conv1_2 I0926 14:14:41.796993 12023 net.cpp:357] conv1_2_bn -> conv1_2 (in-place) I0926 14:14:41.797008 12023 net.cpp:120] Setting up conv1_2_bn I0926 14:14:41.797570 12023 net.cpp:127] Top shape: 4 64 300 540 (41472000) I0926 14:14:41.797596 12023 layer_factory.hpp:74] Creating layer relu1_2 I0926 14:14:41.797608 12023 net.cpp:90] Creating Layer relu1_2 I0926 14:14:41.797617 12023 net.cpp:410] relu1_2 <- conv1_2 I0926 14:14:41.797628 12023 net.cpp:357] relu1_2 -> conv1_2 (in-place) I0926 14:14:41.797639 12023 net.cpp:120] Setting up relu1_2 I0926 14:14:41.797649 12023 net.cpp:127] Top shape: 4 64 300 540 (41472000) I0926 14:14:41.797659 12023 layer_factory.hpp:74] Creating layer pool1 I0926 14:14:41.797672 12023 net.cpp:90] Creating Layer pool1 I0926 14:14:41.797680 12023 net.cpp:410] pool1 <- conv1_2 I0926 14:14:41.797691 12023 net.cpp:368] pool1 -> pool1 I0926 14:14:41.797705 12023 net.cpp:368] pool1 -> pool1_mask I0926 14:14:41.797719 12023 net.cpp:120] Setting up pool1 I0926 14:14:41.797739 12023 net.cpp:127] Top shape: 4 64 150 270 (10368000) I0926 14:14:41.797751 12023 net.cpp:127] Top shape: 4 64 150 270 (10368000) I0926 14:14:41.797760 12023 layer_factory.hpp:74] Creating layer conv2_1 I0926 14:14:41.797772 12023 net.cpp:90] Creating Layer conv2_1 I0926 14:14:41.797781 12023 net.cpp:410] conv2_1 <- pool1 I0926 14:14:41.797793 12023 net.cpp:368] conv2_1 -> conv2_1 I0926 14:14:41.797806 12023 net.cpp:120] Setting up conv2_1 I0926 14:14:41.799584 12023 net.cpp:127] Top shape: 4 128 150 270 (20736000) I0926 14:14:41.799602 12023 layer_factory.hpp:74] Creating layer conv2_1_bn I0926 14:14:41.799614 12023 net.cpp:90] Creating Layer conv2_1_bn I0926 14:14:41.799623 12023 net.cpp:410] conv2_1_bn <- conv2_1 I0926 14:14:41.799634 12023 net.cpp:357] conv2_1_bn -> conv2_1 (in-place) I0926 14:14:41.799646 12023 net.cpp:120] Setting up conv2_1_bn I0926 14:14:41.799772 12023 net.cpp:127] Top shape: 4 128 150 270 (20736000) I0926 14:14:41.799785 12023 layer_factory.hpp:74] Creating layer relu2_1 I0926 14:14:41.799795 12023 net.cpp:90] Creating Layer relu2_1 I0926 14:14:41.799804 12023 net.cpp:410] relu2_1 <- conv2_1 I0926 14:14:41.799815 12023 net.cpp:357] relu2_1 -> conv2_1 (in-place) I0926 14:14:41.799825 12023 net.cpp:120] Setting up relu2_1 I0926 14:14:41.799835 12023 net.cpp:127] Top shape: 4 128 150 270 (20736000) I0926 14:14:41.799844 12023 layer_factory.hpp:74] Creating layer conv2_2 I0926 14:14:41.799855 12023 net.cpp:90] Creating Layer conv2_2 I0926 14:14:41.799863 12023 net.cpp:410] conv2_2 <- conv2_1 I0926 14:14:41.799875 12023 net.cpp:368] conv2_2 -> conv2_2 I0926 14:14:41.799886 12023 net.cpp:120] Setting up conv2_2 I0926 14:14:41.803634 12023 net.cpp:127] Top shape: 4 128 150 270 (20736000) I0926 14:14:41.803663 12023 layer_factory.hpp:74] Creating layer conv2_2_bn I0926 14:14:41.803674 12023 net.cpp:90] Creating Layer conv2_2_bn I0926 14:14:41.803684 12023 net.cpp:410] conv2_2_bn <- conv2_2 I0926 14:14:41.803705 12023 net.cpp:357] conv2_2_bn -> conv2_2 (in-place) I0926 14:14:41.803717 12023 net.cpp:120] Setting up conv2_2_bn I0926 14:14:41.803866 12023 net.cpp:127] Top shape: 4 128 150 270 (20736000) I0926 14:14:41.803881 12023 layer_factory.hpp:74] Creating layer relu2_2 I0926 14:14:41.803905 12023 net.cpp:90] Creating Layer relu2_2 I0926 14:14:41.803915 12023 net.cpp:410] relu2_2 <- conv2_2 I0926 14:14:41.803926 12023 net.cpp:357] relu2_2 -> conv2_2 (in-place) I0926 14:14:41.803937 12023 net.cpp:120] Setting up relu2_2 I0926 14:14:41.803948 12023 net.cpp:127] Top shape: 4 128 150 270 (20736000) I0926 14:14:41.803966 12023 layer_factory.hpp:74] Creating layer pool2 I0926 14:14:41.803987 12023 net.cpp:90] Creating Layer pool2 I0926 14:14:41.803997 12023 net.cpp:410] pool2 <- conv2_2 I0926 14:14:41.804008 12023 net.cpp:368] pool2 -> pool2 I0926 14:14:41.804021 12023 net.cpp:368] pool2 -> pool2_mask I0926 14:14:41.804033 12023 net.cpp:120] Setting up pool2 I0926 14:14:41.804045 12023 net.cpp:127] Top shape: 4 128 75 135 (5184000) I0926 14:14:41.804062 12023 net.cpp:127] Top shape: 4 128 75 135 (5184000) I0926 14:14:41.804071 12023 layer_factory.hpp:74] Creating layer conv3_1 I0926 14:14:41.804085 12023 net.cpp:90] Creating Layer conv3_1 I0926 14:14:41.804095 12023 net.cpp:410] conv3_1 <- pool2 I0926 14:14:41.804107 12023 net.cpp:368] conv3_1 -> conv3_1 I0926 14:14:41.804128 12023 net.cpp:120] Setting up conv3_1 I0926 14:14:41.811622 12023 net.cpp:127] Top shape: 4 256 75 135 (10368000) I0926 14:14:41.811648 12023 layer_factory.hpp:74] Creating layer conv3_1_bn I0926 14:14:41.811662 12023 net.cpp:90] Creating Layer conv3_1_bn I0926 14:14:41.811673 12023 net.cpp:410] conv3_1_bn <- conv3_1 I0926 14:14:41.811684 12023 net.cpp:357] conv3_1_bn -> conv3_1 (in-place) I0926 14:14:41.811697 12023 net.cpp:120] Setting up conv3_1_bn I0926 14:14:41.811743 12023 net.cpp:127] Top shape: 4 256 75 135 (10368000) I0926 14:14:41.811756 12023 layer_factory.hpp:74] Creating layer relu3_1 I0926 14:14:41.811767 12023 net.cpp:90] Creating Layer relu3_1 I0926 14:14:41.811777 12023 net.cpp:410] relu3_1 <- conv3_1 I0926 14:14:41.811787 12023 net.cpp:357] relu3_1 -> conv3_1 (in-place) I0926 14:14:41.811799 12023 net.cpp:120] Setting up relu3_1 I0926 14:14:41.811808 12023 net.cpp:127] Top shape: 4 256 75 135 (10368000) I0926 14:14:41.811817 12023 layer_factory.hpp:74] Creating layer conv3_2 I0926 14:14:41.811828 12023 net.cpp:90] Creating Layer conv3_2 I0926 14:14:41.811837 12023 net.cpp:410] conv3_2 <- conv3_1 I0926 14:14:41.811848 12023 net.cpp:368] conv3_2 -> conv3_2 I0926 14:14:41.811861 12023 net.cpp:120] Setting up conv3_2 I0926 14:14:41.825883 12023 net.cpp:127] Top shape: 4 256 75 135 (10368000) I0926 14:14:41.825907 12023 layer_factory.hpp:74] Creating layer conv3_2_bn I0926 14:14:41.825922 12023 net.cpp:90] Creating Layer conv3_2_bn I0926 14:14:41.825933 12023 net.cpp:410] conv3_2_bn <- conv3_2 I0926 14:14:41.825944 12023 net.cpp:357] conv3_2_bn -> conv3_2 (in-place) I0926 14:14:41.825956 12023 net.cpp:120] Setting up conv3_2_bn I0926 14:14:41.826006 12023 net.cpp:127] Top shape: 4 256 75 135 (10368000) I0926 14:14:41.826021 12023 layer_factory.hpp:74] Creating layer relu3_2 I0926 14:14:41.826032 12023 net.cpp:90] Creating Layer relu3_2 I0926 14:14:41.826041 12023 net.cpp:410] relu3_2 <- conv3_2 I0926 14:14:41.826051 12023 net.cpp:357] relu3_2 -> conv3_2 (in-place) I0926 14:14:41.826061 12023 net.cpp:120] Setting up relu3_2 I0926 14:14:41.826071 12023 net.cpp:127] Top shape: 4 256 75 135 (10368000) I0926 14:14:41.826081 12023 layer_factory.hpp:74] Creating layer conv3_3 I0926 14:14:41.826097 12023 net.cpp:90] Creating Layer conv3_3 I0926 14:14:41.826107 12023 net.cpp:410] conv3_3 <- conv3_2 I0926 14:14:41.826119 12023 net.cpp:368] conv3_3 -> conv3_3 I0926 14:14:41.826133 12023 net.cpp:120] Setting up conv3_3 I0926 14:14:41.840162 12023 net.cpp:127] Top shape: 4 256 75 135 (10368000) I0926 14:14:41.840188 12023 layer_factory.hpp:74] Creating layer conv3_3_bn I0926 14:14:41.840204 12023 net.cpp:90] Creating Layer conv3_3_bn I0926 14:14:41.840214 12023 net.cpp:410] conv3_3_bn <- conv3_3 I0926 14:14:41.840226 12023 net.cpp:357] conv3_3_bn -> conv3_3 (in-place) I0926 14:14:41.840239 12023 net.cpp:120] Setting up conv3_3_bn I0926 14:14:41.840281 12023 net.cpp:127] Top shape: 4 256 75 135 (10368000) I0926 14:14:41.840330 12023 layer_factory.hpp:74] Creating layer relu3_3 I0926 14:14:41.840342 12023 net.cpp:90] Creating Layer relu3_3 I0926 14:14:41.840353 12023 net.cpp:410] relu3_3 <- conv3_3 I0926 14:14:41.840364 12023 net.cpp:357] relu3_3 -> conv3_3 (in-place) I0926 14:14:41.840375 12023 net.cpp:120] Setting up relu3_3 I0926 14:14:41.840386 12023 net.cpp:127] Top shape: 4 256 75 135 (10368000) I0926 14:14:41.840395 12023 layer_factory.hpp:74] Creating layer pool3 I0926 14:14:41.840406 12023 net.cpp:90] Creating Layer pool3 I0926 14:14:41.840416 12023 net.cpp:410] pool3 <- conv3_3 I0926 14:14:41.840426 12023 net.cpp:368] pool3 -> pool3 I0926 14:14:41.840440 12023 net.cpp:368] pool3 -> pool3_mask I0926 14:14:41.840452 12023 net.cpp:120] Setting up pool3 I0926 14:14:41.840464 12023 net.cpp:127] Top shape: 4 256 38 68 (2646016) I0926 14:14:41.840479 12023 net.cpp:127] Top shape: 4 256 38 68 (2646016) I0926 14:14:41.840490 12023 layer_factory.hpp:74] Creating layer conv4_1 I0926 14:14:41.840502 12023 net.cpp:90] Creating Layer conv4_1 I0926 14:14:41.840512 12023 net.cpp:410] conv4_1 <- pool3 I0926 14:14:41.840524 12023 net.cpp:368] conv4_1 -> conv4_1 I0926 14:14:41.840538 12023 net.cpp:120] Setting up conv4_1 I0926 14:14:41.868418 12023 net.cpp:127] Top shape: 4 512 38 68 (5292032) I0926 14:14:41.868449 12023 layer_factory.hpp:74] Creating layer conv4_1_bn I0926 14:14:41.868465 12023 net.cpp:90] Creating Layer conv4_1_bn I0926 14:14:41.868476 12023 net.cpp:410] conv4_1_bn <- conv4_1 I0926 14:14:41.868489 12023 net.cpp:357] conv4_1_bn -> conv4_1 (in-place) I0926 14:14:41.868507 12023 net.cpp:120] Setting up conv4_1_bn I0926 14:14:41.868532 12023 net.cpp:127] Top shape: 4 512 38 68 (5292032) I0926 14:14:41.868546 12023 layer_factory.hpp:74] Creating layer relu4_1 I0926 14:14:41.868558 12023 net.cpp:90] Creating Layer relu4_1 I0926 14:14:41.868567 12023 net.cpp:410] relu4_1 <- conv4_1 I0926 14:14:41.868578 12023 net.cpp:357] relu4_1 -> conv4_1 (in-place) I0926 14:14:41.868589 12023 net.cpp:120] Setting up relu4_1 I0926 14:14:41.868599 12023 net.cpp:127] Top shape: 4 512 38 68 (5292032) I0926 14:14:41.868607 12023 layer_factory.hpp:74] Creating layer conv4_2 I0926 14:14:41.868619 12023 net.cpp:90] Creating Layer conv4_2 I0926 14:14:41.868628 12023 net.cpp:410] conv4_2 <- conv4_1 I0926 14:14:41.868639 12023 net.cpp:368] conv4_2 -> conv4_2 I0926 14:14:41.868650 12023 net.cpp:120] Setting up conv4_2 I0926 14:14:41.924248 12023 net.cpp:127] Top shape: 4 512 38 68 (5292032) I0926 14:14:41.924286 12023 layer_factory.hpp:74] Creating layer conv4_2_bn I0926 14:14:41.924304 12023 net.cpp:90] Creating Layer conv4_2_bn I0926 14:14:41.924315 12023 net.cpp:410] conv4_2_bn <- conv4_2 I0926 14:14:41.924330 12023 net.cpp:357] conv4_2_bn -> conv4_2 (in-place) I0926 14:14:41.924350 12023 net.cpp:120] Setting up conv4_2_bn I0926 14:14:41.924377 12023 net.cpp:127] Top shape: 4 512 38 68 (5292032) I0926 14:14:41.924391 12023 layer_factory.hpp:74] Creating layer relu4_2 I0926 14:14:41.924402 12023 net.cpp:90] Creating Layer relu4_2 I0926 14:14:41.924412 12023 net.cpp:410] relu4_2 <- conv4_2 I0926 14:14:41.924422 12023 net.cpp:357] relu4_2 -> conv4_2 (in-place) I0926 14:14:41.924433 12023 net.cpp:120] Setting up relu4_2 I0926 14:14:41.924443 12023 net.cpp:127] Top shape: 4 512 38 68 (5292032) I0926 14:14:41.924453 12023 layer_factory.hpp:74] Creating layer conv4_3 I0926 14:14:41.924469 12023 net.cpp:90] Creating Layer conv4_3 I0926 14:14:41.924479 12023 net.cpp:410] conv4_3 <- conv4_2 I0926 14:14:41.924491 12023 net.cpp:368] conv4_3 -> conv4_3 I0926 14:14:41.924505 12023 net.cpp:120] Setting up conv4_3 I0926 14:14:41.979835 12023 net.cpp:127] Top shape: 4 512 38 68 (5292032) I0926 14:14:41.979869 12023 layer_factory.hpp:74] Creating layer conv4_3_bn I0926 14:14:41.979888 12023 net.cpp:90] Creating Layer conv4_3_bn I0926 14:14:41.979899 12023 net.cpp:410] conv4_3_bn <- conv4_3 I0926 14:14:41.979914 12023 net.cpp:357] conv4_3_bn -> conv4_3 (in-place) I0926 14:14:41.979930 12023 net.cpp:120] Setting up conv4_3_bn I0926 14:14:41.979961 12023 net.cpp:127] Top shape: 4 512 38 68 (5292032) I0926 14:14:41.980012 12023 layer_factory.hpp:74] Creating layer relu4_3 I0926 14:14:41.980027 12023 net.cpp:90] Creating Layer relu4_3 I0926 14:14:41.980036 12023 net.cpp:410] relu4_3 <- conv4_3 I0926 14:14:41.980046 12023 net.cpp:357] relu4_3 -> conv4_3 (in-place) I0926 14:14:41.980057 12023 net.cpp:120] Setting up relu4_3 I0926 14:14:41.980067 12023 net.cpp:127] Top shape: 4 512 38 68 (5292032) I0926 14:14:41.980077 12023 layer_factory.hpp:74] Creating layer pool4 I0926 14:14:41.980088 12023 net.cpp:90] Creating Layer pool4 I0926 14:14:41.980098 12023 net.cpp:410] pool4 <- conv4_3 I0926 14:14:41.980109 12023 net.cpp:368] pool4 -> pool4 I0926 14:14:41.980121 12023 net.cpp:368] pool4 -> pool4_mask I0926 14:14:41.980132 12023 net.cpp:120] Setting up pool4 I0926 14:14:41.980144 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:41.980156 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:41.980165 12023 layer_factory.hpp:74] Creating layer conv5_1 I0926 14:14:41.980180 12023 net.cpp:90] Creating Layer conv5_1 I0926 14:14:41.980190 12023 net.cpp:410] conv5_1 <- pool4 I0926 14:14:41.980201 12023 net.cpp:368] conv5_1 -> conv5_1 I0926 14:14:41.980216 12023 net.cpp:120] Setting up conv5_1 I0926 14:14:42.035742 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:42.035784 12023 layer_factory.hpp:74] Creating layer conv5_1_bn I0926 14:14:42.035804 12023 net.cpp:90] Creating Layer conv5_1_bn I0926 14:14:42.035846 12023 net.cpp:410] conv5_1_bn <- conv5_1 I0926 14:14:42.035867 12023 net.cpp:357] conv5_1_bn -> conv5_1 (in-place) I0926 14:14:42.035884 12023 net.cpp:120] Setting up conv5_1_bn I0926 14:14:42.035939 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:42.035964 12023 layer_factory.hpp:74] Creating layer relu5_1 I0926 14:14:42.035985 12023 net.cpp:90] Creating Layer relu5_1 I0926 14:14:42.035998 12023 net.cpp:410] relu5_1 <- conv5_1 I0926 14:14:42.036010 12023 net.cpp:357] relu5_1 -> conv5_1 (in-place) I0926 14:14:42.036020 12023 net.cpp:120] Setting up relu5_1 I0926 14:14:42.036031 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:42.036039 12023 layer_factory.hpp:74] Creating layer conv5_2 I0926 14:14:42.036052 12023 net.cpp:90] Creating Layer conv5_2 I0926 14:14:42.036062 12023 net.cpp:410] conv5_2 <- conv5_1 I0926 14:14:42.036073 12023 net.cpp:368] conv5_2 -> conv5_2 I0926 14:14:42.036089 12023 net.cpp:120] Setting up conv5_2 I0926 14:14:42.091426 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:42.091459 12023 layer_factory.hpp:74] Creating layer conv5_2_bn I0926 14:14:42.091475 12023 net.cpp:90] Creating Layer conv5_2_bn I0926 14:14:42.091485 12023 net.cpp:410] conv5_2_bn <- conv5_2 I0926 14:14:42.091500 12023 net.cpp:357] conv5_2_bn -> conv5_2 (in-place) I0926 14:14:42.091513 12023 net.cpp:120] Setting up conv5_2_bn I0926 14:14:42.091542 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:42.091554 12023 layer_factory.hpp:74] Creating layer relu5_2 I0926 14:14:42.091567 12023 net.cpp:90] Creating Layer relu5_2 I0926 14:14:42.091576 12023 net.cpp:410] relu5_2 <- conv5_2 I0926 14:14:42.091589 12023 net.cpp:357] relu5_2 -> conv5_2 (in-place) I0926 14:14:42.091603 12023 net.cpp:120] Setting up relu5_2 I0926 14:14:42.091612 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:42.091621 12023 layer_factory.hpp:74] Creating layer conv5_3 I0926 14:14:42.091634 12023 net.cpp:90] Creating Layer conv5_3 I0926 14:14:42.091644 12023 net.cpp:410] conv5_3 <- conv5_2 I0926 14:14:42.091656 12023 net.cpp:368] conv5_3 -> conv5_3 I0926 14:14:42.091670 12023 net.cpp:120] Setting up conv5_3 I0926 14:14:42.146775 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:42.146811 12023 layer_factory.hpp:74] Creating layer conv5_3_bn I0926 14:14:42.146831 12023 net.cpp:90] Creating Layer conv5_3_bn I0926 14:14:42.146842 12023 net.cpp:410] conv5_3_bn <- conv5_3 I0926 14:14:42.146855 12023 net.cpp:357] conv5_3_bn -> conv5_3 (in-place) I0926 14:14:42.146868 12023 net.cpp:120] Setting up conv5_3_bn I0926 14:14:42.146914 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:42.146929 12023 layer_factory.hpp:74] Creating layer relu5_3 I0926 14:14:42.146941 12023 net.cpp:90] Creating Layer relu5_3 I0926 14:14:42.146950 12023 net.cpp:410] relu5_3 <- conv5_3 I0926 14:14:42.146960 12023 net.cpp:357] relu5_3 -> conv5_3 (in-place) I0926 14:14:42.146970 12023 net.cpp:120] Setting up relu5_3 I0926 14:14:42.146981 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008) I0926 14:14:42.146989 12023 layer_factory.hpp:74] Creating layer pool5 I0926 14:14:42.147001 12023 net.cpp:90] Creating Layer pool5 I0926 14:14:42.147011 12023 net.cpp:410] pool5 <- conv5_3 I0926 14:14:42.147023 12023 net.cpp:368] pool5 -> pool5 I0926 14:14:42.147038 12023 net.cpp:368] pool5 -> pool5_mask I0926 14:14:42.147049 12023 net.cpp:120] Setting up pool5 I0926 14:14:42.147063 12023 net.cpp:127] Top shape: 4 512 10 17 (348160) I0926 14:14:42.147073 12023 net.cpp:127] Top shape: 4 512 10 17 (348160) I0926 14:14:42.147083 12023 layer_factory.hpp:74] Creating layer upsample5 I0926 14:14:42.147099 12023 net.cpp:90] Creating Layer upsample5 I0926 14:14:42.147110 12023 net.cpp:410] upsample5 <- pool5 I0926 14:14:42.147119 12023 net.cpp:410] upsample5 <- pool5_mask I0926 14:14:42.147130 12023 net.cpp:368] upsample5 -> pool5_D I0926 14:14:42.147145 12023 net.cpp:120] Setting up upsample5 I0926 14:14:42.147159 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120) I0926 14:14:42.147169 12023 layer_factory.hpp:74] Creating layer conv5_3_D I0926 14:14:42.147181 12023 net.cpp:90] Creating Layer conv5_3_D I0926 14:14:42.147192 12023 net.cpp:410] conv5_3_D <- pool5_D I0926 14:14:42.147207 12023 net.cpp:368] conv5_3_D -> conv5_3_D I0926 14:14:42.147219 12023 net.cpp:120] Setting up conv5_3_D I0926 14:14:42.202245 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120) I0926 14:14:42.202281 12023 layer_factory.hpp:74] Creating layer conv5_3_D_bn I0926 14:14:42.202297 12023 net.cpp:90] Creating Layer conv5_3_D_bn I0926 14:14:42.202308 12023 net.cpp:410] conv5_3_D_bn <- conv5_3_D I0926 14:14:42.202322 12023 net.cpp:357] conv5_3_D_bn -> conv5_3_D (in-place) I0926 14:14:42.202337 12023 net.cpp:120] Setting up conv5_3_D_bn I0926 14:14:42.202358 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120) I0926 14:14:42.202371 12023 layer_factory.hpp:74] Creating layer relu5_3_D I0926 14:14:42.202384 12023 net.cpp:90] Creating Layer relu5_3_D I0926 14:14:42.202395 12023 net.cpp:410] relu5_3_D <- conv5_3_D I0926 14:14:42.202405 12023 net.cpp:357] relu5_3_D -> conv5_3_D (in-place) I0926 14:14:42.202419 12023 net.cpp:120] Setting up relu5_3_D I0926 14:14:42.202428 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120) I0926 14:14:42.202437 12023 layer_factory.hpp:74] Creating layer conv5_2_D I0926 14:14:42.202450 12023 net.cpp:90] Creating Layer conv5_2_D I0926 14:14:42.202461 12023 net.cpp:410] conv5_2_D <- conv5_3_D I0926 14:14:42.202471 12023 net.cpp:368] conv5_2_D -> conv5_2_D I0926 14:14:42.202483 12023 net.cpp:120] Setting up conv5_2_D I0926 14:14:42.257331 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120) I0926 14:14:42.257367 12023 layer_factory.hpp:74] Creating layer conv5_2_D_bn I0926 14:14:42.257383 12023 net.cpp:90] Creating Layer conv5_2_D_bn I0926 14:14:42.257398 12023 net.cpp:410] conv5_2_D_bn <- conv5_2_D I0926 14:14:42.257411 12023 net.cpp:357] conv5_2_D_bn -> conv5_2_D (in-place) I0926 14:14:42.257424 12023 net.cpp:120] Setting up conv5_2_D_bn I0926 14:14:42.257447 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120) I0926 14:14:42.257459 12023 layer_factory.hpp:74] Creating layer relu5_2_D I0926 14:14:42.257472 12023 net.cpp:90] Creating Layer relu5_2_D I0926 14:14:42.257480 12023 net.cpp:410] relu5_2_D <- conv5_2_D I0926 14:14:42.257493 12023 net.cpp:357] relu5_2_D -> conv5_2_D (in-place) I0926 14:14:42.257503 12023 net.cpp:120] Setting up relu5_2_D I0926 14:14:42.257513 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120) I0926 14:14:42.257522 12023 layer_factory.hpp:74] Creating layer conv5_1_D I0926 14:14:42.257534 12023 net.cpp:90] Creating Layer conv5_1_D I0926 14:14:42.257566 12023 net.cpp:410] conv5_1_D <- conv5_2_D I0926 14:14:42.257580 12023 net.cpp:368] conv5_1_D -> conv5_1_D I0926 14:14:42.257591 12023 net.cpp:120] Setting up conv5_1_D I0926 14:14:42.313027 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120) I0926 14:14:42.313065 12023 layer_factory.hpp:74] Creating layer conv5_1_D_bn I0926 14:14:42.313086 12023 net.cpp:90] Creating Layer conv5_1_D_bn I0926 14:14:42.313099 12023 net.cpp:410] conv5_1_D_bn <- conv5_1_D I0926 14:14:42.313113 12023 net.cpp:357] conv5_1_D_bn -> conv5_1_D (in-place) I0926 14:14:42.313128 12023 net.cpp:120] Setting up conv5_1_D_bn I0926 14:14:42.313150 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120) I0926 14:14:42.313165 12023 layer_factory.hpp:74] Creating layer relu5_1_D I0926 14:14:42.313177 12023 net.cpp:90] Creating Layer relu5_1_D I0926 14:14:42.313186 12023 net.cpp:410] relu5_1_D <- conv5_1_D I0926 14:14:42.313196 12023 net.cpp:357] relu5_1_D -> conv5_1_D (in-place) I0926 14:14:42.313206 12023 net.cpp:120] Setting up relu5_1_D I0926 14:14:42.313217 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120) I0926 14:14:42.313225 12023 layer_factory.hpp:74] Creating layer upsample4 I0926 14:14:42.313237 12023 net.cpp:90] Creating Layer upsample4 I0926 14:14:42.313246 12023 net.cpp:410] upsample4 <- conv5_1_D I0926 14:14:42.313256 12023 net.cpp:410] upsample4 <- pool4_mask I0926 14:14:42.313268 12023 net.cpp:368] upsample4 -> pool4_D I0926 14:14:42.313280 12023 net.cpp:120] Setting up upsample4 F0926 14:14:42.313297 12023 upsample_layer.cpp:63] Check failed: bottom[0]->height() == bottom[1]->height() (23 vs. 19)

* Check failure stack trace: * @ 0x7fbaf6de5daa (unknown) @ 0x7fbaf6de5ce4 (unknown) @ 0x7fbaf6de56e6 (unknown) @ 0x7fbaf6de8687 (unknown) @ 0x7fbaf7226688 caffe::UpsampleLayer<>::Reshape() @ 0x7fbaf7194382 caffe::Net<>::Init() @ 0x7fbaf71960e2 caffe::Net<>::Net() @ 0x7fbaf71a34c0 caffe::Solver<>::InitTrainNet() @ 0x7fbaf71a4493 caffe::Solver<>::Init() @ 0x7fbaf71a4666 caffe::Solver<>::Solver() @ 0x40c600 caffe::GetSolver<>() @ 0x406641 train() @ 0x404be1 main @ 0x7fbaf62f6ec5 (unknown) @ 0x40518d (unknown) @ (nil) (unknown) 中止 (コアダンプ)

I have 2 classes. Input dimensions are H 300 × W 540. I googled this problem and I think upsample5 layer and upsample4 layer have some problems. Maybe the parameters are wrong. But I dont know how to solve this problem.

Sorry Im not good at Englsih. I'm very new to caffe so a little help would really be appreciated!

Timo-hab commented 7 years ago

You have to change the padding in prototxt file with: upsample_w: upsample_h:

t0ver commented 7 years ago

I have the Same problem. My Segnet_solver file looks like this: https://pastebin.com/4bQYJQdp

kavyakvk commented 7 years ago

I'm running into the same problem. I've found several threads on this topic but none of them mention how/ what to change the padding to-- does anyone have any insight?

nathanin commented 7 years ago

Look at this part of the INFO stream that Caffe prints during network setup:

I0926 14:14:42.313246 12023 net.cpp:410] upsample4 <- conv5_1_D
I0926 14:14:42.313256 12023 net.cpp:410] upsample4 <- pool4_mask
I0926 14:14:42.313268 12023 net.cpp:368] upsample4 -> pool4_D

It means that upsample4 has two bottom layers: conv5_1_D and pool4_mask.

pool4_mask is shaped (,,19, 34):

I0926 14:14:41.980121 12023 net.cpp:368] pool4 -> pool4_mask
I0926 14:14:41.980132 12023 net.cpp:120] Setting up pool4
I0926 14:14:41.980144 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008)
I0926 14:14:41.980156 12023 net.cpp:127] Top shape: 4 512 19 34 (1323008)

conv5_1_D is shaped (,,23, 30):

I0926 14:14:42.257522 12023 layer_factory.hpp:74] Creating layer conv5_1_D
I0926 14:14:42.257534 12023 net.cpp:90] Creating Layer conv5_1_D
I0926 14:14:42.257566 12023 net.cpp:410] conv5_1_D <- conv5_2_D
I0926 14:14:42.257580 12023 net.cpp:368] conv5_1_D -> conv5_1_D
I0926 14:14:42.257591 12023 net.cpp:120] Setting up conv5_1_D
I0926 14:14:42.313027 12023 net.cpp:127] Top shape: 4 512 23 30 (1413120)

The upsample layer requires the two inputs be the sameh and w. Since the convolutions do not change the blob h and w, I think you have to change the prototxt for upsample5 so that it gives a (,,19,30) blob instead of a (,,23,30) one.

You can easily do it by using the parameters mentioned by Timo-hab.

kavyakvk commented 7 years ago

Thank you so much! Just got it working.