forked from mhamilton723/FeatUp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (47 loc) · 1.48 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
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension, CppExtension
setup(
name='featup',
version='0.1.2',
packages=find_packages(),
install_requires=[
'torch',
'kornia',
'omegaconf',
'pytorch-lightning',
'torchvision',
'tqdm',
'torchmetrics',
'scikit-learn',
'numpy',
'matplotlib',
'timm==0.4.12',
],
author='Mark Hamilton, Stephanie Fu',
author_email='[email protected], [email protected]',
description='Official code for "FeatUp: A Model-Agnostic Frameworkfor Features at Any Resolution" ICLR 2024',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/mhamilton723/FeatUp',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
ext_modules=[
CUDAExtension(
'featup.adaptive_conv_cuda.cuda_impl',
[
'featup/adaptive_conv_cuda/adaptive_conv_cuda.cpp',
'featup/adaptive_conv_cuda/adaptive_conv_kernel.cu',
]),
CppExtension(
'featup.adaptive_conv_cuda.cpp_impl',
['featup/adaptive_conv_cuda/adaptive_conv.cpp'],
undef_macros=["NDEBUG"]),
],
cmdclass={
'build_ext': BuildExtension
}
)