mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 09:04:28 +03:00
Fix error
This commit is contained in:
parent
a4920da07f
commit
6284b865b9
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user