2016_person_re-ID icon indicating copy to clipboard operation
2016_person_re-ID copied to clipboard

The variable "dagnn" or class "dagnn.DagNN.loadobj" is not defined.

Open rmxhhh opened this issue 6 years ago • 5 comments

@layumi my configuration is cpu+matlab 2016a+vs2015+win10. first,i run 'gpu_compile' to compile the matconvnet,and shows that the compilation is successful.then i want to run 'test_gallery_query_razy',but there was an error shows that: The variable "dagnn" or class "dagnn.DagNN.loadobj" is not defined error test_gallery_query_crazy (line 8) net = dagnn.DagNN.loadobj(netStruct.net); i used the method from internet--add 'run <MATCONVNETROOT>/matlab/vl_setupnn.m',but it also have the same error.

rmxhhh avatar Jul 05 '18 07:07 rmxhhh

Hi @rmxhhh Have you included the $MATCONVNET/matlab path? Under windows, you may need to change the file path from / to \.

layumi avatar Jul 06 '18 06:07 layumi

Thank you,but i don't quiet understand what you mean.you say i don't need to install the original Matconvnet. What is the $MATCONVNET/matlab path?

xiaosuzhang avatar Jul 06 '18 07:07 xiaosuzhang

@layumi Thank you,but i don't quiet understand what you mean.you say i don't need to install the original Matconvnet. What is the $MATCONVNET/matlab path?

rmxhhh avatar Jul 06 '18 07:07 rmxhhh

@rmxhhh @xiaosuzhang Sorry. I did not make it clear.
You need to make sure that you have included $This Repo/matlab$. I have included +dagnn under the This Repo/matlab.

layumi avatar Jul 06 '18 11:07 layumi

In order to be able to use dagnn you should include MatConvNet to your path (http://www.vlfeat.org/matconvnet/)

attighouda avatar Jul 22 '21 19:07 attighouda