Could the outputs of convolution layer be the final outputs of the network?Does Caffe support output of [numExamples, NumChannels, heights, width] ?
2-D convolution, in generally, will get the 2-D output. I directed passed convolution layer to the loss layer. The dimension of output of the convolution layer will be [numExamples, NumChannels, heights, width]. And I am not sure whether it works. Because the loss go up and down, and it seems that it does not converge.I am wondering whether Caffe support output of the dimension [numExamples, NumChannels, heights, width]. How to make sure my network work? I think I could convert the output of convolution layer as a vector, and then feed into the loss layer? But I do not know how to configure the network to do the convertion
there doesn't seem to be a reason why you can't do this. Your final layer is absolutely allowed to be 2D, look into the HDF5 data layers and there examples for more details.
But it seems never converge. My batch size is 128 and I have nearly 20000 examples and initial learning rate is small 1e-4. You could see the loss is very large the optimization is done.
teration 0, Testing net (#0)
I1029 21:03:35.152156 9120 solver.cpp:298] Test net output #0: loss = 74.1767 (* 1 = 74.1767 loss)
I1029 21:03:35.213614 9120 solver.cpp:191] Iteration 0, loss = 74.0159
I1029 21:03:35.213654 9120 solver.cpp:206] Train net output #0: loss = 74.0159 (* 1 = 74.0159 loss)
I1029 21:03:35.213690 9120 solver.cpp:403] Iteration 0, lr = 0.0001
...
...
I1029 21:08:41.479948 9120 solver.cpp:191] Iteration 2000, loss = 54.8957
I1029 21:08:41.480031 9120 solver.cpp:206] Train net output #0: loss = 54.8957 (* 1 = 54.8957 loss)
I1029 21:08:41.480074 9120 solver.cpp:403] Iteration 2000, lr = 0.0001
I1029 21:10:23.756464 9120 solver.cpp:247] Iteration 3000, Testing net (#0)
I1029 21:11:14.795874 9120 solver.cpp:298] Test net output #0: loss = 50.0647 (* 1 = 50.0647 loss)
I1029 21:13:48.295984 9120 solver.cpp:191] Iteration 4000, loss = 51.5993
I1029 21:13:48.296025 9120 solver.cpp:206] Train net output #0: loss = 51.5993 (* 1 = 51.5993 loss)
I1029 21:13:48.296046 9120 solver.cpp:403] Iteration 4000, lr = 0.0001
I1029 21:15:30.564489 9120 solver.cpp:247] Iteration 5000, Testing net (#0)
I1029 21:16:21.598614 9120 solver.cpp:298] Test net output #0: loss = 50.0643 (* 1 = 50.0643 loss)
I1029 21:16:21.659729 9120 solver.cpp:191] Iteration 5000, loss = 49.3238
I1030 02:12:41.266948 9120 solver.cpp:191] Iteration 121000, loss = 51.5878
I1030 02:12:41.267017 9120 solver.cpp:206] Train net output #0: loss = 51.5878 (* 1 = 51.5878 loss)
I1030 02:12:41.267043 9120 solver.cpp:403] Iteration 121000, lr = 1e-06
I1030 02:14:23.541210 9120 solver.cpp:247] Iteration 122000, Testing net (#0)
I1030 02:15:14.577121 9120 solver.cpp:298] Test net output #0: loss = 50.0633 (* 1 = 50.0633 loss)
I1030 02:15:14.638247 9120 solver.cpp:191] Iteration 122000, loss = 49.7377
I1030 02:15:14.638319 9120 solver.cpp:206] Train net output #0: loss = 49.7377 (* 1 = 49.7377 loss)
I1030 02:15:14.638345 9120 solver.cpp:403] Iteration 122000, lr = 1e-06
I1030 02:16:05.830066 9120 solver.cpp:317] Snapshotting to models/low_tohighresolution_net/low_tohighresolution_train_iter_122500.caffemodel
I1030 02:16:05.830657 9120 solver.cpp:324] Snapshotting solver state to models/low_tohighresolution_net/low_tohighresolution_train_iter_122500.solverstate
I1030 02:16:05.830808 9120 solver.cpp:233] Optimization Done.
I1030 02:16:05.830826 9120 caffe.cpp:121] Optimization Done.
Well that depends on what your loss function is surely? I see what you mean about the loss function not converging though. I'm currently looking into building something similar but I haven't tested it on any real data yet so I can't comment on why its not converging, merely implementation issues unfortunately.
I used EUCLIDEAN_LOSS. I hope it works
On Thu, Oct 30, 2014 at 10:26 PM, mauinz [email protected] wrote:
Well that depends on what your loss function is surely? I see what you mean about the loss function not converging though. I'm currently looking into building something similar but I haven't tested it on any real data yet so I can't comment on why its not converging, merely implementation issues unfortunately.
— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/1375#issuecomment-61099759.
Best Regards Kevin
Mobil: 18813915655(shenzhen)
When I changed loss function. It seems with same problem. A few steps later, the loss did not decrease. It is strange. Here is my network's configure, and the log of loss. Would you help me to check what's wrong?
On Thu, Oct 30, 2014 at 11:17 PM, Kevin Zhu [email protected] wrote:
I used EUCLIDEAN_LOSS. I hope it works
On Thu, Oct 30, 2014 at 10:26 PM, mauinz [email protected] wrote:
Well that depends on what your loss function is surely? I see what you mean about the loss function not converging though. I'm currently looking into building something similar but I haven't tested it on any real data yet so I can't comment on why its not converging, merely implementation issues unfortunately.
— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/1375#issuecomment-61099759.
Best Regards Kevin
Mobil: 18813915655(shenzhen)
Best Regards Kevin
Mobil: 18813915655(shenzhen)
I1030 21:29:52.133105 25449 caffe.cpp:99] Use GPU with device ID 0 I1030 21:29:52.524904 25449 caffe.cpp:107] Starting Optimization I1030 21:29:52.525101 25449 solver.cpp:32] Initializing solver from parameters: test_iter: 200 test_interval: 1000 base_lr: 0.01 display: 100 max_iter: 152500 lr_policy: "step" gamma: 0.1 momentum: 0 weight_decay: 0 stepsize: 30000 snapshot: 10000 snapshot_prefix: "models/low_tohighresolution_net/low_tohighresolution_train" random_seed: 1701 net: "models/low_tohighresolution_net/train_val.prototxt" I1030 21:29:52.525163 25449 solver.cpp:67] Creating training net from net file: models/low_tohighresolution_net/train_val.prototxt I1030 21:29:52.525620 25449 net.cpp:275] The NetState phase (0) differed from the phase (1) specified by a rule in layer lowdata I1030 21:29:52.525648 25449 net.cpp:275] The NetState phase (0) differed from the phase (1) specified by a rule in layer highdata I1030 21:29:52.525782 25449 net.cpp:39] Initializing net from parameters: name: "LowToHighResolutionNet" layers { top: "lowdata" name: "lowdata" type: DATA data_param { source: "examples/low_tohighresolution_net/lowImage_train_lmdb" batch_size: 128 backend: LMDB } include { phase: TRAIN } transform_param { scale: 0.00390625 } } layers { top: "highdata" name: "highdata" type: DATA data_param { source: "examples/low_tohighresolution_net/highImage_train_lmdb" batch_size: 128 backend: LMDB } include { phase: TRAIN } transform_param { scale: 0.00390625 } } layers { bottom: "lowdata" top: "conv1" name: "conv1" type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 64 kernel_size: 9 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } } layers { bottom: "conv1" top: "conv1" name: "relu1" type: RELU } layers { bottom: "conv1" top: "conv2" name: "conv2" type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 32 kernel_size: 1 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 1 } } } layers { bottom: "conv2" top: "conv2" name: "relu2" type: RELU } layers { bottom: "conv2" top: "conv3" name: "conv3" type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 1 kernel_size: 5 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } } layers { bottom: "conv3" top: "conv3" name: "relu3" type: RELU } layers { bottom: "conv3" bottom: "highdata" top: "loss" name: "loss" type: SIGMOID_CROSS_ENTROPY_LOSS } state { phase: TRAIN } I1030 21:29:52.525882 25449 net.cpp:67] Creating Layer lowdata I1030 21:29:52.525907 25449 net.cpp:356] lowdata -> lowdata I1030 21:29:52.525944 25449 net.cpp:96] Setting up lowdata I1030 21:29:52.526104 25449 data_layer.cpp:68] Opening lmdb examples/low_tohighresolution_net/lowImage_train_lmdb I1030 21:29:52.526160 25449 data_layer.cpp:128] output data size: 128,1,32,32 I1030 21:29:52.526550 25449 net.cpp:103] Top shape: 128 1 32 32 (131072) I1030 21:29:52.526582 25449 net.cpp:67] Creating Layer highdata I1030 21:29:52.526599 25449 net.cpp:356] highdata -> highdata I1030 21:29:52.526624 25449 net.cpp:96] Setting up highdata I1030 21:29:52.526796 25449 data_layer.cpp:68] Opening lmdb examples/low_tohighresolution_net/highImage_train_lmdb I1030 21:29:52.526873 25449 data_layer.cpp:128] output data size: 128,1,20,20 I1030 21:29:52.527107 25449 net.cpp:103] Top shape: 128 1 20 20 (51200) I1030 21:29:52.527151 25449 net.cpp:67] Creating Layer conv1 I1030 21:29:52.527173 25449 net.cpp:394] conv1 <- lowdata I1030 21:29:52.527211 25449 net.cpp:356] conv1 -> conv1 I1030 21:29:52.527238 25449 net.cpp:96] Setting up conv1 I1030 21:29:52.527652 25449 net.cpp:103] Top shape: 128 64 24 24 (4718592) I1030 21:29:52.527720 25449 net.cpp:67] Creating Layer relu1 I1030 21:29:52.527756 25449 net.cpp:394] relu1 <- conv1 I1030 21:29:52.527776 25449 net.cpp:345] relu1 -> conv1 (in-place) I1030 21:29:52.527794 25449 net.cpp:96] Setting up relu1 I1030 21:29:52.527812 25449 net.cpp:103] Top shape: 128 64 24 24 (4718592) I1030 21:29:52.527832 25449 net.cpp:67] Creating Layer conv2 I1030 21:29:52.527845 25449 net.cpp:394] conv2 <- conv1 I1030 21:29:52.527866 25449 net.cpp:356] conv2 -> conv2 I1030 21:29:52.527885 25449 net.cpp:96] Setting up conv2 I1030 21:29:52.528028 25449 net.cpp:103] Top shape: 128 32 24 24 (2359296) I1030 21:29:52.528091 25449 net.cpp:67] Creating Layer relu2 I1030 21:29:52.528118 25449 net.cpp:394] relu2 <- conv2 I1030 21:29:52.528146 25449 net.cpp:345] relu2 -> conv2 (in-place) I1030 21:29:52.528173 25449 net.cpp:96] Setting up relu2 I1030 21:29:52.528195 25449 net.cpp:103] Top shape: 128 32 24 24 (2359296) I1030 21:29:52.528229 25449 net.cpp:67] Creating Layer conv3 I1030 21:29:52.528254 25449 net.cpp:394] conv3 <- conv2 I1030 21:29:52.528280 25449 net.cpp:356] conv3 -> conv3 I1030 21:29:52.528311 25449 net.cpp:96] Setting up conv3 I1030 21:29:52.528444 25449 net.cpp:103] Top shape: 128 1 20 20 (51200) I1030 21:29:52.528484 25449 net.cpp:67] Creating Layer relu3 I1030 21:29:52.528509 25449 net.cpp:394] relu3 <- conv3 I1030 21:29:52.528540 25449 net.cpp:345] relu3 -> conv3 (in-place) I1030 21:29:52.528569 25449 net.cpp:96] Setting up relu3 I1030 21:29:52.528592 25449 net.cpp:103] Top shape: 128 1 20 20 (51200) I1030 21:29:52.528623 25449 net.cpp:67] Creating Layer loss I1030 21:29:52.528645 25449 net.cpp:394] loss <- conv3 I1030 21:29:52.528674 25449 net.cpp:394] loss <- highdata I1030 21:29:52.528703 25449 net.cpp:356] loss -> loss I1030 21:29:52.528733 25449 net.cpp:96] Setting up loss I1030 21:29:52.528769 25449 net.cpp:103] Top shape: 1 1 1 1 (1) I1030 21:29:52.528795 25449 net.cpp:109] with loss weight 1 I1030 21:29:52.528913 25449 net.cpp:170] loss needs backward computation. I1030 21:29:52.528939 25449 net.cpp:170] relu3 needs backward computation. I1030 21:29:52.528961 25449 net.cpp:170] conv3 needs backward computation. I1030 21:29:52.528983 25449 net.cpp:170] relu2 needs backward computation. I1030 21:29:52.529005 25449 net.cpp:170] conv2 needs backward computation. I1030 21:29:52.529026 25449 net.cpp:170] relu1 needs backward computation. I1030 21:29:52.529047 25449 net.cpp:170] conv1 needs backward computation. I1030 21:29:52.529068 25449 net.cpp:172] highdata does not need backward computation. I1030 21:29:52.529090 25449 net.cpp:172] lowdata does not need backward computation. I1030 21:29:52.529111 25449 net.cpp:208] This network produces output loss I1030 21:29:52.529142 25449 net.cpp:467] Collecting Learning Rate and Weight Decay. I1030 21:29:52.529171 25449 net.cpp:219] Network initialization done. I1030 21:29:52.529192 25449 net.cpp:220] Memory required for data: 57761796 I1030 21:29:52.529839 25449 solver.cpp:151] Creating test net (#0) specified by net file: models/low_tohighresolution_net/train_val.prototxt I1030 21:29:52.529911 25449 net.cpp:275] The NetState phase (1) differed from the phase (0) specified by a rule in layer lowdata I1030 21:29:52.529940 25449 net.cpp:275] The NetState phase (1) differed from the phase (0) specified by a rule in layer highdata I1030 21:29:52.530164 25449 net.cpp:39] Initializing net from parameters: name: "LowToHighResolutionNet" layers { top: "lowdata" name: "lowdata" type: DATA data_param { source: "examples/low_tohighresolution_net/lowImage_train_lmdb" batch_size: 1000 backend: LMDB } include { phase: TEST } transform_param { scale: 0.00390625 } } layers { top: "highdata" name: "highdata" type: DATA data_param { source: "examples/low_tohighresolution_net/highImage_train_lmdb" batch_size: 1000 backend: LMDB } include { phase: TEST } transform_param { scale: 0.00390625 } } layers { bottom: "lowdata" top: "conv1" name: "conv1" type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 64 kernel_size: 9 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } } layers { bottom: "conv1" top: "conv1" name: "relu1" type: RELU } layers { bottom: "conv1" top: "conv2" name: "conv2" type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 32 kernel_size: 1 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 1 } } } layers { bottom: "conv2" top: "conv2" name: "relu2" type: RELU } layers { bottom: "conv2" top: "conv3" name: "conv3" type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 1 kernel_size: 5 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } } layers { bottom: "conv3" top: "conv3" name: "relu3" type: RELU } layers { bottom: "conv3" bottom: "highdata" top: "loss" name: "loss" type: SIGMOID_CROSS_ENTROPY_LOSS } state { phase: TEST } I1030 21:29:52.530313 25449 net.cpp:67] Creating Layer lowdata I1030 21:29:52.530351 25449 net.cpp:356] lowdata -> lowdata I1030 21:29:52.530385 25449 net.cpp:96] Setting up lowdata I1030 21:29:52.530495 25449 data_layer.cpp:68] Opening lmdb examples/low_tohighresolution_net/lowImage_train_lmdb I1030 21:29:52.530549 25449 data_layer.cpp:128] output data size: 1000,1,32,32 I1030 21:29:52.535559 25449 net.cpp:103] Top shape: 1000 1 32 32 (1024000) I1030 21:29:52.535612 25449 net.cpp:67] Creating Layer highdata I1030 21:29:52.535645 25449 net.cpp:356] highdata -> highdata I1030 21:29:52.535679 25449 net.cpp:96] Setting up highdata I1030 21:29:52.535778 25449 data_layer.cpp:68] Opening lmdb examples/low_tohighresolution_net/highImage_train_lmdb I1030 21:29:52.535825 25449 data_layer.cpp:128] output data size: 1000,1,20,20 I1030 21:29:52.537526 25449 net.cpp:103] Top shape: 1000 1 20 20 (400000) I1030 21:29:52.537559 25449 net.cpp:67] Creating Layer conv1 I1030 21:29:52.537572 25449 net.cpp:394] conv1 <- lowdata I1030 21:29:52.537587 25449 net.cpp:356] conv1 -> conv1 I1030 21:29:52.537613 25449 net.cpp:96] Setting up conv1 I1030 21:29:52.537932 25449 net.cpp:103] Top shape: 1000 64 24 24 (36864000) I1030 21:29:52.537961 25449 net.cpp:67] Creating Layer relu1 I1030 21:29:52.537979 25449 net.cpp:394] relu1 <- conv1 I1030 21:29:52.538002 25449 net.cpp:345] relu1 -> conv1 (in-place) I1030 21:29:52.538020 25449 net.cpp:96] Setting up relu1 I1030 21:29:52.538034 25449 net.cpp:103] Top shape: 1000 64 24 24 (36864000) I1030 21:29:52.538094 25449 net.cpp:67] Creating Layer conv2 I1030 21:29:52.538115 25449 net.cpp:394] conv2 <- conv1 I1030 21:29:52.538131 25449 net.cpp:356] conv2 -> conv2 I1030 21:29:52.538151 25449 net.cpp:96] Setting up conv2 I1030 21:29:52.538293 25449 net.cpp:103] Top shape: 1000 32 24 24 (18432000) I1030 21:29:52.538319 25449 net.cpp:67] Creating Layer relu2 I1030 21:29:52.538334 25449 net.cpp:394] relu2 <- conv2 I1030 21:29:52.538355 25449 net.cpp:345] relu2 -> conv2 (in-place) I1030 21:29:52.538373 25449 net.cpp:96] Setting up relu2 I1030 21:29:52.538388 25449 net.cpp:103] Top shape: 1000 32 24 24 (18432000) I1030 21:29:52.538404 25449 net.cpp:67] Creating Layer conv3 I1030 21:29:52.538418 25449 net.cpp:394] conv3 <- conv2 I1030 21:29:52.538439 25449 net.cpp:356] conv3 -> conv3 I1030 21:29:52.538460 25449 net.cpp:96] Setting up conv3 I1030 21:29:52.538532 25449 net.cpp:103] Top shape: 1000 1 20 20 (400000) I1030 21:29:52.538561 25449 net.cpp:67] Creating Layer relu3 I1030 21:29:52.538576 25449 net.cpp:394] relu3 <- conv3 I1030 21:29:52.538594 25449 net.cpp:345] relu3 -> conv3 (in-place) I1030 21:29:52.538609 25449 net.cpp:96] Setting up relu3 I1030 21:29:52.538624 25449 net.cpp:103] Top shape: 1000 1 20 20 (400000) I1030 21:29:52.538645 25449 net.cpp:67] Creating Layer loss I1030 21:29:52.538667 25449 net.cpp:394] loss <- conv3 I1030 21:29:52.538694 25449 net.cpp:394] loss <- highdata I1030 21:29:52.538712 25449 net.cpp:356] loss -> loss I1030 21:29:52.538728 25449 net.cpp:96] Setting up loss I1030 21:29:52.538744 25449 net.cpp:103] Top shape: 1 1 1 1 (1) I1030 21:29:52.538759 25449 net.cpp:109] with loss weight 1 I1030 21:29:52.538777 25449 net.cpp:170] loss needs backward computation. I1030 21:29:52.538792 25449 net.cpp:170] relu3 needs backward computation. I1030 21:29:52.538806 25449 net.cpp:170] conv3 needs backward computation. I1030 21:29:52.538820 25449 net.cpp:170] relu2 needs backward computation. I1030 21:29:52.538832 25449 net.cpp:170] conv2 needs backward computation. I1030 21:29:52.538846 25449 net.cpp:170] relu1 needs backward computation. I1030 21:29:52.538857 25449 net.cpp:170] conv1 needs backward computation. I1030 21:29:52.538871 25449 net.cpp:172] highdata does not need backward computation. I1030 21:29:52.538883 25449 net.cpp:172] lowdata does not need backward computation. I1030 21:29:52.538895 25449 net.cpp:208] This network produces output loss I1030 21:29:52.538913 25449 net.cpp:467] Collecting Learning Rate and Weight Decay. I1030 21:29:52.538929 25449 net.cpp:219] Network initialization done. I1030 21:29:52.538941 25449 net.cpp:220] Memory required for data: 451264004 I1030 21:29:52.538980 25449 solver.cpp:41] Solver scaffolding done. I1030 21:29:52.539000 25449 solver.cpp:160] Solving LowToHighResolutionNet I1030 21:29:52.539032 25449 solver.cpp:247] Iteration 0, Testing net (#0) I1030 21:30:47.866056 25449 solver.cpp:298] Test net output #0: loss = 293.671 (* 1 = 293.671 loss) I1030 21:30:47.931505 25449 solver.cpp:191] Iteration 0, loss = 293.53 I1030 21:30:47.931545 25449 solver.cpp:206] Train net output #0: loss = 293.53 (* 1 = 293.53 loss) I1030 21:30:47.931579 25449 solver.cpp:403] Iteration 0, lr = 0.01 I1030 21:30:58.439368 25449 solver.cpp:191] Iteration 100, loss = 277.273 I1030 21:30:58.439430 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:30:58.439450 25449 solver.cpp:403] Iteration 100, lr = 0.01 I1030 21:31:08.943487 25449 solver.cpp:191] Iteration 200, loss = 277.273 I1030 21:31:08.943562 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:31:08.943583 25449 solver.cpp:403] Iteration 200, lr = 0.01 I1030 21:31:19.450343 25449 solver.cpp:191] Iteration 300, loss = 277.273 I1030 21:31:19.450539 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:31:19.450562 25449 solver.cpp:403] Iteration 300, lr = 0.01 I1030 21:31:29.958243 25449 solver.cpp:191] Iteration 400, loss = 277.273 I1030 21:31:29.958298 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:31:29.958317 25449 solver.cpp:403] Iteration 400, lr = 0.01 I1030 21:31:40.468978 25449 solver.cpp:191] Iteration 500, loss = 277.273 I1030 21:31:40.469027 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:31:40.469045 25449 solver.cpp:403] Iteration 500, lr = 0.01 I1030 21:31:50.976698 25449 solver.cpp:191] Iteration 600, loss = 277.273 I1030 21:31:50.976888 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:31:50.976910 25449 solver.cpp:403] Iteration 600, lr = 0.01 I1030 21:32:01.486208 25449 solver.cpp:191] Iteration 700, loss = 277.273 I1030 21:32:01.486258 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:32:01.486277 25449 solver.cpp:403] Iteration 700, lr = 0.01 I1030 21:32:11.996223 25449 solver.cpp:191] Iteration 800, loss = 277.273 I1030 21:32:11.996273 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:32:11.996290 25449 solver.cpp:403] Iteration 800, lr = 0.01 I1030 21:32:22.504845 25449 solver.cpp:191] Iteration 900, loss = 277.273 I1030 21:32:22.505107 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:32:22.505141 25449 solver.cpp:403] Iteration 900, lr = 0.01 I1030 21:32:32.908591 25449 solver.cpp:247] Iteration 1000, Testing net (#0) I1030 21:33:27.743559 25449 solver.cpp:298] Test net output #0: loss = 276.196 (* 1 = 276.196 loss) I1030 21:33:27.806865 25449 solver.cpp:191] Iteration 1000, loss = 277.273 I1030 21:33:27.806903 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:33:27.806926 25449 solver.cpp:403] Iteration 1000, lr = 0.01 I1030 21:33:38.300662 25449 solver.cpp:191] Iteration 1100, loss = 277.273 I1030 21:33:38.300712 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:33:38.300731 25449 solver.cpp:403] Iteration 1100, lr = 0.01 I1030 21:33:48.790828 25449 solver.cpp:191] Iteration 1200, loss = 277.273 I1030 21:33:48.790879 25449 solver.cpp:206] Train net output #0: loss = 277.273 (* 1 = 277.273 loss) I1030 21:33:48.790897 25449 solver.cpp:403] Iteration 1200, lr = 0.01
For several losses the only dimension requirement is that the output and ground truth have the same shape. See #1341.
Whether or not your net trains properly for your task is a whole other matter. Ask modeling and usage questions on the caffe-users mailing list.