forked from yifita/DSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (30 loc) · 1.05 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
from setuptools import setup, find_packages
import unittest
from typing import List
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
print(find_packages())
CUDA_FLAGS = [] # type: List[str]
# The modules are as small as possible to reduce incremental building time during development
ext_modules = [
CUDAExtension('DSS.cuda.rasterize_forward', [
'DSS/cuda/rasterize_forward_cuda.cpp',
'DSS/cuda/rasterize_forward_cuda_kernel.cu'
]),
CUDAExtension('DSS.cuda.rasterize_backward', [
'DSS/cuda/rasterize_backward_cuda.cpp',
'DSS/cuda/rasterize_backward_cuda_kernel.cu'
]),
]
INSTALL_REQUIREMENTS = ['numpy', 'torch', 'pypng', 'plyfile']
setup(
name='DSS',
description='Differentiable Surface Splatter',
author='Yifan Wang and Felice Serena',
author_email='[email protected] and [email protected]',
license='MIT License',
version='0.9',
packages=['DSS'],
install_requires=INSTALL_REQUIREMENTS,
ext_modules=ext_modules,
cmdclass={'build_ext': BuildExtension}
)