segnet caffe upsample top index 0 out of range - check scale settings match input pooling layer's downsample setup

I0305 15:58:08.603567 14672 solver.cpp:250] Solving VGG_ILSVRC_16_layer
I0305 15:58:08.603581 14672 solver.cpp:251] Learning Rate Policy: step
F0305 16:00:32.416029 14672 upsample_layer.cpp:127] upsample top index 0 out of range - check scale settings match input pooling layer's downsample setup
*** Check failure stack trace: ***
@ 0x7f372f8aa5cd google::LogMessage::Fail()
@ 0x7f372f8ac433 google::LogMessage::SendToLog()
@ 0x7f372f8aa15b google::LogMessage::Flush()
@ 0x7f372f8ace1e google::LogMessageFatal::~LogMessageFatal()
@ 0x7f373010616f caffe::UpsampleLayer<>::Backward_cpu()
@ 0x7f37300c8042 caffe::Net<>::BackwardFromTo()
@ 0x7f37300c8241 caffe::Net<>::Backward()
@ 0x7f37301efc7d caffe::Solver<>::Step()
@ 0x7f37301f0754 caffe::Solver<>::Solve()
@ 0x408019 train()
@ 0x405ce8 main
@ 0x7f372ef5e830 __libc_start_main
@ 0x406289 _start
@ (nil) (unknown)
Aborted (core dumped)

这事cpu版本的错误,我看到的解决方法如下:

由于这是作者自己改的caffe,而且版本比较老,所以可以做如下改动:

将upsample_layer.cpp中的第127,128行直接注释掉:

然后

make clean
make all

也就是重新编译caffe,因为这个cpp是caffe代码,所以必须重新编译caffe才可以。

posted @ 2018-03-26 19:46  甜豆儿  阅读(502)  评论(0编辑  收藏  举报