-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
179 lines (162 loc) · 4.85 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[tool.poetry]
name = "cmuhawk"
version = "0.1.0"
description = "Hawk: Low-Bandwidth Remote Sensing of Rare Events"
authors = [
"Carnegie Mellon University <[email protected]>",
"Shilpa George <[email protected]>",
"Eric Sturzinger <[email protected]>",
"Jan Harkes <[email protected]>",
]
license = "GPL-2.0-only"
readme = "README.md"
packages = [
{ include = "hawk", from = "src" },
]
[tool.poetry.dependencies]
python = "^3.8"
cattrs = ">=23.1.0"
logzero = "^1.5.0"
matplotlib = "^3.6"
numpy = "^1.18.1"
prometheus-client = "^0.20.0"
protobuf = "^3.11.4"
pyyaml = "^6.0"
pyzmq = "^23.2.1"
tqdm = "^4.66.1"
# home
# decorator seems to be a missing fabric dependency...
decorator = { version = "^5.1.1", optional = true }
fabric = { version = "^3.0.1", optional = true }
pandas = {version = "^2.0", optional = true}
pillow = { version = "^9.5.0", optional = true }
python-dateutil = { version = "^2.8.1", optional = true }
streamlit = {version = "^1.40.1", optional = true, python = "!=3.9.7"}
streamlit-autorefresh = {version = "^1.0.1", optional = true, python = "!=3.9.7"}
streamlit-label-kit = {version = "^0.1.2", optional = true, python = "!=3.9.7"}
# scout
albumentations = { version = "^1.3.1", optional = true }
lovely-tensors = { version = "^0.1.15", optional = true }
multiprocessing-logging = { version = "^0.2.6", optional = true }
opencv-python-headless = { version = "^4.7.0.72", optional = true }
scikit-learn = { version = "^1.3.0", optional = true }
tensorboard = { version = "^2.1.1", optional = true }
# Here we can try and compare different pytorch releases, after changing
# this run `poetry lock ; poetry install -E home -E scout --sync`
#torch = { version = "^1.13", optional = true }
#torchvision = { version = "^0.14", optional = true }
#torch = { version = "2.0.0", optional = true }
#torchvision = { version = "^0.15", optional = true }
#torch = { version = "^2.1", optional = true, source = "torch-cu11" }
#torchvision = { version = "^0.16", optional = true, source = "torch-cu11" }
torch = { version = "^2.2", optional = true, source = "torch-cu11" }
torchvision = { version = "^0.17", optional = true, source = "torch-cu11" }
[[tool.poetry.source]]
name = "torch-cu11"
url = "https://download.pytorch.org/whl/cu118"
priority = "explicit"
[tool.poetry.extras]
home = [
"decorator",
"fabric",
"pandas",
"pillow",
"python-dateutil",
"streamlit",
"streamlit-autorefresh",
"streamlit-label-kit",
]
scout = [
"albumentations",
"lovely-tensors",
"multiprocessing-logging",
"opencv-python-headless",
"scikit-learn",
"tensorboard",
"torch",
"torchvision",
]
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
grpcio-tools = "~1.48.2"
isort = "^5.12.0"
mypy = "^1.2.0"
mypy-protobuf = "^1.20"
pandas-stubs = "^2.0"
poethepoet = "^0.19.0"
pre-commit = "^3.3.3"
pytest = "^7.4.3"
pytest-benchmark = "^4.0.0"
types-invoke = "^2.0.0.10"
types-paramiko = "^3.0.0.8"
types-pillow = "^10.0.0.3"
types-protobuf = "^4.24.0.2"
types-pyyaml = "^6.0.12.10"
types-requests = "^2.31.0.6"
types-tqdm = "^4.66.0.2"
[tool.poetry.scripts]
hawk_deploy = "hawk.deploy.__main__:main"
hawk_gui = "hawk.gui.__main__:main"
hawk_home = "hawk.home.home_main:main"
hawk_scout = "hawk.scout.server_main:main"
hawk_script_labeler = "hawk.home.script_labeler:main"
[tool.black]
target-version = ["py38"]
extend-exclude = '''
(
^/src/hawk/scout/trainer/yolo.*/yolov5.*/ # exclude yolov5 code
| .*_pb2.pyi? # exclude protobuf stubs
)
'''
[tool.isort]
py_version = 38
profile = "black"
skip_glob = [
"src/hawk/proto/*",
"src/hawk/scout/trainer/yolo/yolov5/*",
"src/hawk/scout/trainer/yolo_radar/yolov5_radar/*",
]
[tool.mypy]
strict = true
files = ["src"]
exclude = "^src/hawk/scout/trainer/(few_shot/|yolo.*/|yolov5.*/)"
plugins = ["numpy.typing.mypy_plugin"]
[[tool.mypy.overrides]]
# ignore missing type hints errors from untyped modules
module = [
"albumentations.*",
"cv2.*",
"fabric.*",
"logzero.*",
"matplotlib.*",
"multiprocessing_logging.*",
"skimage.*",
"sklearn.*",
"streamlit_autorefresh",
"streamlit_label_kit",
"websockets.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"torch.*",
"torchvision.*",
]
ignore_missing_imports = true
follow_imports = "skip"
follow_imports_for_stubs = true
[tool.poe]
include = "poe_tasks.toml"
[tool.pytest.ini_options]
filterwarnings = [
"ignore:pkg_resources is deprecated as an API",
"ignore:Deprecated call to `pkg_resources.declare_namespace",
]
markers = [
"cuda: marks tests that depend on CUDA (deselect with '-m \"not cuda\"')",
"home: components that run on home (deselect with '-m \"not home\"')",
"scout: components that run on the scout (deselect with '-m \"not scout\"')",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"