mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-30 10:37:42 +03:00
preload modules
This commit is contained in:
parent
81ca054012
commit
1cedf79556
@ -118,5 +118,19 @@ def main() -> None:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
mp.set_forkserver_preload(
|
||||||
|
[
|
||||||
|
# Standard library and core dependencies
|
||||||
|
"sqlite3",
|
||||||
|
# Third-party libraries commonly used in Frigate
|
||||||
|
"numpy",
|
||||||
|
"cv2",
|
||||||
|
"peewee",
|
||||||
|
"zmq",
|
||||||
|
"ruamel.yaml",
|
||||||
|
# Frigate core modules
|
||||||
|
"frigate.camera.maintainer",
|
||||||
|
]
|
||||||
|
)
|
||||||
mp.set_start_method("forkserver", force=True)
|
mp.set_start_method("forkserver", force=True)
|
||||||
main()
|
main()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user