pumaguard 20.post155__py3-none-any.whl → 20.post157__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pumaguard/main.py +6 -1
- pumaguard/presets.py +8 -0
- pumaguard/pumaguard-ui/flutter_bootstrap.js +1 -1
- pumaguard/pumaguard-ui/flutter_service_worker.js +1 -1
- {pumaguard-20.post155.dist-info → pumaguard-20.post157.dist-info}/METADATA +1 -1
- {pumaguard-20.post155.dist-info → pumaguard-20.post157.dist-info}/RECORD +10 -10
- {pumaguard-20.post155.dist-info → pumaguard-20.post157.dist-info}/WHEEL +0 -0
- {pumaguard-20.post155.dist-info → pumaguard-20.post157.dist-info}/entry_points.txt +0 -0
- {pumaguard-20.post155.dist-info → pumaguard-20.post157.dist-info}/licenses/LICENSE +0 -0
- {pumaguard-20.post155.dist-info → pumaguard-20.post157.dist-info}/top_level.txt +0 -0
pumaguard/main.py
CHANGED
|
@@ -16,6 +16,7 @@ from pumaguard import (
|
|
|
16
16
|
)
|
|
17
17
|
from pumaguard.presets import (
|
|
18
18
|
Preset,
|
|
19
|
+
PresetError,
|
|
19
20
|
get_default_settings_file,
|
|
20
21
|
)
|
|
21
22
|
from pumaguard.utils import (
|
|
@@ -92,7 +93,11 @@ def configure_presets(args: argparse.Namespace, presets: Preset):
|
|
|
92
93
|
settings = get_default_settings_file()
|
|
93
94
|
else:
|
|
94
95
|
settings = args.settings
|
|
95
|
-
|
|
96
|
+
try:
|
|
97
|
+
presets.load(settings)
|
|
98
|
+
except PresetError as e:
|
|
99
|
+
logger.error("Cannot load settings: %s", e)
|
|
100
|
+
sys.exit(1)
|
|
96
101
|
|
|
97
102
|
presets.image_dimensions = (299, 299)
|
|
98
103
|
logger.warning("hardcoding image dimension: %s", presets.image_dimensions)
|
pumaguard/presets.py
CHANGED
|
@@ -74,6 +74,12 @@ def get_default_settings_file() -> str:
|
|
|
74
74
|
return str(xdg_settings_file)
|
|
75
75
|
|
|
76
76
|
|
|
77
|
+
class PresetError(Exception):
|
|
78
|
+
"""
|
|
79
|
+
Docstring for PresetError
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
|
|
77
83
|
# pylint: disable=too-many-public-methods
|
|
78
84
|
class Preset:
|
|
79
85
|
"""
|
|
@@ -135,6 +141,8 @@ class Preset:
|
|
|
135
141
|
"Could not open settings (%s), using defaults", filename
|
|
136
142
|
)
|
|
137
143
|
return
|
|
144
|
+
except yaml.constructor.ConstructorError as e:
|
|
145
|
+
raise PresetError(str(e)) from e
|
|
138
146
|
|
|
139
147
|
self.yolo_min_size = settings.get("YOLO-min-size", 0.02)
|
|
140
148
|
self.yolo_conf_thresh = settings.get("YOLO-conf-thresh", 0.25)
|
|
@@ -34,7 +34,7 @@ const RESOURCES = {"flutter.js": "24bc71911b75b5f8135c949e27a2984e",
|
|
|
34
34
|
"canvaskit/skwasm.js.symbols": "3a4aadf4e8141f284bd524976b1d6bdc",
|
|
35
35
|
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
|
|
36
36
|
"main.dart.wasm": "b7e85784e7cc42b937c6ddffca885d19",
|
|
37
|
-
"flutter_bootstrap.js": "
|
|
37
|
+
"flutter_bootstrap.js": "bf49cbb2b275f239c83088ec2fb67975",
|
|
38
38
|
"version.json": "d3ae24eea88b92d3d617cfcd1d6d057d",
|
|
39
39
|
"main.dart.js": "8d76816e4e65d2d9504d5fd4013ba7cf"};
|
|
40
40
|
// The application shell files that are downloaded before a service worker can
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
pumaguard/__init__.py,sha256=QUsYaH1hG9RKygFZfaS5tpe9pgN_1Kf7EMroQCVlQfE,421
|
|
2
2
|
pumaguard/classify.py,sha256=QnHfnIlkzSxHGy0dgqT6IeTbRBboRT3c3B_YC3YpqfI,1057
|
|
3
3
|
pumaguard/lock_manager.py,sha256=sYLl8Z7miOr_9R7ehoSFlKf8tToHNNUT6aH9Mlw2M9g,1608
|
|
4
|
-
pumaguard/main.py,sha256=
|
|
4
|
+
pumaguard/main.py,sha256=_dxt9P_SNIoFJA6HqU9KGeC9519c7CN4CA8_D-gPyEQ,6284
|
|
5
5
|
pumaguard/model-registry.yaml,sha256=V-pTaqJrk_jJo568okBDaVhs51qTHttSqKe6PqdX6Bc,10318
|
|
6
6
|
pumaguard/model_cli.py,sha256=nzDv0lXSvRKpLxs579tiHInJPPV-AFO4jzeLk5t2GaA,1394
|
|
7
7
|
pumaguard/model_downloader.py,sha256=dymLuHAeIETALNouBG2KlLxUcxZNJ1lOQv5v9-V7_lk,12078
|
|
8
|
-
pumaguard/presets.py,sha256=
|
|
8
|
+
pumaguard/presets.py,sha256=x14iLg-TQ8oL13PYaF9A9fl-Qw-LleD4D23X7nIPX8U,24483
|
|
9
9
|
pumaguard/server.py,sha256=e8R5g0VzcnjpH3gU1nPUZUXcDaQVbRuVY3lipljahzI,12293
|
|
10
10
|
pumaguard/sound.py,sha256=dBylHyuS8ro9tFJH5y3s6Bn2kSGnfrOyGeGYZlgYTsU,369
|
|
11
11
|
pumaguard/stats.py,sha256=ZwocfnFCQ-ky7me-YTTrEoJqsIHOWAgSzeoJHItsIU4,927
|
|
@@ -19,8 +19,8 @@ pumaguard/completions/pumaguard-train-completions.sh,sha256=lI8LG-QrncvhUqCeKtfr
|
|
|
19
19
|
pumaguard/pumaguard-ui/.last_build_id,sha256=2z9bkdHZlfzXSpHBHs18Lo4GUD8oTSkZDZxqAeZW6KE,32
|
|
20
20
|
pumaguard/pumaguard-ui/favicon.png,sha256=erJSX0uGtl0-THA1ihfloar29Df5nLzARtrXPVm7kBU,917
|
|
21
21
|
pumaguard/pumaguard-ui/flutter.js,sha256=7V1ZIKmGiouT15CpquQWWmKWJyjUq77FoU9gDXPFO9M,9412
|
|
22
|
-
pumaguard/pumaguard-ui/flutter_bootstrap.js,sha256=
|
|
23
|
-
pumaguard/pumaguard-ui/flutter_service_worker.js,sha256=
|
|
22
|
+
pumaguard/pumaguard-ui/flutter_bootstrap.js,sha256=W3_JVqt6kt-z9ZzdKicFFOw-8uiRaL-Ca_X4KaRBPEc,9858
|
|
23
|
+
pumaguard/pumaguard-ui/flutter_service_worker.js,sha256=sXnvixBj7TMPqXyzAijqWX9Wpj_EDDuP5vNnOyHuVsg,8435
|
|
24
24
|
pumaguard/pumaguard-ui/index.html,sha256=901-ZY0WysVAZWPwj2xGatoezwm9TX9IV_jpMrlsaXg,1205
|
|
25
25
|
pumaguard/pumaguard-ui/main.dart.js,sha256=fFz7OvGMIyrSvIBcp1jK3P3x1xCh3i3anBpMHuaVgDo,2613988
|
|
26
26
|
pumaguard/pumaguard-ui/main.dart.mjs,sha256=u8D9JVFd7gNLKK-L2s_IjAfLkymktS1DXV25sXo4BsQ,33768
|
|
@@ -51,7 +51,7 @@ pumaguard/pumaguard-ui/icons/Icon-192.png,sha256=Pc6ZB3YC9wQhwcayokC8m4PWTYZoHUX
|
|
|
51
51
|
pumaguard/pumaguard-ui/icons/Icon-512.png,sha256=usyyBa5F8LQhvhZXJZtJQ6xAyVCUq4d_O8vhLNVE3L4,8252
|
|
52
52
|
pumaguard/pumaguard-ui/icons/Icon-maskable-192.png,sha256=0shC4iqfTsnZlrIzc6kFyI2aIDsiDFwVGIWtYh-XS1w,5594
|
|
53
53
|
pumaguard/pumaguard-ui/icons/Icon-maskable-512.png,sha256=au4Gzcq2sq73Sxc0xHePRCHS2hALD_nlKyG1UkAgKSk,20998
|
|
54
|
-
pumaguard-20.
|
|
54
|
+
pumaguard-20.post157.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
55
55
|
pumaguard-sounds/cougar_call.mp3,sha256=jdPzi7Qneect3ez2G6XAeHWtetU5vSOSB6pceuB26Wc,129048
|
|
56
56
|
pumaguard-sounds/cougarsounds.wav,sha256=hwVmmQ75dkOP3qd07YAvVOSm1neYtxLSzxw3Ulvs2cM,96346
|
|
57
57
|
pumaguard-sounds/dark-engine-logo-141942.mp3,sha256=Vw-qyLTMPJZvsgQcZtH0DpGcP1dd7nJq-9BnHuNPGug,372819
|
|
@@ -69,8 +69,8 @@ pumaguard-sounds/mixkit-vintage-telephone-ringtone-1356.wav,sha256=zWWY2uFF0-l7P
|
|
|
69
69
|
pumaguard-sounds/pumaguard-warning.mp3,sha256=wcCfHsulPo5P5s8MjpQAG2NYHQDsRpjqoMig1-o_MDI,232249
|
|
70
70
|
pumaguard-sounds/short-round-110940.mp3,sha256=vdskGD94SeH1UJyJyR0Ek_7xGXPIZfnPdoBvxGnUt98,450816
|
|
71
71
|
pumaguard-ui/ios/Flutter/ephemeral/flutter_lldb_helper.py,sha256=Bc_jl3_e5ZPvrSBJpPYtN05VxpztyKq-7lVms3rLg4Q,1276
|
|
72
|
-
pumaguard-20.
|
|
73
|
-
pumaguard-20.
|
|
74
|
-
pumaguard-20.
|
|
75
|
-
pumaguard-20.
|
|
76
|
-
pumaguard-20.
|
|
72
|
+
pumaguard-20.post157.dist-info/METADATA,sha256=ACEPHCv3lm21RctPD-e4fuxcW0aUAr_SjYGw9HJej38,7751
|
|
73
|
+
pumaguard-20.post157.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
74
|
+
pumaguard-20.post157.dist-info/entry_points.txt,sha256=rmCdBTPWrbJQvPPwABSVobXE9D7hrKsITGZ6nvCrko8,127
|
|
75
|
+
pumaguard-20.post157.dist-info/top_level.txt,sha256=B-PzS4agkQNhOYbLLIrMVOyMD_pl5F-yujPBm5zYYjY,40
|
|
76
|
+
pumaguard-20.post157.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|