Skip to content

Commit

Permalink
openvino: fix yolo nas labels
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed May 11, 2024
1 parent 4611374 commit d3fbc58
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
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.84"
"version": "0.1.85"
}
7 changes: 6 additions & 1 deletion plugins/openvino/src/ov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ def __init__(self, nativeId: str | None = None):
f"https://raw.githubusercontent.com/koush/openvino-models/main/{model}/{precision}/{ovmodel}.bin",
f"{model_version}/{model}/{precision}/{ovmodel}.bin",
)
if self.scrypted_model:
if self.scrypted_yolo_nas:
labelsFile = self.downloadFile(
"https://raw.githubusercontent.com/koush/openvino-models/main/scrypted_nas_labels.txt",
"scrypted_nas_labels.txt",
)
elif self.scrypted_model:
labelsFile = self.downloadFile(
"https://raw.githubusercontent.com/koush/openvino-models/main/scrypted_labels.txt",
"scrypted_labels.txt",
Expand Down
2 changes: 1 addition & 1 deletion plugins/openvino/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openvino==2024.0.0
openvino==2024.1.0

# pillow-simd is available on x64 linux
# pillow-simd confirmed not building with arm64 linux or apple silicon
Expand Down

0 comments on commit d3fbc58

Please sign in to comment.