2023-10-13 23:44:38 +01:00
|
|
|
[tool.poetry]
|
2023-10-22 01:59:02 +01:00
|
|
|
name = "wyzely-detect"
|
2024-03-04 02:11:50 +00:00
|
|
|
version = "0.2.1"
|
2023-10-22 15:24:11 +01:00
|
|
|
description = "Recognize faces/objects in a video stream (from a webcam or a security camera) and send notifications to your devices"
|
2023-10-13 23:44:38 +01:00
|
|
|
authors = ["slashtechno <77907286+slashtechno@users.noreply.github.com>"]
|
2023-10-22 22:53:29 +01:00
|
|
|
repository = "https://github.com/slashtechno/wyzely-detect"
|
|
|
|
keywords = ["object-detection", "face-detection", "wyze", "security", "yolov8", "unified-push"]
|
2023-10-13 23:44:38 +01:00
|
|
|
license = "MIT"
|
|
|
|
readme = "README.md"
|
2023-10-22 01:59:02 +01:00
|
|
|
packages = [{include = "wyzely_detect"}]
|
2023-10-13 23:44:38 +01:00
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-10-22 01:59:02 +01:00
|
|
|
|
2023-10-22 15:24:11 +01:00
|
|
|
# Works on 3.10 and 3.11, at least in my testing
|
2023-10-14 02:51:16 +01:00
|
|
|
python = ">=3.10, <3.12"
|
2023-10-22 01:59:02 +01:00
|
|
|
|
2023-10-13 23:44:38 +01:00
|
|
|
python-dotenv = "^1.0.0"
|
|
|
|
httpx = "^0.25.0"
|
|
|
|
opencv-python = "^4.8.1.78"
|
|
|
|
ultralytics = "^8.0.190"
|
|
|
|
hjson = "^3.1.0"
|
|
|
|
numpy = "^1.23.2"
|
2023-10-14 02:51:16 +01:00
|
|
|
|
2024-02-11 03:38:22 +00:00
|
|
|
# https://github.com/python-poetry/poetry/issues/6409#issuecomment-1911735833
|
2024-03-09 23:19:29 +00:00
|
|
|
# If GPU support doesn't work, `poetry install -E cuda --with gpu` will force it to be installed from the GPU PyTorch repo
|
|
|
|
# However, PyPi's `torch` has CUDA 12.1 support by default on Linux, so in that case it should not be needed.
|
2024-03-10 01:38:05 +00:00
|
|
|
torch = [
|
2024-03-25 19:44:41 +00:00
|
|
|
{version = "^2.2.1", source = "pypi", markers = "extra!='cuda' and (platform_system=='Linux' or platform_system=='Darwin')"},
|
|
|
|
{version = "^2.2.1", source = "pytorch-cpu", markers = "extra!='cuda' and platform_system=='Windows'"},
|
2024-03-10 01:38:05 +00:00
|
|
|
]
|
2023-10-22 01:59:02 +01:00
|
|
|
# https://stackoverflow.com/a/76477590/18270659
|
2024-02-11 03:38:22 +00:00
|
|
|
# https://discfuss.tensorflow.org/t/tensorflow-io-gcs-filesystem-with-windows/18849/4
|
2024-03-04 02:11:50 +00:00
|
|
|
# https://github.com/python-poetry/poetry/issues/8271#issuecomment-1712020965
|
2023-10-22 15:24:11 +01:00
|
|
|
# Might be able to remove this version constraint later
|
2023-12-08 22:26:04 +00:00
|
|
|
# Working versions:
|
|
|
|
# Python version 3.10.12 and 3.10.5 both work
|
|
|
|
# CUDA version - 12.2
|
|
|
|
# cuDNN version - 8.8.1
|
|
|
|
# Installed from Nvidia website - nvidia-cuda-toolkit is not installed, but default PopOS drivers are installed
|
2024-03-04 02:11:50 +00:00
|
|
|
absl-py = "^2.1.0"
|
|
|
|
tensorflow = {version = "^2.13.0", markers = "extra!='cuda'"}
|
2024-03-25 19:44:41 +00:00
|
|
|
# TODO: Change platform to markers
|
2024-03-04 02:11:50 +00:00
|
|
|
tensorflow-macos = { version = "^2.13.0", platform = "darwin", markers = "platform_machine=='arm64'" }
|
|
|
|
tensorflow-intel = { version = "^2.13.0", platform = "win32" }
|
|
|
|
tensorflow-io-gcs-filesystem = [
|
|
|
|
{ version = "< 0.32.0", markers = "platform_system == 'Windows'" }
|
|
|
|
]
|
2023-10-14 02:51:16 +01:00
|
|
|
|
2023-10-13 23:44:38 +01:00
|
|
|
|
2023-10-22 01:59:02 +01:00
|
|
|
deepface = "^0.0.79"
|
2024-02-11 03:48:26 +00:00
|
|
|
prettytable = "^3.9.0"
|
2023-10-22 01:59:02 +01:00
|
|
|
|
2024-02-11 20:27:05 +00:00
|
|
|
|
|
|
|
[tool.poetry.group.gpu]
|
2024-02-11 03:38:22 +00:00
|
|
|
optional = true
|
|
|
|
|
2024-02-11 20:27:05 +00:00
|
|
|
[tool.poetry.group.gpu.dependencies]
|
2024-03-09 23:19:29 +00:00
|
|
|
torch = {version = "^2.2.1", source = "pytorch-cu121", markers = "extra=='cuda'"}
|
2024-03-25 19:44:41 +00:00
|
|
|
tensorflow = {version = "^2.14.0", extras = ["and-cuda"], markers = "extra=='cuda' and platform_system == 'Linux'"}
|
2024-02-11 03:38:22 +00:00
|
|
|
|
|
|
|
[tool.poetry.extras]
|
2024-02-11 20:27:05 +00:00
|
|
|
# Might be better to rename this to nocpu since it's more accurate
|
2024-02-11 03:38:22 +00:00
|
|
|
cuda = []
|
|
|
|
|
|
|
|
[[tool.poetry.source]]
|
|
|
|
name = "pytorch-cpu"
|
|
|
|
url = "https://download.pytorch.org/whl/cpu"
|
|
|
|
priority = "explicit"
|
|
|
|
|
|
|
|
[[tool.poetry.source]]
|
|
|
|
name = "pytorch-cu121"
|
|
|
|
url = "https://download.pytorch.org/whl/cu121"
|
|
|
|
priority = "explicit"
|
|
|
|
|
2023-10-13 23:44:38 +01:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
black = "^23.9.1"
|
|
|
|
ruff = "^0.0.291"
|
|
|
|
ipykernel = "^6.25.2"
|
2023-10-14 02:51:16 +01:00
|
|
|
nbconvert = "^7.9.2"
|
2023-10-13 23:44:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
2023-10-14 00:16:55 +01:00
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
# More than the default (88) of `black` to make comments less of a headache
|
2023-10-14 21:40:36 +01:00
|
|
|
# Where possible, `black` will attempt to format to 88 characters
|
|
|
|
# However, setting ruff to 135 will allow for longer lines that can't be auto-formatted
|
|
|
|
line-length = 135
|
2023-10-22 15:24:11 +01:00
|
|
|
extend-select= ["FIX002"]
|
2023-10-14 21:46:42 +01:00
|
|
|
|
|
|
|
[tool.poetry.scripts]
|
2024-03-25 19:44:41 +00:00
|
|
|
wyzely-detect = "wyzely_detect.__main__:main"
|