2 Star 0 Fork 0

谢鑫/Dassl.pytorch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
KaiyangZhou 提交于 5年前 . update project info
import numpy as np
import os.path as osp
from setuptools import setup, find_packages
def readme():
with open('README.md') as f:
content = f.read()
return content
def find_version():
version_file = 'dassl/__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
def get_requirements(filename='requirements.txt'):
here = osp.dirname(osp.realpath(__file__))
with open(osp.join(here, filename), 'r') as f:
requires = [line.replace('\n', '') for line in f.readlines()]
return requires
setup(
name='dassl',
version=find_version(),
description='Dassl: Domain adaptation and semi-supervised learning',
author='Kaiyang Zhou',
license='MIT',
long_description=readme(),
url='https://github.com/KaiyangZhou/Dassl.pytorch',
packages=find_packages(),
install_requires=get_requirements(),
keywords=[
'Domain Adaptation', 'Domain Generalization',
'Semi-Supervised Learning', 'Pytorch'
]
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Max_xie/Dassl.pytorch.git
git@gitee.com:Max_xie/Dassl.pytorch.git
Max_xie
Dassl.pytorch
Dassl.pytorch
master

搜索帮助