-
Notifications
You must be signed in to change notification settings - Fork 31
/
setup.py
24 lines (23 loc) · 853 Bytes
/
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
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
if __name__ == '__main__':
setup(
name='AFSD',
version='1.0',
description='Learning Salient Boundary Feature for Anchor-free '
'Temporal Action Localization',
author='Chuming Lin, Chengming Xu',
author_email='chuminglin@tencent.com, cmxu18@fudan.edu.cn',
packages=find_packages(
exclude=('configs', 'models', 'output', 'datasets')
),
ext_modules=[
CUDAExtension('boundary_max_pooling_cuda', [
'AFSD/prop_pooling/boundary_max_pooling_cuda.cpp',
'AFSD/prop_pooling/boundary_max_pooling_kernel.cu'
])
],
cmdclass={
'build_ext': BuildExtension
}
)