Skip to content

Commit

Permalink
openvino: fix cluster label to require x64
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Nov 23, 2024
1 parent ab47389 commit 38c00f5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/coreml/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{
"scrypted.debugHost": "127.0.0.1",
"scrypted.debugHost": "scrypted-nvr",
"python.analysis.extraPaths": [
"./node_modules/@scrypted/sdk/types/scrypted_python"
]
Expand Down
3 changes: 3 additions & 0 deletions plugins/openvino/src/ov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ async def getSettings(self) -> list[Setting]:
},
]

def getClusterLabels(self):
return {"labels": {"require": ["compute", "x64"]}}

async def putSetting(self, key: str, value: SettingValue):
self.storage.setItem(key, value)
await self.onDeviceEvent(scrypted_sdk.ScryptedInterface.Settings.value, None)
Expand Down
3 changes: 3 additions & 0 deletions plugins/openvino/src/ov/face_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@


class OpenVINOFaceRecognition(FaceRecognizeDetection):
def getClusterLabels(self):
return {"labels": {"require": ["compute", "x64"]}}

def downloadModel(self, model: str):
scrypted_yolov9 = "scrypted_yolov9" in model
ovmodel = "best-converted" if scrypted_yolov9 else "best"
Expand Down
3 changes: 3 additions & 0 deletions plugins/openvino/src/ov/text_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@


class OpenVINOTextRecognition(TextRecognition):
def getClusterLabels(self):
return {"labels": {"require": ["compute", "x64"]}}

def downloadModel(self, model: str):
ovmodel = "best"
precision = self.plugin.precision
Expand Down
2 changes: 1 addition & 1 deletion server/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"SCRYPTED_CLUSTER_WORKER_NAME": "Macaroni 2",
"SCRYPTED_CLUSTER_LABELS": "compute",
"SCRYPTED_CLUSTER_MODE": "client",
"SCRYPTED_CLUSTER_SERVER": "192.168.2.124",
"SCRYPTED_CLUSTER_SERVER": "192.168.2.130",
"SCRYPTED_CLUSTER_SECRET": "swordfish",
"SCRYPTED_CAN_RESTART": "true",
"SCRYPTED_VOLUME": "/Users/koush/.scrypted-cluster/volume-client",
Expand Down

0 comments on commit 38c00f5

Please sign in to comment.