-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathsetup.py
77 lines (73 loc) · 1.78 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
from setuptools import setup
from setuptools import find_packages
VERSION = "0.5.0"
DESCRIPTION = "Deep Learning with PyTorch made easy"
with open("README.md", encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
onnx_requires = [
"onnx",
"onnxruntime",
"onnx-simplifier>=0.4.1",
]
ml_requires = [
"captum",
"mlflow",
]
cv_requires = [
"ftfy",
"lmdb",
"regex",
"transformers",
"albumentations",
"pillow",
"scikit-image",
"scipy>=1.8.0",
"opencv-python-headless",
]
cv_full_requires = (
cv_requires
+ onnx_requires
+ [
"timm",
"salesforce-lavis",
"xformers>=0.0.19",
]
)
setup(
name="carefree-learn",
version=VERSION,
packages=find_packages(exclude=("tests",)),
install_requires=[
"filelock",
"accelerate",
"safetensors",
"carefree-toolkit>=0.3.12",
],
extras_require={
"onnx": onnx_requires,
"ml": ml_requires,
"ml_full": ml_requires + onnx_requires,
"cv": cv_requires,
"cv_full": cv_full_requires,
"full": ml_requires
+ cv_full_requires
+ [
"open_clip_torch",
"faiss-cpu",
"protobuf==3.19.4",
"ortools>=9.3.0",
"sacremoses",
"sentencepiece",
"plotly",
],
},
author="carefree0910",
author_email="[email protected]",
url="https://github.com/carefree0910/carefree-learn",
download_url=f"https://github.com/carefree0910/carefree-learn/archive/v{VERSION}.tar.gz",
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
include_package_data=True,
keywords="python machine-learning deep-learning solution PyTorch",
)