Compare commits

...

4 Commits

Author SHA1 Message Date
slashtechno 4c398b9603
Working on Windows
Have not tested on Linux yet
2024-03-03 20:11:50 -06:00
slashtechno 5e29974839
Attempted to fix error with action permissions 2024-03-03 18:13:06 -06:00
slashtechno f2d5fa8cf9
Allow publish action to be run manually 2024-03-03 18:10:23 -06:00
slashtechno 0b224cce31
Set version to 0.2
Tensorflow still can't be imported on Windows, but is shown by `pip show`
2024-03-03 18:03:25 -06:00
4 changed files with 425 additions and 336 deletions

View File

@ -8,12 +8,15 @@
name: Upload Python Package
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
deploy:

745
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "wyzely-detect"
version = "0.1.1"
version = "0.2.1"
description = "Recognize faces/objects in a video stream (from a webcam or a security camera) and send notifications to your devices"
authors = ["slashtechno <77907286+slashtechno@users.noreply.github.com>"]
repository = "https://github.com/slashtechno/wyzely-detect"
@ -27,14 +27,20 @@ torch = {version = "2.1.*", source = "pytorch-cpu", markers = "extra!='cuda'" }
# https://stackoverflow.com/a/76477590/18270659
# https://discfuss.tensorflow.org/t/tensorflow-io-gcs-filesystem-with-windows/18849/4
# https://github.com/python-poetry/poetry/issues/8271#issuecomment-1712020965
# Might be able to remove this version constraint later
# 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
tensorflow-io-gcs-filesystem = "0.31.0"
tensorflow = {version = "^2.14.0", markers = "extra!='cuda'"}
absl-py = "^2.1.0"
tensorflow = {version = "^2.13.0", markers = "extra!='cuda'"}
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'" }
]
deepface = "^0.0.79"

View File

@ -95,6 +95,7 @@ def set_argparse():
"--ntfy-url",
default=os.environ["NTFY_URL"]
if "NTFY_URL" in os.environ and os.environ["NTFY_URL"] != ""
# This is None but there is a default set in notify.py
else None,
type=str,
help="The URL to send notifications to",