• segnet caffe upsample top index 0 out of range


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

    本博客专注于错误锦集,在作死的边缘试探
  • 相关阅读:
    Java中的国际化
    springcloud介绍
    SpringMVC之请求和响应
    JAVA坦克大战系列10-高效雷达(下)
    CF920F SUM and REPLACE
    luoguP4141 消失之物
    luoguP2843 暗杀
    luoguP5521 [yLOI2019] 梅深不见冬
    CF940E Cashback
    CF1051D Bicolorings
  • 原文地址:https://www.cnblogs.com/SweetBeens/p/8653119.html
Copyright © 2020-2023  润新知