idiap / attention-sampling

This Python package enables the training and inference of deep learning models for very large data, such as megapixel images, using attention-sampling
Other
97 stars 18 forks source link

Unable to install on Macbook pro #4

Open nishathussain opened 4 years ago

nishathussain commented 4 years ago

Error: error: can't copy 'ats/ops/extract_patches/libpatches.so': doesn't exist or not a regular file

libpatches.so file is not being generated.

angeloskath commented 4 years ago

Hi,

Could you provide a few more information? Are you using anaconda? What version of python, tf, cmake and compiler are you using?

Cheers, Angelos

nishathussain commented 4 years ago

@angeloskath conda 4.6.14 tensorflow 1.13.2 Python 3.6.8 cmake version 3.15.1 compiler: Apple LLVM version 10.0.1 (clang-1001.0.46.4)

lone17 commented 4 years ago

you might want to check out my comment here https://github.com/idiap/attention-sampling/issues/3#issuecomment-548543126. hope it help

LukasHedegaard commented 4 years ago

Hi @nishathussain , it seems that cmake builds .dylib instead of .so files on Mac. The quick hack is to replace all occurrences of ".so" with ".dylib" in the source code (.dylib files are being built correctly, after all). The better solution would be to modify the cmake build, though I haven't gone down that road yet.