peiyunh / tiny

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

Error while compiling mex #60

Closed alexattia closed 6 years ago

alexattia commented 6 years ago

Hello,
I am trying to use your code on Ubuntu 16.0.4, Cuda 9.0 and CuDnn 7.0 but I am facing an error while compiling your MEX function with MATLAB R2017b (when I am running compile_mex;) :

/home/alexattia/Work/RecVis/tiny/utils/compute_dense_overlap.cc:76:85: error: cannot convert 'const int*' to 'const size_t* {aka const long unsigned int*}'
for argument '2' to 'mxArray* mxCreateNumericArray(size_t, const size_t*, mxClassID, mxComplexity)'
   mxArray *mx_tmp_overlap = mxCreateNumericArray(3, tmp_dims, mxDOUBLE_CLASS, mxREAL);
                                                                                     ^
Error in compile_mex (line 8)
mex compute_dense_overlap.cc CXXOPTIMFLAGS='-O3 -DNDEBUG'

Do you have any clue how to solve this ? Thank you very much in advance.

alexattia commented 6 years ago

Sorry, I didn't see this solution from #24. It solved my issue.