ptran / idla-person-reid

dlib implementation of the "Improved Deep Learning Architecture for Person Re-Identification"
31 stars 11 forks source link

run project in window error #3

Open hsqaihkl opened 6 years ago

hsqaihkl commented 6 years ago

@ptran516 Hi ptran516, thanks for your help at first. Now I need your help for anther problem I met. this is the error: Attempting to load the CUHK03 labeled dataset from 'C:\Users\Water\Desktop\idla-person-reid-master\build\bounding_box_train\' [should take up to 15 seconds in release mode]...

I trained the cuhk_03.mat on matlab

hsqaihkl commented 6 years ago

C:\Users\Water\Desktop\idla-person-reid-master\build\Release>run_cuhk03.exe -i .\ Attempting to load the CUHK03 labeled dataset from '.\' [should take up to 15 seconds in release mode]... 17.0197 seconds to load dataset.

layer<0> loss_multiclass_log_lr layer<1> fc (num_outputs=2) learning_rate_mult=1 weight_decay_mult=1 bias_learning_rate_mult=1 bias_weight_decay_mult=0 layer<2> relu layer<3> bn_fc eps=0.0001 running_stats_window_size=100 learning_rate_mult=1 weight_decay_mult=0 bias_learning_rate_mult=1 bias_weight_decay_mult=1 layer<4> fc (num_outputs=500) learning_rate_mult=1 weight_decay_mult=1 bias_learning_rate_mult=1 bias_weight_decay_mult=0 layer<5> reinterpret (N=2) layer<6> max_pool (nr=2, nc=2, stride_y=2, stride_x=2, padding_y=0, padding_x=0) layer<7> relu layer<8> bn_con eps=0.0001 running_stats_window_size=100 learning_rate_mult=1 weight_decay_mult=0 bias_learning_rate_mult=1 bias_weight_decay_mult=1 layer<9> con (num_filters=25, nr=3, nc=3, stride_y=1, stride_x=1, padding_y=0, padding_x=0) learning_rate_mult=1 weight_decay_mult=1 bias_learning_rate_mult=1 bias_weight_decay_mult=0 layer<10> relu layer<11> bn_con eps=0.0001 running_stats_window_size=100 learning_rate_mult=1 weight_decay_mult=0 bias_learning_rate_mult=1 bias_weight_decay_mult=1 layer<12> con (num_filters=25, nr=5, nc=5, stride_y=5, stride_x=5, padding_y=0, padding_x=0) learning_rate_mult=1 weight_decay_mult=1 bias_learning_rate_mult=1 bias_weight_decay_mult=0 layer<13> relu layer<14> cross_neighborhood_differences (nr=5, nc=5) layer<15> max_pool (nr=2, nc=2, stride_y=2, stride_x=2, padding_y=0, padding_x=0) layer<16> relu layer<17> bn_con eps=0.0001 running_stats_window_size=100 learning_rate_mult=1 weight_decay_mult=0 bias_learning_rate_mult=1 bias_weight_decay_mult=1 layer<18> con (num_filters=25, nr=3, nc=3, stride_y=1, stride_x=1, padding_y=0, padding_x=0) learning_rate_mult=1 weight_decay_mult=1 bias_learning_rate_mult=1 bias_weight_decay_mult=0 layer<19> relu layer<20> bn_con eps=0.0001 running_stats_window_size=100 learning_rate_mult=1 weight_decay_mult=0 bias_learning_rate_mult=1 bias_weight_decay_mult=1 layer<21> con (num_filters=25, nr=3, nc=3, stride_y=1, stride_x=1, padding_y=0, padding_x=0) learning_rate_mult=1 weight_decay_mult=1 bias_learning_rate_mult=1 bias_weight_decay_mult=0 layer<22> max_pool (nr=2, nc=2, stride_y=2, stride_x=2, padding_y=0, padding_x=0) layer<23> relu layer<24> bn_con eps=0.0001 running_stats_window_size=100 learning_rate_mult=1 weight_decay_mult=0 bias_learning_rate_mult=1 bias_weight_decay_mult=1 layer<25> con (num_filters=20, nr=3, nc=3, stride_y=1, stride_x=1, padding_y=0, padding_x=0) learning_rate_mult=1 weight_decay_mult=1 bias_learning_rate_mult=1 bias_weight_decay_mult=0 layer<26> relu layer<27> bn_con eps=0.0001 running_stats_window_size=100 learning_rate_mult=1 weight_decay_mult=0 bias_learning_rate_mult=1 bias_weight_decay_mult=1 layer<28> con (num_filters=20, nr=3, nc=3, stride_y=1, stride_x=1, padding_y=0, padding_x=0) learning_rate_mult=1 weight_decay_mult=1 bias_learning_rate_mult=1 bias_weight_decay_mult=0 layer<29> input_rgb_image_pair

step#: 0 learning rate: 0.01 average loss: 0 percent complete: 0.00%

C:\Users\Water\Desktop\idla-person-reid-master\build\Release>

hsqaihkl commented 6 years ago

@ptran516 Hi ptran516,I try the command to run it,but I met the error.what‘s the problem?

ptran commented 6 years ago

@hsqaihkl I think I've seen this runtime issue before. I'll try to test this out by the end of the week.

Just to make sure, you're using Visual Studio 2017 on Windows 10?

hsqaihkl commented 6 years ago

Yes I am using Visual Studio 2017 on Windows 10!

hsqaihkl commented 6 years ago

@ptran516 Hi Ptran516 I have Rebuild my project with ‘’dlib 19.9, CUDA 9.1, CuDNN 7.1‘’ ,but the problem have not soled! Is that I make wrong way?

hsqaihkl commented 6 years ago

@ptran516 Hi Ptran516,I run this in VS2017 which have the error ,could you help me? You can download it . to solve the problem for help me. https://github.com/hsqaihkl/Dlib.

ptran commented 6 years ago

@hsqaihkl Sorry I haven't been very responsive; been busy.

Can you try running CMake and setting BUILD_TEST to ON? This will build an application called dtest. Run dtest --runall and see if the tests pass.

hsqaihkl commented 6 years ago

@ptran516 ,I'm sorry I haven't response you on time,busy too. I will try it and tell you the result later.

arehmanAzam commented 6 years ago

@hsqaihkl @ptran516 I am facing this issue. The core.h file is calling this function with two parameters whereas the loss.h file has this function with 3 parameters. Please guide me how to resolve this issue.

**Error C2672 'loss_multiclass_loglr::compute_loss_value_and_gradient': no matching overloaded function found ConsoleApplication3 e:\dlib\dlib-19.9\source\dlib\dnn\core.h

Error C2780 'double loss_multiclass_loglr::compute_loss_value_and_gradient(const dlib::tensor &,const_label_iterator,SUBNET &) const': expects 3 arguments - 2 provided ConsoleApplication3 e:\dlib\dlib-19.9\source\dlib\dnn\core.h 2404**

OUTPUT:

1>------ Rebuild All started: Project: ConsoleApplication3, Configuration: Debug x64 ------ 1> source.cpp 1> input.cpp 1> difference_impl.cpp 1> dataset.cpp 1>c:\users\abdulrehman\documents\visual studio 2015\projects\consoleapplication3\packages\hdf5-v120-complete.1.8.15.2\lib\native\include\h5exception.h(89): warning C4251: 'H5::Exception::detail_message': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of class 'H5::Exception' 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xstring(2633): note: see declaration of 'std::basic_string<char,std::char_traits,std::allocator>' 1>c:\users\abdulrehman\documents\visual studio 2015\projects\consoleapplication3\packages\hdf5-v120-complete.1.8.15.2\lib\native\include\h5exception.h(90): warning C4251: 'H5::Exception::func_name': class 'std::basic_string<char,std::char_traits,std::allocator>' needs to have dll-interface to be used by clients of class 'H5::Exception' 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xstring(2633): note: see declaration of 'std::basic_string<char,std::char_traits,std::allocator>' 1>c:\users\abdulrehman\documents\visual studio 2015\projects\consoleapplication3\dataset.cpp(142): warning C4018: '<': signed/unsigned mismatch 1> cuhk03.cpp 1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(1057): warning C4503: 'LINEVar': decorated name length exceeded, name was truncated 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(1057): note: while compiling class template member function 'std::_Vector_iterator<std::_Vector_val<std::_Simple_types<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>>>> std::vector<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>,std::allocator<_Ty>>::begin(void) noexcept' 1> with 1> [ 1> _Ty=std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data> 1> ] 1> e:\dlib\dlib-19.9\source\dlib\dnn\trainer.h(765): note: see reference to function template instantiation 'std::_Vector_iterator<std::_Vector_val<std::_Simple_types<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>>>> std::vector<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>,std::allocator<_Ty>>::begin(void) noexcept' being compiled 1> with 1> [ 1> _Ty=std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data> 1> ] 1> e:\dlib\dlib-19.9\source\dlib\dnn\trainer.h(1232): note: see reference to class template instantiation 'std::vector<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>,std::allocator<_Ty>>' being compiled 1> with 1> [ 1> _Ty=std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data> 1> ] 1> c:\users\abdulrehman\documents\visual studio 2015\projects\consoleapplication3\cuhk03.cpp(193): note: see reference to class template instantiation 'dlib::dnn_trainer<net_type,dlib::sgd>' being compiled 1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(632): warning C4503: 'LINEVar': decorated name length exceeded, name was truncated 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(632): note: while compiling class template member function 'std::_Vector_val<std::_Simple_types<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>>> &std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Get_data(void) noexcept' 1> with 1> [ 1> _Ty=std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>, 1> _Alloc=std::allocator<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>> 1> ] 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(1068): note: see reference to function template instantiation 'std::_Vector_val<std::_Simple_types<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>>> &std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Get_data(void) noexcept' being compiled 1> with 1> [ 1> _Ty=std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>, 1> _Alloc=std::allocator<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>> 1> ] 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): note: see reference to class template instantiation 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' being compiled 1> with 1> [ 1> _Ty=std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>, 1> _Alloc=std::allocator<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>> 1> ] 1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(622): warning C4503: 'LINEVar': decorated name length exceeded, name was truncated 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(622): note: while compiling class template member function 'std::_Wrap_alloc<std::allocator<_Ty>> &std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Getal(void) noexcept' 1> with 1> [ 1> _Ty=std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>, 1> _Alloc=std::allocator<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>> 1> ] 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(903): note: see reference to function template instantiation 'std::_Wrap_alloc<std::allocator<_Ty>> &std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Getal(void) noexcept' being compiled 1> with 1> [ 1> _Ty=std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>, 1> _Alloc=std::allocator<std::shared_ptr<dlib::dnn_trainer<net_type,dlib::sgd>::device_data>> 1> ] 1>e:\dlib\dlib-19.9\source\dlib\dnn\core.h(2404): error C2672: 'loss_multiclass_loglr::compute_loss_value_and_gradient': no matching overloaded function found 1> e:\dlib\dlib-19.9\source\dlib\dnn\core.h(2401): note: while compiling class template member function 'double dlib::add_loss_layer<loss_multiclass_loglr,dlib::addlayer<dlib::fc<2,dlib::FC_HAS_BIAS>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::fc<500,dlib::FC_HAS_BIAS>,dlib::addlayer<reinterpret<2>,dlib::add_layer<dlib::maxpool<2,2,2,2,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,3,3,1,1,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,5,5,5,5,0,0>,dlib::addlayer<dlib::relu,dlib::add_layer<cross_neighborhooddifferences<5,5>,dlib::add_layer<dlib::maxpool<2,2,2,2,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,3,3,1,1,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,3,3,1,1,0,0>,dlib::add_layer<dlib::maxpool<2,2,2,2,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<20,3,3,1,1,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<20,3,3,1,1,0,0>,SUBNET,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>>::compute_parameter_gradients(const dlib::tensor &)' 1> with 1> [ 1> SUBNET=input_rgb_image_pair 1> ] 1> e:\dlib\dlib-19.9\source\dlib\dnn\trainer.h(638): note: see reference to function template instantiation 'double dlib::add_loss_layer<loss_multiclass_loglr,dlib::addlayer<dlib::fc<2,dlib::FC_HAS_BIAS>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::fc<500,dlib::FC_HAS_BIAS>,dlib::addlayer<reinterpret<2>,dlib::add_layer<dlib::maxpool<2,2,2,2,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,3,3,1,1,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,5,5,5,5,0,0>,dlib::addlayer<dlib::relu,dlib::add_layer<cross_neighborhooddifferences<5,5>,dlib::add_layer<dlib::maxpool<2,2,2,2,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,3,3,1,1,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,3,3,1,1,0,0>,dlib::add_layer<dlib::maxpool<2,2,2,2,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<20,3,3,1,1,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<20,3,3,1,1,0,0>,SUBNET,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>>::compute_parameter_gradients(const dlib::tensor &)' being compiled 1> with 1> [ 1> SUBNET=input_rgb_image_pair 1> ] 1> c:\users\abdulrehman\documents\visual studio 2015\projects\consoleapplication3\cuhk03.cpp(192): note: see reference to class template instantiation 'dlib::add_loss_layer<loss_multiclass_loglr,dlib::addlayer<dlib::fc<2,dlib::FC_HAS_BIAS>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::fc<500,dlib::FC_HAS_BIAS>,dlib::addlayer<reinterpret<2>,dlib::add_layer<dlib::maxpool<2,2,2,2,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,3,3,1,1,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,5,5,5,5,0,0>,dlib::addlayer<dlib::relu,dlib::add_layer<cross_neighborhooddifferences<5,5>,dlib::add_layer<dlib::maxpool<2,2,2,2,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,3,3,1,1,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<25,3,3,1,1,0,0>,dlib::add_layer<dlib::maxpool<2,2,2,2,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<20,3,3,1,1,0,0>,dlib::addlayer<dlib::relu,dlib::addlayer<dlib::bn,dlib::addlayer<dlib::con<20,3,3,1,1,0,0>,SUBNET,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>,void>>' being compiled 1> with 1> [ 1> SUBNET=input_rgb_image_pair 1> ] 1>e:\dlib\dlib-19.9\source\dlib\dnn\core.h(2404): error C2780: 'double loss_multiclass_loglr::compute_loss_value_and_gradient(const dlib::tensor &,const_label_iterator,SUBNET &) const': expects 3 arguments - 2 provided 1> c:\users\abdulrehman\documents\visual studio 2015\projects\consoleapplication3\multiclass_less.h(38): note: see declaration of 'loss_multiclass_loglr::compute_loss_value_and_gradient' 1> Generating Code... ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

hsqaihkl commented 6 years ago

@arehmanAzam Could you commit you code to github? You paste the error directly, but I don't know how to find the error.

arehmanAzam commented 6 years ago

@hsqaihkl i have resolved the error. Actually i was directly loading the project in the Visual Studio and not compiling it with CMake and then building it. Thanks for responding.

ptran commented 6 years ago

@hsqaihkl Are you still having issues running the executable on Windows?

hsqaihkl commented 6 years ago

@ptran516 Yes.Because my project is based on windows.Could you gei me any sugesion?

arehmanAzam commented 6 years ago

@hsqaihkl i have working project in VS2015. If i may, i want to ask you that have you compiled the project in CMAKE. ??

z-pc commented 6 years ago

Hi @hsqaihkl I have a same problem. step#: 0 learning rate: 0.01 average loss: 0 percent complete: 0.00% --->break Did you solve it?