码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2018-03-26 20:42:40      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:img   index   from   out   backward   end   必须   google   作者   

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 layers 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才可以。

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

标签:img   index   from   out   backward   end   必须   google   作者   

原文地址:https://www.cnblogs.com/SweetBeens/p/8653119.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!