liruoteng/FlowNet

make runtest: Check failed: ExactNumTopBlobs() == top.size() (1 vs. 2)

Closed this issue · 7 comments

Hi,
Have you ever experienced getting error like below during make runtest?
I tried to fix it but somehow still no luck. Thanks

ImageDataLayerTest/3.TestResize
F0102 21:53:53.097087 14329 layer.hpp:407] Check failed: ExactNumTopBlobs() == top.size() (1 vs. 2) ImageData Layer produces 1 top blob(s) as output.
*** Check failure stack trace: ***
    @     0x2aebfdd3bdaa  (unknown)
    @     0x2aebfdd3bce4  (unknown)
    @     0x2aebfdd3b6e6  (unknown)
    @     0x2aebfdd3e687  (unknown)
    @           0x47ebf9  caffe::Layer<>::CheckBlobCounts()
    @           0x48096f  caffe::Layer<>::SetUp()
    @           0x497f41  caffe::ImageDataLayerTest_TestResize_Test<>::TestBody()
    @           0x83abf3  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0x8318d7  testing::Test::Run()
    @           0x83197e  testing::TestInfo::Run()
    @           0x831a85  testing::TestCase::Run()
    @           0x834dc8  testing::internal::UnitTestImpl::RunAllTests()
    @           0x835057  testing::UnitTest::Run()
    @           0x4608ba  main
    @     0x2aec00d0bf45  (unknown)
    @           0x467789  (unknown)
    @              (nil)  (unknown)
make: *** [runtest] Aborted (core dumped)

Hi I guess this error is probably caused by input image size. You may want to try input image size of 384x512px then it should be fine.

Well it's on runtest...

I have the same issue with you, have you solved this problem?

@christosavg @thomhert I have the same issue with you, have you solved this problem?

layers {
  name: "data"
  type: IMAGE_DATA
  top: "data"
  top: "label"
  include {
    phase: TRAIN
  }
  image_data_param {
    source: "train2.txt"
    batch_size: 100
  }
}

There should be 2 top data and label:

  top: "data"
  top: "label"

I have the same issue, which prototxt file would be modify? @deepakcrk

Well, I have the same issue, have you solved this problem?