peiyunh / tiny

Tiny Face Detector, CVPR 2017
https://cs.cmu.edu/~peiyunh/tiny
Other
1.13k stars 319 forks source link

problem :Undefined function or variable 'dagnn.Split'. #42

Closed special-yang closed 7 years ago

special-yang commented 7 years ago

when i run bboxes = tiny_face_detector('data/demo/selfie.jpg', './selfie.png', 0.5, 0.1, 0), we have meet some other problem :Undefined function or variable 'dagnn.Split'.

Error in dagnn.DagNN.loadobj (line 26) block = constr() ;

Error in tiny_face_detector (line 66) net = dagnn.DagNN.loadobj(net.net);

iFreilicht commented 7 years ago

Have you compiled and tested the MatConvNet submodule?

special-yang commented 7 years ago

I just run the code vl_compilenn.m。I don't know what other submodule should be compile.

iFreilicht commented 7 years ago

Please also try

>> vl_testnn('gpu', true);
special-yang commented 7 years ago

I have run the code Vl_testnn and this is the results result =

1x1683 TestResult array with properties:

Name
Passed
Failed
Incomplete
Duration

Totals: 1683 Passed, 0 Failed, 0 Incomplete. 403.6716 seconds testing time.

iFreilicht commented 7 years ago

That sounds like you installed the normal matconvnet. To use the code in this repository, you need to install @peiyunh's fork of matconvnet. You can check by navigating to the folder matconvnet/matlab/+dagnn/ and checking if there is a file called Split.m in there.

If that file doesn't exist, that means you installed the normal version of matconvnet.

To resolve this, I would advise deleting this repository from your PC and re-cloning it recursively like so:

git clone --recursive git@github.com:peiyunh/tiny.git

Then follow the rest of the installation instructions step by step.

special-yang commented 7 years ago

@iFreilicht Thank you very much ,and I will try it .

special-yang commented 7 years ago

I have solve the problem thank you