Skip to content

Commit

Permalink
fix key error for custom models (#12042)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcA711 committed Jun 18, 2024
1 parent bdda89b commit 4bca405
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frigate/detectors/plugins/rknn.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ def __init__(self, config: RknnDetectorConfig):
if model_props["preset"]:
config.model.model_type = model_props["model_type"]

if model_props["model_type"] == ModelTypeEnum.yolonas:
logger.info(
"You are using yolo-nas with weights from DeciAI. "
"These weights are subject to their license and can't be used commercially. "
"For more information, see: https://docs.deci.ai/super-gradients/latest/LICENSE.YOLONAS.html"
)
if model_props["model_type"] == ModelTypeEnum.yolonas:
logger.info(
"You are using yolo-nas with weights from DeciAI. "
"These weights are subject to their license and can't be used commercially. "
"For more information, see: https://docs.deci.ai/super-gradients/latest/LICENSE.YOLONAS.html"
)

from rknnlite.api import RKNNLite

Expand Down

0 comments on commit 4bca405

Please sign in to comment.