代码拉取完成,页面将自动刷新
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy
import os
import imp
VERSION = imp.load_source('version', os.path.join('.', 'darkflow', 'version.py'))
VERSION = VERSION.__version__
if os.name =='nt' :
ext_modules=[
Extension("darkflow.cython_utils.nms",
sources=["darkflow/cython_utils/nms.pyx"],
#libraries=["m"] # Unix-like specific
include_dirs=[numpy.get_include()]
),
Extension("darkflow.cython_utils.cy_yolo2_findboxes",
sources=["darkflow/cython_utils/cy_yolo2_findboxes.pyx"],
#libraries=["m"] # Unix-like specific
include_dirs=[numpy.get_include()]
),
Extension("darkflow.cython_utils.cy_yolo_findboxes",
sources=["darkflow/cython_utils/cy_yolo_findboxes.pyx"],
#libraries=["m"] # Unix-like specific
include_dirs=[numpy.get_include()]
)
]
elif os.name =='posix' :
ext_modules=[
Extension("darkflow.cython_utils.nms",
sources=["darkflow/cython_utils/nms.pyx"],
libraries=["m"], # Unix-like specific
include_dirs=[numpy.get_include()]
),
Extension("darkflow.cython_utils.cy_yolo2_findboxes",
sources=["darkflow/cython_utils/cy_yolo2_findboxes.pyx"],
libraries=["m"], # Unix-like specific
include_dirs=[numpy.get_include()]
),
Extension("darkflow.cython_utils.cy_yolo_findboxes",
sources=["darkflow/cython_utils/cy_yolo_findboxes.pyx"],
libraries=["m"], # Unix-like specific
include_dirs=[numpy.get_include()]
)
]
else :
ext_modules=[
Extension("darkflow.cython_utils.nms",
sources=["darkflow/cython_utils/nms.pyx"],
libraries=["m"] # Unix-like specific
),
Extension("darkflow.cython_utils.cy_yolo2_findboxes",
sources=["darkflow/cython_utils/cy_yolo2_findboxes.pyx"],
libraries=["m"] # Unix-like specific
),
Extension("darkflow.cython_utils.cy_yolo_findboxes",
sources=["darkflow/cython_utils/cy_yolo_findboxes.pyx"],
libraries=["m"] # Unix-like specific
)
]
setup(
version=VERSION,
name='darkflow',
description='Darkflow',
license='GPLv3',
url='https://github.com/thtrieu/darkflow',
packages = find_packages(),
scripts = ['flow'],
ext_modules = cythonize(ext_modules)
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。