fix key error for custom models (#12042)

This commit is contained in:
Marc Altmann 2024-06-18 15:40:54 +02:00 committed by GitHub
parent bdda89b5e2
commit 4bca405e29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,12 +41,12 @@ class Rknn(DetectionApi):
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