shenwei1231 / DeepContour

The testing code for deep contour detector
94 stars 38 forks source link

Undefined function or variable 'caffe2'. #2

Open larrycheungbai opened 8 years ago

larrycheungbai commented 8 years ago

Hello, I tried to run the code but there is a error "Undefined function or variable 'caffe2'." Where is the definition of the caffe2? Thanks. Best regards.

shenwei1231 commented 8 years ago

Please refer to the readme. Thanks for your interests.

Dr. Wei Shen Assistant Professor Dept. of Communication Engineering, Shanghai University, Shanghai, P.R. China Email: wei.shen@shu.edu.cn, shenwei1231@gmail.com Homepage: http://wei-shen.weebly.com/

From: larrycheungbai Date: 2016-01-15 06:06 To: shenwei1231/DeepContour Subject: [DeepContour] Undefined function or variable 'caffe2'. (#2) Hello, I tried to run the code but there is a error "Undefined function or variable 'caffe2'" Where is the definition of the caffe2? Thanks Best regards — Reply to this email directly or view it on GitHub.

egeengin commented 8 years ago

Dear Mr. Shen,

I encountered with the same error discussed. I am using Mac OS X El Capitan 10.11.2. There exists "caffe2.mexw64" file that is a MEX file for Windows 64bit system. For Mac, the file needed may be "caffe2.mexmaci64" that I could not find. Is there any chance to upload binaries for Mac system too? Because, I can not able to test the code now.

Note that, I follow the all instructions given for proper setup and the error screen from MATLAB is given below.

Thank you for your help and consideration.

Yours sincerely.

Ege Engin

Master Student in Electrical & Electronics Department in Middle East Technical University

Contact: ege.engin@gmail.com


Undefined function or variable 'caffe2'.

Error in matcaffe_init (line 19) if caffe2('is_initialized') == 0

Error in Entry_DeepStructureEdge (line 21) matcaffe_init(deepModel.use_gpu, deepModel.model_del_file, deepModel.model_file, gpu_id);


shenwei1231 commented 8 years ago

You can download it from https://drive.google.com/file/d/0BwU2lgiGMpBmQmpGT3BudmV2Yms/view?usp=sharing, as described in readme.txt.

Dr. Wei Shen Assistant Professor Dept. of Communication Engineering, Shanghai University, Shanghai, P.R. China Email: wei.shen@shu.edu.cn, shenwei1231@gmail.com Homepage: http://wei-shen.weebly.com/

From: larrycheungbai Date: 2016-01-15 06:06 To: shenwei1231/DeepContour Subject: [DeepContour] Undefined function or variable 'caffe2'. (#2) Hello, I tried to run the code but there is a error "Undefined function or variable 'caffe2'" Where is the definition of the caffe2? Thanks Best regards — Reply to this email directly or view it on GitHub.

shenwei1231 commented 8 years ago

Unfortunately, I only designed the code for Windows.

Dr. Wei Shen Assistant Professor Dept. of Communication Engineering, Shanghai University, Shanghai, P.R. China Email: wei.shen@shu.edu.cn, shenwei1231@gmail.com Homepage: http://wei-shen.weebly.com/

From: egeengin Date: 2016-01-17 18:18 To: shenwei1231/DeepContour CC: shenwei1231 Subject: Re: [DeepContour] Undefined function or variable 'caffe2'. (#2) Dear Mr. Shen, I encountered with the same error discussed. I am using Mac OS X El Capitan 10.11.2. There exists "caffe2.mexw64" file that is a MEX file for Windows 64bit system. For Mac, the file needed may be "caffe2.mexmaci64" that I could not find. Is there any chance to upload binaries for Mac system too? Because, I can not able to test the code now. Note that, I follow the all instructions given for proper setup and the error screen from MATLAB is given below. Thank you for your help and consideration. Yours sincerely. Ege Engin Master Student in Electrical & Electronics Department in Middle East Technical University Contact: ege.engin@gmail.com

Undefined function or variable 'caffe2'. Error in matcaffe_init (line 19) if caffe2('is_initialized') == 0 Error in Entry_DeepStructureEdge (line 21) matcaffe_init(deepModel.use_gpu, deepModel.model_del_file, deepModel.model_file, gpu_id); — Reply to this email directly or view it on GitHub.

andre-nguyen commented 7 years ago

@shenwei1231 Can you maybe indicate how you went about generating caffe2.mexw64 so we can reproduce and run your code on other platforms?