Spaces:
Running on Zero
Running on Zero
Download asmk-src/setup.py from nycu-cplab/3AM: direct link, hf CLI and curl.
- Browser
- Download file 949 Bytes
-
https://huggingface.co/spaces/nycu-cplab/3AM/resolve/main/asmk-src/setup.py
- Command line
-
hf download hf://spaces/nycu-cplab/3AM/asmk-src/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/nycu-cplab/3AM/resolve/main/asmk-src/setup.py
949 Bytes
| import sys | |
| from setuptools import setup, Extension | |
| from setuptools.command.install import install | |
| class InstallWrapper(install): | |
| def run(self): | |
| try: | |
| import faiss | |
| except ImportError: | |
| sys.stderr.write("\nERROR: faiss package not installed (install either faiss-cpu or " \ | |
| "faiss-gpu before installing this package.).\n\n") | |
| sys.exit(1) | |
| install.run(self) | |
| setup( | |
| name="asmk", | |
| version="0.1", | |
| description="ASMK Python implementation for ECCV'20 paper \"Learning and aggregating deep " \ | |
| "local descriptors for instance-level recognition\"", | |
| author="Tomas Jenicek, Giorgos Tolias", | |
| packages=[ | |
| "asmk", | |
| ], | |
| ext_modules=[Extension("asmk.hamming", ["cython/hamming.c"])], | |
| install_requires=[ | |
| "numpy", | |
| "pyaml", | |
| ], | |
| cmdclass={ | |
| "install": InstallWrapper, | |
| }, | |
| zip_safe=True) | |