caffe: test code Check failed: K_ == new_K (768 vs. 1024) Input size incompatible with inner product parameters.

时间:2022-03-04 14:58:57

I0327 20:24:22.966171 20521 net.cpp:849] Copying source layer drop7
I0327 20:24:22.966179 20521 net.cpp:849] Copying source layer fc8_
I0327 20:24:22.968056 20521 net.cpp:846] Ignoring source layer sigmoid
I0327 20:24:22.968066 20521 net.cpp:846] Ignoring source layer loss
I0327 20:24:22.983455 20521 caffe.cpp:268] Running for 7615 iterations.
I0327 20:24:22.983494 20521 caffe.cpp:286] batch 0/7615, waiting...
I0327 20:24:22.983574 20521 base_data_layer.cpp:112] Prefetch copied
I0327 20:24:22.983589 20521 base_data_layer.cpp:120] copy att index
I0327 20:24:23.537497 20521 caffe.cpp:292] result.size: 3 1 43 43
I0327 20:24:23.555335 20521 caffe.cpp:286] batch 1/7615, waiting...
I0327 20:24:23.555459 20521 base_data_layer.cpp:112] Prefetch copied
I0327 20:24:23.555503 20521 base_data_layer.cpp:120] copy att index
F0327 20:24:23.587508 20521 inner_product_layer.cpp:61] Check failed: K_ == new_K (768 vs. 1024) Input size incompatible with inner product parameters.
*** Check failure stack trace: ***
    @     0x7fa7aaa85dbd  google::LogMessage::Fail()
    @     0x7fa7aaa87cf8  google::LogMessage::SendToLog()
    @     0x7fa7aaa85953  google::LogMessage::Flush()
    @     0x7fa7aaa8862e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7fa7ab2dd8cd  caffe::InnerProductLayer<>::Reshape()
    @           0x419755  caffe::Layer<>::Forward()
    @     0x7fa7ab1f8cb7  caffe::Net<>::ForwardFromTo()
    @     0x7fa7ab1f8a7f  caffe::Net<>::ForwardPrefilled()
    @     0x7fa7ab1f8e4a  caffe::Net<>::Forward()
    @           0x414c72  test()
    @           0x416c62  main
    @     0x7fa7a9f9cec5  __libc_start_main
    @           0x4131c9  (unknown)
Aborted (core dumped)
wangxiao@wangxiao-GTX980:~/Downloads/caffe-master$

-------------------