forked from yijingru/BBAVectors-Oriented-Object-Detection
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
43 lines (39 loc) · 1.11 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
#!/usr/bin/env python
from setuptools import setup
from bbavectors import __version__
from distutils.core import setup, Extension
long_description = open('README.md').read()
requirements = [
'attrdict==2.0.1',
'torch==1.6.0',
'torchvision',
'opencv-python==4.5.3.56',
'Shapely==1.7.1',
'matplotlib==3.0.3',
'yacs==0.1.8',
'tqdm==4.61.2'
]
polyiou_module = Extension(
'_polyiou',
sources=[
'DOTA_devkit/polyiou_wrap.cxx',
'DOTA_devkit/polyiou.cpp'
],
)
setup(
# Metadata
name='bbavectors',
version=__version__,
author='Yi, Jingru and Wu, Pengxiang and Liu, Bo and Huang, Qiaoying and Qu, Hui and Metaxas, Dimitris',
url='https://github.com/yijingru/BBAVectors-Oriented-Object-Detection',
description='Oriented Object Detection in Aerial Images with Box Boundary-Aware Vectors',
long_description=long_description,
license='MIT',
# Package info
packages=['bbavectors', 'DOTA_devkit'],
zip_safe=True,
include_package_data=True,
install_requires=requirements,
ext_modules=[polyiou_module],
py_modules=['polyiou']
)