Fix error

This commit is contained in:
Nicolas Mowen 2025-01-04 07:21:56 -07:00
parent a4920da07f
commit 6284b865b9

View File

@ -11,7 +11,6 @@ from playhouse.sqliteq import SqliteQueueDatabase
from frigate.config.semantic_search import FaceRecognitionConfig from frigate.config.semantic_search import FaceRecognitionConfig
from frigate.const import MODEL_CACHE_DIR from frigate.const import MODEL_CACHE_DIR
from frigate.util.downloader import ModelDownloader
try: try:
import openvino as ov import openvino as ov
@ -178,6 +177,8 @@ class FaceClassificationModel:
os.path.exists(os.path.join(download_path, n)) os.path.exists(os.path.join(download_path, n))
for n in self.model_files.keys() for n in self.model_files.keys()
): ):
# conditionally import ModelDownloader
from frigate.util.downloader import ModelDownloader
self.downloader = ModelDownloader( self.downloader = ModelDownloader(
model_name="facedet", model_name="facedet",
download_path=download_path, download_path=download_path,