szagoruyko / cvpr15deepcompare

Code and models for "Learning to Compare Image Patches via Convolutional Neural Networks"
http://imagine.enpc.fr/~zagoruys/deepcompare.html
Other
468 stars 169 forks source link

Assertion failed: 55 56 #14

Open mdaiter opened 8 years ago

mdaiter commented 8 years ago

Getting an assertion failed error within the cutorch library when loading your siam_desc_yosemite.bin and siam_2_stream_desc_yosemite.bin networks, followed by a segfault. Any thoughts? Here's the error: 55: assertion failed 56: assertion failed [1] 20092 segmentation fault (core dumped) -i ./outputDeepSiam/sfm_data.json -o outputDeepSiam -m -f 1

szagoruyko commented 8 years ago

there was a bug in max pooling, have just fixed it, can you check if it works?

mdaiter commented 8 years ago

@szagoruyko give me a sec

mdaiter commented 8 years ago

@szagoruyko Still comes up. Loading network 55: assertion failed 56: assertion failed $ Invalid argument 2: sizes do not match at /home/nomoko/torch/extra/cutorch/lib/THC/generic/THCTensorCopy.c:64

szagoruyko commented 8 years ago

idk, can you run test.sh ? also you could build it with cmake -DCMAKE_BUILD_TYPE=Debug and run gdb to check where it fails exactly.

mdaiter commented 8 years ago

It's failing on loadNetwork. Seems to be that the system is finding a mismatch in tensor sizes when loading your Siam_yosemite.bin and siam2stream_yosemite.bin files

szagoruyko commented 8 years ago

you mean test it failing?

mdaiter commented 8 years ago

I'm using the C++ API directly. Here's the snippet of code: https://github.com/mdaiter/openMVG/blob/thents/src/openMVG/features/deep/src/DeepClassifierTorch.cpp#L179-L189

szagoruyko commented 8 years ago

can you run my tests just to check that the files are consistent?