Skip to content

Commit

Permalink
tensorflow-lite: change default model for usb
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 7, 2024
1 parent c678b31 commit 96d536f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions plugins/tensorflow-lite/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/tensorflow-lite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.1.50"
"version": "0.1.51"
}
5 changes: 1 addition & 4 deletions plugins/tensorflow-lite/src/tflite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ def configureModel():

if defaultModel:
if edge_tpus and next((obj for obj in edge_tpus if obj['type'] == 'usb'), None):
model = "yolov8n_full_integer_quant_320"
# this model seems completely wacky with lots of false positives.
# might be broken?
# model = "ssdlite_mobiledet_coco_qat_postprocess"
model = "ssdlite_mobiledet_coco_qat_postprocess"
else:
model = "efficientdet_lite0_320_ptq"
self.yolo = "yolo" in model
Expand Down

0 comments on commit 96d536f

Please sign in to comment.