-
Notifications
You must be signed in to change notification settings - Fork 76
/
setup.py
68 lines (59 loc) · 2.89 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import os, sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
install_require_list = [
'numpy', 'torch', 'torchvision',
'tqdm', 'scipy', 'Pillow', 'scikit-learn',
'faiss', 'natsort', 'matplotlib']
# workaround as opencv-python does not show up in "pip list" within a conda environment
# we do not care as conda recipe has py-opencv requirement anyhow
is_conda = os.path.exists(os.path.join(sys.prefix, 'conda-meta'))
if not is_conda:
install_require_list.append('opencv-python')
setup(name='patchnetvlad',
version='0.1.8',
description='Patch-NetVLAD: An open-source Python implementation of the CVPR2021 paper',
long_description = long_description,
long_description_content_type='text/markdown',
author='Stephen Hausler, Sourav Garg, Ming Xu, Michael Milford and Tobias Fischer',
author_email='[email protected]',
url='https://github.com/QVPR/Patch-NetVLAD',
license='MIT',
classifiers=[
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Developers',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
python_requires='>=3.6',
install_requires=install_require_list,
packages=find_packages(),
keywords=[
'python', 'place recognition', 'image retrieval', 'computer vision', 'robotics'
],
scripts=['feature_extract.py', 'feature_match.py', 'train.py', 'match_two.py', 'match_realtime.py', 'download_models.py'],
entry_points={
'console_scripts': ['patchnetvlad-match-two=match_two:main',
'patchnetvlad-feature-match=feature_match:main',
'patchnetvlad-feature-extract=feature_extract:main',
'patchnetvlad-train=train:main',
'patchnetvlad-match-realtime=match_realtime:main',
'patchnetvlad-download-models=download_models:download_all_models'],
},
package_data={'': ['configs/*.ini', 'dataset_gt_files/*.npz', 'example_images/*',
'output_features/.hidden', 'pretrained_models/.hidden', 'results/.hidden',
'dataset_imagenames/*.txt']}
)