caffe 报错--F0315 19:54:42.882098 40123 insert_splits.cpp:75] Unknown bottom blob 'pt_loc_flat' (layer 'pt_loss', bottom index 0)

F0315 19:54:42.882098 40123 insert_splits.cpp:75] Unknown bottom blob 'pt_loc_flat' (layer 'pt_loss', bottom index 0)

F0315 19:54:42.882098 40123 insert_splits.cpp:75] Unknown bottom blob 'pt_loc_flat' (layer 'pt_loss', bottom index 0)
*** Check failure stack trace: ***
    @     0x7f5315eb25cd  google::LogMessage::Fail()
    @     0x7f5315eb4433  google::LogMessage::SendToLog()
    @     0x7f5315eb215b  google::LogMessage::Flush()
    @     0x7f5315eb4e1e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7f531763f0c3  caffe::InsertSplits()
    @     0x7f5316bfa633  caffe::Net::Init()
    @     0x7f5316bfe00e  caffe::Net::Net()
    @     0x7f5317607b80  caffe::Solver::InitTrainNet()
    @     0x7f53176080bd  caffe::Solver::Init()
    @     0x7f53176085a2  caffe::Solver::Solver()
    @     0x7f5316bd8ec6  caffe::Creator_AdamSolver()
    @           0x41a836  caffe::SolverRegistry::CreateSolver()
    @           0x411d92  train()
    @           0x40c896  main
    @     0x7f5314634840  __libc_start_main
    @           0x40d4e9  _start
    @              (nil)  (unknown)
Aborted (core dumped)

原因在于自己搭建网络的时候,网络很多,搭建出来的train.prototxt有5,6千行,然后用netscope看也是正常的。问题出在loss层顺序早于生成top 层名pt_loc_flat的地方。把loss层往底下放放即可。

posted @ 2022-03-15 19:58  无左无右  阅读(56)  评论(0编辑  收藏  举报