Skip to content

Commit

Permalink
predict: relax face threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jun 4, 2024
1 parent 9a770e9 commit 2f19866
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions plugins/coreml/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/coreml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.1.56"
"version": "0.1.57"
}
4 changes: 2 additions & 2 deletions plugins/onnx/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/onnx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.1.94"
"version": "0.1.95"
}
4 changes: 2 additions & 2 deletions plugins/openvino/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/openvino/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.1.95"
"version": "0.1.96"
}
6 changes: 2 additions & 4 deletions plugins/tensorflow-lite/src/predict/face_recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ def __init__(self, nativeId: str | None = None):

self.labels = {
0: "face",
1: "plate",
2: "text",
}
self.loop = asyncio.get_event_loop()
self.minThreshold = 0.7
self.minThreshold = 0.2

self.detectModel = self.downloadModel("scrypted_yolov10m_face")
self.detectModel = self.downloadModel("scrypted_yolov10n_face")
self.faceModel = self.downloadModel("inception_resnet_v1")

def downloadModel(self, model: str):
Expand Down

0 comments on commit 2f19866

Please sign in to comment.