chanyn / 3Dpose_ssl

3D Human Pose Machines with Self-supervised Learning
411 stars 84 forks source link

Error when running test_human16.sh: Check failed: FLAGS_weights.size() > 0 (0 vs. 0) Need model weights to score. #25

Open joshhaug opened 4 years ago

joshhaug commented 4 years ago

Using the code located at the dropbox link in the README, I was able to successfully compile Caffe and PyCaffe. But when I try to run sh test_human16.sh . ../models/model_extension_mask3d/mask3d_iter_400000.caffemodel mask3d 5 I get the following error:

mask3d/result1
sed s#DATA_FOLDER#/home/3Dpose_ssl/data/h36m/gt/test/test1.txt#g ./template_16_merge.prototxt > ./test_tmp.prototxt
F0623 23:22:46.469914 29140 caffe.cpp:263] Check failed: FLAGS_weights.size() > 0 (0 vs. 0) Need model weights to score.
*** Check failure stack trace: ***
    @     0x7f5ce2a215cd  google::LogMessage::Fail()
    @     0x7f5ce2a23433  google::LogMessage::SendToLog()
    @     0x7f5ce2a2115b  google::LogMessage::Flush()
    @     0x7f5ce2a23e1e  google::LogMessageFatal::~LogMessageFatal()
    @           0x40a5b4  test()
    @           0x4078d4  main
    @     0x7f5ce11b7830  __libc_start_main
    @           0x4081e9  _start
    @              (nil)  (unknown)
test_human16.sh: line 49: 29140 Aborted                 (core dumped) ../caffe-3dssl/build/tools/caffe test -gpu=1 -model=$tmp_proto_fn_2
test_human16.sh: line 46: -weights=../models/model_extension_mask3d/mask3d_iter_400000.caffemodel: No such file or directory

Any idea what could be causing this? The file mask3d_iter_400000.caffemodel is definitely in that location. I even tried using a complete path (not a relative one) and got the same error.

kezewang commented 4 years ago

I am afraid this is still the path issue. Please try with the absolute path.