"DPM" deformable part Models matlab code debugging process under Windows

Source: Internet
Author: User

I downloaded the voc-release5.

1. In accordance with this article, have been operated over: Http://blog.csdn.net/pozen/article/details/7023742#quote

2. Run demo not successfully continue to modify according to http://cfanz.cn/index.php?c=article&a=read&id=128978 method

2.1 In press this article run >> Mex cascade.cpp model.cpp times wrong: d:\progra~1\matlab\r2012b\bin\mex.pl:error: ' cascade.cpp ' not found .

Workaround: Modify the current path of MATLAB to the path where the cascade.cpp file is stored

2.2 Open Timer.h To change # include <sys\time.h> to #include <time.h>

2.3 Surprises. No error occurred while running the MEX Fconv_var_dim.cpp

3. Running DEMO.M

3.1 Comment out

% fprintf (' Compiling the Code ... ');
% Compile;
% fprintf (' done.\n\n ');

Run Error: Undefined function ' resize ' for input arguments of type ' double '.

I still can't comment out the three sentences above.

After canceling the comment, put the 41st line in cascade_compile.m mexcmd = [mexcmd ' star-cascade/cascade.cc star-cascade/model.cc '];  Change to: Mexcmd = [mexcmd ' star-cascade/cascade.cpp star-cascade/model.cpp ']; Because the name was changed.

To change the current path to VOC-RELEASE5: F:\competition\Deformable part MODEL\VOC-RELEASE5

Do the above step, do not go on. Various error. Discover that the tutorials on the web are corresponding to the 4.01 version of my version 5 even the filenames are not exactly the same

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

Download old version voc-release4.01

By: Http://www.verydemo.com/demo_c92_i211009.html's instructions are actually http://blog.csdn.net/pozen/article/details/7023742#. Quote is followed by a step:

change void *process (void *thread_arg) to void process (void *thread_arg)

In addition, you need to comment out the Mex-o fconvsse.cc-o Fconv in COMPILE.M.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.