-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathsetup.py
More file actions
86 lines (81 loc) · 2.26 KB
/
setup.py
File metadata and controls
86 lines (81 loc) · 2.26 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
"""Package installation setup."""
from setuptools import setup
# Read long description from README
try:
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
except FileNotFoundError:
long_description = "UFM: A Simple Path towards Unified Dense Correspondence with Flow"
# Core dependencies
install_requires = [
"torch",
"torchvision",
"torchaudio",
"numpy",
"matplotlib",
"opencv-python",
"flow_vis",
"huggingface_hub",
"einops",
"gradio",
# UniCeption dependencies
"timm",
"jaxtyping",
"Pillow",
"scikit-learn",
]
# Optional dependencies
extras_require = {
"dev": [
"black",
"isort",
"pre-commit",
"pytest",
],
"demo": [
"gradio",
],
"all": [
"black",
"isort",
"pre-commit",
"pytest",
"gradio",
],
}
setup(
name="uniflowmatch",
version="0.1.0",
description="UFM: A Simple Path towards Unified Dense Correspondence with Flow",
long_description=long_description,
long_description_content_type="text/markdown",
author="Yuchen Zhang",
author_email="yuchenz7@andrew.cmu.edu",
url="https://uniflowmatch.github.io/",
license="BSD Clause-3",
packages=["uniception", "uniflowmatch"], # Directly specify the package
package_dir={
"uniception": "UniCeption/uniception", # Map uniception package
"uniflowmatch": "uniflowmatch", # Map uniflowmatch package
},
include_package_data=True,
python_requires=">=3.9",
install_requires=install_requires,
extras_require=extras_require,
entry_points={
"console_scripts": [
"ufm=uniflowmatch.cli:main",
"ufm-demo=gradio_demo:main",
],
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords="computer-vision, optical-flow, correspondence, deep-learning, pytorch, transformer",
)