setup.py 1.25 KB
Newer Older
1
2
3
4
5
6
7
8
"""Setup script for object_detection with TF2.0."""
import os
from setuptools import find_packages
from setuptools import setup

# Note: adding apache-beam to required packages causes conflict with
# tf-models-offical requirements. These packages request for incompatible
# oauth2client package.
9
10
REQUIRED_PACKAGES = [
    # Required for apache-beam with PY3
11
    'avro-python3',
12
13
14
15
16
17
18
19
20
    'apache-beam',
    'pillow',
    'lxml',
    'matplotlib',
    'Cython',
    'contextlib2',
    'tf-slim',
    'six',
    'pycocotools',
Jonathan Huang's avatar
Jonathan Huang committed
21
    'lvis',
22
23
    'scipy',
    'pandas',
24
25
    'google-cloud-bigquery==1.21.0',
    'tf-models-official',
26
]
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

setup(
    name='object_detection',
    version='0.1',
    install_requires=REQUIRED_PACKAGES,
    include_package_data=True,
    packages=(
        [p for p in find_packages() if p.startswith('object_detection')] +
        find_packages(where=os.path.join('.', 'slim'))),
    package_dir={
        'datasets': os.path.join('slim', 'datasets'),
        'nets': os.path.join('slim', 'nets'),
        'preprocessing': os.path.join('slim', 'preprocessing'),
        'deployment': os.path.join('slim', 'deployment'),
        'scripts': os.path.join('slim', 'scripts'),
    },
    description='Tensorflow Object Detection Library',
    python_requires='>3.6',
)