-
Notifications
You must be signed in to change notification settings - Fork 67
/
pyproject.toml
157 lines (138 loc) · 4.04 KB
/
pyproject.toml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[tool.poetry]
name = "metaseg"
version = "0.7.8"
description = "MetaSeg: Packaged version of the Segment Anything repository"
authors = ["Kadir Nar <[email protected]>"]
maintainers = ["Kadir Nar <[email protected]>"]
readme = "README.md"
packages = [{include = "metaseg"}]
homepage = "https://github.com/kadirnar/segment-anything-video"
repository = "https://github.com/kadirnar/segment-anything-video"
documentation = "https://github.com/kadirnar/segment-anything-video/blob/main/README.md"
keywords = ["pytorch","segment-anything-video","metaseg"]
license = "Apache-2.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Scientific/Engineering :: Image Processing",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
]
[tool.poetry.dependencies]
python = ">=3.8.1,<3.12.0"
torch = "^2.0.1"
torchvision = "^0.15.2"
opencv-python = "^4.7.0.72"
tqdm = "^4.65.0"
matplotlib = "^3.7.1"
pillow = "^9.5.0"
pycocotools = "^2.0.6"
fal-serverless = "^0.6.35"
sahi = "^0.11.14"
onnx = { version = "^1.14.0", optional = true }
onnxruntime = { version ="^1.15.1", optional = true }
ultralytics = { version = "^8.0.123", optional = true }
yolov5 = { version ="^7.0.12", optional = true }
requests = "^2.31.0"
[tool.poetry.extras]
full = ["onnxruntime","onnx","yolov5","ultralytics"]
yolov5 = ["yolov5"]
yolov8 = ["ultralytics"]
[tool.poetry.group.dev.dependencies]
black = "^23.1.0"
mypy = "^1.0.1"
bandit = "^1.7.4"
debugpy = "^1.6.6"
rope = "^1.7.0"
wheel = "^0.38.4"
setuptools = "^67.4.0"
coverage = "^7.2.1"
pre-commit = "^3.1.1"
pyupgrade = "^3.3.1"
ruff = "^0.0.244"
pytest = "^7.2.1"
toml = "^0.10.2"
flake8 = "^6.0.0"
isort = "^5.12.0"
parameterized = "^0.9.0"
[tool.isort]
line_length = 88
profile = "black"
[tool.bandit]
target = ["tests", "metaseg"]
tests = ["B201", "B301"]
[tool.autoflake]
check = true
imports = ["cv2", "requests", "metaseg"]
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 88
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"