xwjabc / hed

A PyTorch reimplementation of Holistically-Nested Edge Detection
170 stars 42 forks source link

Invalid MEX file: correspondPixels.mexmaci64 #23

Open Brainkite opened 4 years ago

Brainkite commented 4 years ago

Hello,

I'm trying to use your evaluation code on MATLAB (r2019b) on mac os x but I get this error: Error using edgesEvalImg (line 70) Invalid MEX-file '/Users/antoninsumner/Documents/GitHub/EdgeDetection_ModelsComparison/eval/edges/private2/correspondPixels.mexmaci64': dlopen(/Users/antoninsumner/Documents/GitHub/EdgeDetection_ModelsComparison/eval/edges/private2/correspondPixels.mexmaci64, 6): Library not loaded: @loader_path/libmex.dylib Referenced from: /Users/antoninsumner/Documents/GitHub/EdgeDetection_ModelsComparison/eval/edges/private2/correspondPixels.mexmaci64

Apparently this is due to the use of @loader_path/libmex.dylib @loader_path seems to be depreciated and @rpath should be used instead. https://stackoverflow.com/a/48473295/6752124

Do you think you can re-compile the correspondPixels.mexmaci64 file with @rpath or maybe provide the original MATLAB code?

Thank you

xwjabc commented 4 years ago

Hi Brainkite, the source code for correspondPixels.mexmaci64 from this link. I remember some code should be modified but I cannot re-build it since my MacBook is under maintenance. You can try to build it first.

Brainkite commented 4 years ago

Thank you, I'll do this.