mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 17:17:40 +03:00
preload modules
This commit is contained in:
parent
81ca054012
commit
1cedf79556
@ -118,5 +118,19 @@ def main() -> None:
|
||||
|
||||
|
||||
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)
|
||||
main()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user