lmb-freiburg / flownet2

FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks
https://lmb.informatik.uni-freiburg.de/Publications/2017/IMKDB17/
Other
1k stars 318 forks source link

Check failed when make runtest #18

Closed xmfbit closed 7 years ago

xmfbit commented 7 years ago

When run make runtest after building FlowNet2, check failure error occurs in custom_data_layer:

[----------] 1 test from LayerFactoryTest/1, where TypeParam = caffe::CPUDevice<double>
[ RUN      ] LayerFactoryTest/1.TestCreateLayer
src/caffe/test/test_layer_factory.cpp:47: Failure
Value of: layer->type()
  Actual: "NormLayer"
Expected: iter->first
Which is: "ChannelNorm"
F0523 19:43:38.419502 14652 custom_data_layer.cpp:661] Check failed: !pthread_join(thread_, NULL) Pthread joining failed.
*** Check failure stack trace: ***
    @     0x7f212bcd95cd  google::LogMessage::Fail()
    @     0x7f212bcdb433  google::LogMessage::SendToLog()
    @     0x7f212bcd915b  google::LogMessage::Flush()
    @     0x7f212bcdbe1e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7f2126a957d2  caffe::CustomDataLayer<>::JoinPrefetchThread()
    @     0x7f2126a99400  caffe::CustomDataLayer<>::~CustomDataLayer()
    @     0x7f2126a996c9  caffe::CustomDataLayer<>::~CustomDataLayer()
    @           0x82a58e  caffe::LayerFactoryTest_TestCreateLayer_Test<>::TestBody()
    @           0x90e0d3  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0x9076ea  testing::Test::Run()
    @           0x907838  testing::TestInfo::Run()
    @           0x907915  testing::TestCase::Run()
    @           0x908bef  testing::internal::UnitTestImpl::RunAllTests()
    @           0x908f13  testing::UnitTest::Run()
    @           0x46d47d  main
    @     0x7f2125db7830  __libc_start_main
    @           0x474e69  _start
    @              (nil)  (unknown)
Makefile:527: recipe for target 'runtest' failed
make: *** [runtest] Aborted (core dumped)

I am using Ubuntu16.04.2, GCC version 5.4.0, CUDA8.0 with CUDNN6.0, with Intel MKL.

thbupt commented 7 years ago

I got the same error when making runtest, but it runs well when tranining.

nikolausmayer commented 7 years ago

Hi, the custom_data_layer is one of our own layers, right? We didn't include proper testing, so I'm not surprised that make runtest fails. As @thbupt comments, it should still run fine.

Best, Nikolaus