mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
daemon downloading thread
This commit is contained in:
parent
52a2bbc489
commit
96795200f7
@ -64,7 +64,11 @@ class ModelDownloader:
|
|||||||
"state": ModelStatusTypesEnum.downloading,
|
"state": ModelStatusTypesEnum.downloading,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
self.download_thread = threading.Thread(target=self._download_models)
|
self.download_thread = threading.Thread(
|
||||||
|
target=self._download_models,
|
||||||
|
name=f"_download_model_{self.model_name}",
|
||||||
|
daemon=True,
|
||||||
|
).start()
|
||||||
self.download_thread.start()
|
self.download_thread.start()
|
||||||
|
|
||||||
def _download_models(self):
|
def _download_models(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user