mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
daemon downloading thread
This commit is contained in:
parent
52a2bbc489
commit
96795200f7
@ -64,7 +64,11 @@ class ModelDownloader:
|
||||
"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()
|
||||
|
||||
def _download_models(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user