1 Star 0 Fork 0

Hectorzhang/PVPM

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
setup.py 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
hh23333 提交于 2020-03-18 18:14 . first commit
from setuptools import find_packages, setup
from distutils.extension import Extension
from Cython.Build import cythonize
import numpy as np
def readme():
with open('README.rst') as f:
content = f.read()
return content
def find_version():
version_file = 'torchreid/__init__.py'
with open(version_file, 'r') as f:
exec(compile(f.read(), version_file, 'exec'))
return locals()['__version__']
def numpy_include():
try:
numpy_include = np.get_include()
except AttributeError:
numpy_include = np.get_numpy_include()
return numpy_include
ext_modules = [
Extension(
'torchreid.metrics.rank_cylib.rank_cy',
['torchreid/metrics/rank_cylib/rank_cy.pyx'],
include_dirs=[numpy_include()],
)
]
setup(
name='torchreid',
version=find_version(),
description='Pytorch framework for deep-learning person re-identification',
author='Kaiyang Zhou',
author_email='k.zhou.vision@gmail.com',
license='MIT',
long_description=readme(),
url='https://github.com/KaiyangZhou/deep-person-reid',
packages=find_packages(),
install_requires=[
'numpy',
'Cython',
'h5py',
'Pillow',
'six',
'scipy>=1.0.0',
'torch>=0.4.1',
'torchvision>=0.2.1'
],
keywords=[
'Person Re-Identification',
'Deep Learning',
'Computer Vision'
],
ext_modules=cythonize(ext_modules)
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sizhaoruoxijy/PVPM.git
git@gitee.com:sizhaoruoxijy/PVPM.git
sizhaoruoxijy
PVPM
PVPM
master

搜索帮助