mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
parent
fc36be4f88
commit
b54aaad382
@ -6,7 +6,6 @@ import cv2.dnn
|
||||
import numpy as np
|
||||
from hide_warnings import hide_warnings
|
||||
from pydantic import Field
|
||||
from rknnlite.api import RKNNLite
|
||||
|
||||
from frigate.detectors.detection_api import DetectionApi
|
||||
from frigate.detectors.detector_config import BaseDetectorConfig
|
||||
@ -37,6 +36,8 @@ class Rknn(DetectionApi):
|
||||
|
||||
self.model_path = config.model.path or "/models/yolov8n-320x320.rknn"
|
||||
|
||||
from rknnlite.api import RKNNLite
|
||||
|
||||
self.rknn = RKNNLite(verbose=False)
|
||||
if self.rknn.load_rknn(self.model_path) != 0:
|
||||
logger.error("Error initializing rknn model.")
|
||||
|
Loading…
Reference in New Issue
Block a user