forked from Github/frigate
Compare commits
849 Commits
v0.14.0-be
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d4b1bc675 | ||
|
|
91ab1071d2 | ||
|
|
409e911752 | ||
|
|
9983bd8d92 | ||
|
|
32c71c4108 | ||
|
|
ef6952e3ea | ||
|
|
173b7aa308 | ||
|
|
c4727f19e1 | ||
|
|
b8a74793ca | ||
|
|
c1dede9369 | ||
|
|
0c4ea504d8 | ||
|
|
b265b6b190 | ||
|
|
d57a61b50f | ||
|
|
4fc9106c17 | ||
|
|
38e098ca31 | ||
|
|
e7ad38d827 | ||
|
|
a1ce9aacf2 | ||
|
|
322b847356 | ||
|
|
98338e4c7f | ||
|
|
171a89f37b | ||
|
|
8114b541a8 | ||
|
|
c48396c5c6 | ||
|
|
00371546a3 | ||
|
|
87e7b62c85 | ||
|
|
15ffe5c254 | ||
|
|
a767dad3a1 | ||
|
|
9387246f83 | ||
|
|
bed20de302 | ||
|
|
70fc5393b1 | ||
|
|
9b80dbe014 | ||
|
|
78a013d63a | ||
|
|
ddfe8f3921 | ||
|
|
4af752028f | ||
|
|
b149828c9f | ||
|
|
3dc26e78ef | ||
|
|
d9ef8fa206 | ||
|
|
292499aebc | ||
|
|
717493e668 | ||
|
|
d49f958d4d | ||
|
|
33ee32865f | ||
|
|
17f8939f97 | ||
|
|
1b7fe9523d | ||
|
|
0763f56047 | ||
|
|
1ea282fba8 | ||
|
|
869fa2631e | ||
|
|
f336a91fee | ||
|
|
d302b6e198 | ||
|
|
ed2e1f3f72 | ||
|
|
b4d82084a9 | ||
|
|
53b96dfb89 | ||
|
|
0e3fb6cbdd | ||
|
|
6b12a45a95 | ||
|
|
0b9c4c18dd | ||
|
|
d0cc8cb64b | ||
|
|
bb86e71e65 | ||
|
|
8aa6297308 | ||
|
|
d3b631a952 | ||
|
|
47d495fc01 | ||
|
|
32322b23b2 | ||
|
|
c0ba98e26f | ||
|
|
a5a7cd3107 | ||
|
|
a729408599 | ||
|
|
4dddc53735 | ||
|
|
5f42caad03 | ||
|
|
5475672a9d | ||
|
|
833cdcb6d2 | ||
|
|
c95bc9fe44 | ||
|
|
a1fa9decad | ||
|
|
4a5fe4138e | ||
|
|
002fdeae67 | ||
|
|
5802a66469 | ||
|
|
71e8f75a01 | ||
|
|
ee816b2251 | ||
|
|
f094c59cd0 | ||
|
|
d25ffdb292 | ||
|
|
2207a91f7b | ||
|
|
33957e5360 | ||
|
|
ff92b13f35 | ||
|
|
e76f4e9bd9 | ||
|
|
0df091f387 | ||
|
|
66277fbb6c | ||
|
|
a67ff3843a | ||
|
|
9ae839ad72 | ||
|
|
66f71aecf7 | ||
|
|
0b203a3673 | ||
|
|
26c3f9f914 | ||
|
|
474c248c9d | ||
|
|
5b1b6b5be0 | ||
|
|
45e9030358 | ||
|
|
f9c1600f0d | ||
|
|
ad85f8882b | ||
|
|
206ed06905 | ||
|
|
e407ba47c2 | ||
|
|
7fdf42a56f | ||
|
|
4eea541352 | ||
|
|
ed9c67804a | ||
|
|
9c20cd5f7b | ||
|
|
6c86827d3a | ||
|
|
d2b2f3d54d | ||
|
|
64b3397f8e | ||
|
|
0829517b72 | ||
|
|
c1bfc1df67 | ||
|
|
96c0c43dc8 | ||
|
|
a68c7f4ef8 | ||
|
|
7c474e6827 | ||
|
|
143bab87f1 | ||
|
|
580f35112e | ||
|
|
3249ffb273 | ||
|
|
7bae9463b2 | ||
|
|
ae30ac6e3c | ||
|
|
46ed520886 | ||
|
|
ace02a6dfa | ||
|
|
0d59754be2 | ||
|
|
15bd26c9b1 | ||
|
|
bc371acb3e | ||
|
|
2eb5fbf112 | ||
|
|
fc0fb158d5 | ||
|
|
404807c697 | ||
|
|
29ea7c53f2 | ||
|
|
1fc4af9c86 | ||
|
|
ac762762c3 | ||
|
|
553676aade | ||
|
|
a13b9815f6 | ||
|
|
156e7cc628 | ||
|
|
959ca0f412 | ||
|
|
9755fa0537 | ||
|
|
77ec86d31a | ||
|
|
189d4b459f | ||
|
|
44f40966e7 | ||
|
|
7d3313e732 | ||
|
|
591b50dfa7 | ||
|
|
27ef661fec | ||
|
|
d7935abc14 | ||
|
|
11068aa9d0 | ||
|
|
1234003527 | ||
|
|
e5ebf938f6 | ||
|
|
8c2c07fd18 | ||
|
|
9e1a50c3be | ||
|
|
ac8ddada0b | ||
|
|
885485da70 | ||
|
|
bb4e863e87 | ||
|
|
c7a4220d65 | ||
|
|
03dd9b2d42 | ||
|
|
89ca085b94 | ||
|
|
fffd9defea | ||
|
|
d10fea6012 | ||
|
|
ab26aee8b2 | ||
|
|
bb80a7b2ee | ||
|
|
e4a6b29279 | ||
|
|
d12c7809dd | ||
|
|
357ce0382e | ||
|
|
73da3d9b20 | ||
|
|
e67b7a6d5e | ||
|
|
4e25bebdd0 | ||
|
|
abd22d2566 | ||
|
|
8aeb597780 | ||
|
|
33825f6d96 | ||
|
|
eca504cb07 | ||
|
|
4c75440af4 | ||
|
|
94f7528885 | ||
|
|
4dadf6d353 | ||
|
|
2d27e72ed9 | ||
|
|
4ff0c8a8d1 | ||
|
|
f9fba94863 | ||
|
|
f9b246dbd0 | ||
|
|
8fefded8dc | ||
|
|
18824830fd | ||
|
|
fa81d87dc0 | ||
|
|
8bc145472a | ||
|
|
7afc1e9762 | ||
|
|
fc59c83e16 | ||
|
|
e4048be088 | ||
|
|
d715a8c290 | ||
|
|
ad308252a1 | ||
|
|
c7d9f83638 | ||
|
|
828fdbfd2d | ||
|
|
40c6fda19d | ||
|
|
b69816c2f9 | ||
|
|
46f5234bd9 | ||
|
|
81b8d7a66b | ||
|
|
b1285a16c1 | ||
|
|
90140e7710 | ||
|
|
8364e68667 | ||
|
|
4bb420d049 | ||
|
|
560dc68120 | ||
|
|
8fcb8e54f7 | ||
|
|
6c70e56059 | ||
|
|
b24d292ade | ||
|
|
2137de37b9 | ||
|
|
3c591ad8a9 | ||
|
|
b56f4c4558 | ||
|
|
5d8bcb42c6 | ||
|
|
b299652e86 | ||
|
|
8ac4b001a2 | ||
|
|
6294ce7807 | ||
|
|
8173cd7776 | ||
|
|
edaccd86d6 | ||
|
|
5f77408956 | ||
|
|
e836523bc3 | ||
|
|
9f866be110 | ||
|
|
f6879f40b0 | ||
|
|
06f47f262f | ||
|
|
eda52a3b82 | ||
|
|
3f1ab66899 | ||
|
|
af844ea9d5 | ||
|
|
b75efcbca2 | ||
|
|
25043278ab | ||
|
|
644069fb23 | ||
|
|
0eccb6a610 | ||
|
|
0abd514064 | ||
|
|
3879fde06d | ||
|
|
887433fc6a | ||
|
|
dd7a07bd0d | ||
|
|
0ee32cf110 | ||
|
|
72aa68cedc | ||
|
|
9adffa1ef5 | ||
|
|
4ca267ea17 | ||
|
|
833768172d | ||
|
|
1ec459ea3a | ||
|
|
66d0ad5803 | ||
|
|
92ac025e43 | ||
|
|
e8b2fde753 | ||
|
|
0fc7999780 | ||
|
|
3a403392e7 | ||
|
|
acccc6fd93 | ||
|
|
40bb4765d4 | ||
|
|
48c60621b6 | ||
|
|
51509760e3 | ||
|
|
1e1610671e | ||
|
|
de86c37687 | ||
|
|
6e332bbdf8 | ||
|
|
8a8a0c7dec | ||
|
|
d4b9b5a7dd | ||
|
|
6df541e1fd | ||
|
|
748087483c | ||
|
|
ae91fa6a39 | ||
|
|
2897afce41 | ||
|
|
ee8091ba91 | ||
|
|
30b5faebae | ||
|
|
8d753f821d | ||
|
|
54eb03d2a1 | ||
|
|
dd6276e706 | ||
|
|
f67ec241d4 | ||
|
|
8ade85edec | ||
|
|
a2ca18a714 | ||
|
|
6a83ff2511 | ||
|
|
bc3a06178b | ||
|
|
9fda259c0c | ||
|
|
d4925622f9 | ||
|
|
dbeaf43b8f | ||
|
|
f86957e5e1 | ||
|
|
a2f42d51fd | ||
|
|
0b71cfaf06 | ||
|
|
d558ac83b6 | ||
|
|
74efc94649 | ||
|
|
2541a345d0 | ||
|
|
23ce1e930d | ||
|
|
6ebad84160 | ||
|
|
24ac9f3e5a | ||
|
|
2a15b95f18 | ||
|
|
757150dec1 | ||
|
|
ddcec82b61 | ||
|
|
74047453ef | ||
|
|
dcaed0e90f | ||
|
|
cae304e07f | ||
|
|
039ab1ccd7 | ||
|
|
47ad0ca993 | ||
|
|
9c751230a1 | ||
|
|
a468ed316d | ||
|
|
e725730982 | ||
|
|
21c12d118b | ||
|
|
b9e74ee9ab | ||
|
|
0f2cff5078 | ||
|
|
e5e196bd7f | ||
|
|
077402406b | ||
|
|
54900ae318 | ||
|
|
3c015bf822 | ||
|
|
a1efcfb2d0 | ||
|
|
75d531285a | ||
|
|
0aad7db2d2 | ||
|
|
20c3b890ae | ||
|
|
0126960d79 | ||
|
|
849d441c5c | ||
|
|
b5f5627ca6 | ||
|
|
5b0c1e5b9e | ||
|
|
3cff0df0ce | ||
|
|
15fa55c223 | ||
|
|
594ca3a04b | ||
|
|
fafe5623d1 | ||
|
|
141cf39368 | ||
|
|
1fa050fd7a | ||
|
|
f36e7430ae | ||
|
|
94fd75e014 | ||
|
|
95d6da3111 | ||
|
|
4dc4704bb4 | ||
|
|
18bf7f93fa | ||
|
|
c73f694c63 | ||
|
|
3688a3bc67 | ||
|
|
775a3a1c22 | ||
|
|
bbbb3b4a06 | ||
|
|
576191cd4e | ||
|
|
38d398c967 | ||
|
|
7da44115d3 | ||
|
|
b54032bdc7 | ||
|
|
cab497e81e | ||
|
|
50e9c67609 | ||
|
|
bd57ea0110 | ||
|
|
05fe7f8a48 | ||
|
|
c0bd3b362c | ||
|
|
6381028fd6 | ||
|
|
1f328be1bd | ||
|
|
ddfdb71783 | ||
|
|
da1478c0c1 | ||
|
|
40fe3b4358 | ||
|
|
20fd1db0f4 | ||
|
|
a65aaab849 | ||
|
|
a5595189ed | ||
|
|
4a1da3ebc5 | ||
|
|
35a4460334 | ||
|
|
a6ccb37683 | ||
|
|
68465aed49 | ||
|
|
fc3aac96f2 | ||
|
|
32c7669b28 | ||
|
|
fef30bc671 | ||
|
|
ae547d27e4 | ||
|
|
be3e1831d4 | ||
|
|
45aceea53b | ||
|
|
25819584bd | ||
|
|
4c24b70d47 | ||
|
|
4c12673fbb | ||
|
|
e935db5075 | ||
|
|
a7f1f8d327 | ||
|
|
8c540d7210 | ||
|
|
4c4b884f8e | ||
|
|
a3d3fe07ce | ||
|
|
1ae521f560 | ||
|
|
7854e1c2c1 | ||
|
|
a9ff795948 | ||
|
|
a8e2f97260 | ||
|
|
d17253b023 | ||
|
|
ecbf0410eb | ||
|
|
cffc431bf0 | ||
|
|
dc54981784 | ||
|
|
a7ed90f042 | ||
|
|
08941ab39a | ||
|
|
b81a8d26e4 | ||
|
|
af84af7b7a | ||
|
|
0f813962be | ||
|
|
fe57f7f489 | ||
|
|
12e2c04486 | ||
|
|
6bafb68d77 | ||
|
|
e8763b3697 | ||
|
|
6f2924006c | ||
|
|
062c305cd8 | ||
|
|
61a4a4bc2f | ||
|
|
176af55e8c | ||
|
|
1a51ce712c | ||
|
|
811da2e159 | ||
|
|
535bf6e4b9 | ||
|
|
515f06ba6c | ||
|
|
6c43e5dba9 | ||
|
|
d498fabe72 | ||
|
|
27e71eb142 | ||
|
|
7c63cb5bca | ||
|
|
ddf3a687a3 | ||
|
|
4515eb4637 | ||
|
|
efd1194307 | ||
|
|
5e0d8fe4c7 | ||
|
|
e44a9e8921 | ||
|
|
ff9e1da1de | ||
|
|
1ed8642010 | ||
|
|
38ff46e45c | ||
|
|
2362d0e838 | ||
|
|
90d7fc6bc5 | ||
|
|
bcae0cf441 | ||
|
|
edababa88e | ||
|
|
350abda21a | ||
|
|
1c24f0054a | ||
|
|
f7eaace7ae | ||
|
|
8573016bef | ||
|
|
6bf2708c0e | ||
|
|
36d7eb7caa | ||
|
|
4fc8d33d31 | ||
|
|
c4e2f3bc70 | ||
|
|
2f69f5afe6 | ||
|
|
9bcb928715 | ||
|
|
e3edcf057c | ||
|
|
06ccf7e9e9 | ||
|
|
e4ea35e626 | ||
|
|
bd906a7915 | ||
|
|
329bece28d | ||
|
|
0c86c77d42 | ||
|
|
3df33199bc | ||
|
|
fc145016ea | ||
|
|
c17524bc3c | ||
|
|
d5acd11164 | ||
|
|
2a66923524 | ||
|
|
088a0fb4a5 | ||
|
|
4f10f82580 | ||
|
|
5aee70ac7a | ||
|
|
5ff476c6f9 | ||
|
|
7ad30f15d5 | ||
|
|
641f1244dd | ||
|
|
a1fd29b34b | ||
|
|
90c1cc3e3b | ||
|
|
ba49054cd7 | ||
|
|
61854f1d6a | ||
|
|
1f9ba1d625 | ||
|
|
644ea7be4a | ||
|
|
87ab4e7c9b | ||
|
|
d84e3cacca | ||
|
|
2f38d960d4 | ||
|
|
b4acf4f341 | ||
|
|
62657ad05a | ||
|
|
f3784505e0 | ||
|
|
863f51363a | ||
|
|
22ee6bb137 | ||
|
|
3972642ba0 | ||
|
|
e016bd6900 | ||
|
|
d2588d9de4 | ||
|
|
07d1692f2b | ||
|
|
8db9824842 | ||
|
|
c8521554c8 | ||
|
|
ceb7aa8b36 | ||
|
|
cae11cbb86 | ||
|
|
03ff3e639f | ||
|
|
f5dbcd5465 | ||
|
|
f143fceceb | ||
|
|
8be139d4d1 | ||
|
|
2fc58fea81 | ||
|
|
17901fcfef | ||
|
|
e7dfbf76bb | ||
|
|
d6b16a7747 | ||
|
|
17fa830851 | ||
|
|
149339a8d9 | ||
|
|
94de29187a | ||
|
|
a82c1f303b | ||
|
|
764cca5a70 | ||
|
|
18a6aa1824 | ||
|
|
5c00ed352c | ||
|
|
7e9a7ad49c | ||
|
|
fe2fec81ac | ||
|
|
055f0dfc22 | ||
|
|
ddf9163c47 | ||
|
|
e80322dab7 | ||
|
|
7626dd239a | ||
|
|
9afa1354da | ||
|
|
58a471e466 | ||
|
|
e66f47bdf6 | ||
|
|
21a50cc452 | ||
|
|
5239790835 | ||
|
|
0acbd3d5e8 | ||
|
|
e3da5ef2d5 | ||
|
|
ecaba82c9d | ||
|
|
921c9de241 | ||
|
|
6a0b5c3a3f | ||
|
|
a8dcc87019 | ||
|
|
4ec136cab0 | ||
|
|
cf7718132a | ||
|
|
939a055d46 | ||
|
|
01fa1777ac | ||
|
|
a77436eec3 | ||
|
|
c268a126dc | ||
|
|
29e86d4eeb | ||
|
|
9d18061d0f | ||
|
|
943114c052 | ||
|
|
2cb81ef116 | ||
|
|
c16450adc8 | ||
|
|
347d54f388 | ||
|
|
3428baa3fa | ||
|
|
4f8066a35a | ||
|
|
04fd05bc7d | ||
|
|
3abf89596a | ||
|
|
690ee3dc15 | ||
|
|
331c882af2 | ||
|
|
b4eb83d892 | ||
|
|
4a35573210 | ||
|
|
e7fabce4e0 | ||
|
|
feb2c9fc62 | ||
|
|
dd7fd16b69 | ||
|
|
d93d6262ce | ||
|
|
9d7e499adb | ||
|
|
0d7a148897 | ||
|
|
9e825811f2 | ||
|
|
36cbffcc5e | ||
|
|
55e1f865d8 | ||
|
|
3f996cd62c | ||
|
|
58a8028485 | ||
|
|
190ce5ee31 | ||
|
|
70aab068fd | ||
|
|
617d279419 | ||
|
|
4de088d725 | ||
|
|
f8fd746678 | ||
|
|
1529ee59fe | ||
|
|
19c253b429 | ||
|
|
13bb9dd715 | ||
|
|
9b4602acb3 | ||
|
|
e5448110fc | ||
|
|
4974defe6f | ||
|
|
65ceadda2b | ||
|
|
8b2adb55ed | ||
|
|
58ca44bd15 | ||
|
|
ef46451b80 | ||
|
|
758b0f9734 | ||
|
|
3650000b31 | ||
|
|
dbd042ca3e | ||
|
|
6b9082bdd9 | ||
|
|
f9baa3bf20 | ||
|
|
a75feb7f8f | ||
|
|
009900b29b | ||
|
|
dc04cf82d8 | ||
|
|
b2c23a367d | ||
|
|
338b59a32e | ||
|
|
07ffd76437 | ||
|
|
3eaf9f4011 | ||
|
|
9832831c5e | ||
|
|
d3259c4782 | ||
|
|
940c12d9d8 | ||
|
|
8f2cbe261b | ||
|
|
e86788034d | ||
|
|
4ecc0e15ce | ||
|
|
b01ce31903 | ||
|
|
87b69c373a | ||
|
|
07b3160dff | ||
|
|
096e2791f5 | ||
|
|
9d456ccfcf | ||
|
|
ad5c3741e9 | ||
|
|
fe188bd646 | ||
|
|
f47984818f | ||
|
|
7b274b6974 | ||
|
|
b1806b0a7c | ||
|
|
ff2e46650c | ||
|
|
69fe6cdc05 | ||
|
|
b7e0d14b83 | ||
|
|
7db6ed9ad5 | ||
|
|
da0f63f095 | ||
|
|
90221e8c94 | ||
|
|
37680c317c | ||
|
|
f4f3cfa911 | ||
|
|
ca0f6e4c0a | ||
|
|
70ea6fc9a1 | ||
|
|
a7ccabd8f1 | ||
|
|
453a8d794e | ||
|
|
67e692a7f3 | ||
|
|
ce79898cae | ||
|
|
bf90daae2b | ||
|
|
34382ac38e | ||
|
|
fdb5d53960 | ||
|
|
2dc5a7f767 | ||
|
|
65ca3c8fa3 | ||
|
|
ff34af2c1f | ||
|
|
e01b6ee76b | ||
|
|
b94b08a33c | ||
|
|
540d66af57 | ||
|
|
1c7ee5f4e4 | ||
|
|
a2deeb0d12 | ||
|
|
22fe261dd6 | ||
|
|
d96f76c27f | ||
|
|
1da934e63c | ||
|
|
38a8d34ba5 | ||
|
|
8e31244fb3 | ||
|
|
3a124dbb84 | ||
|
|
b44354ad29 | ||
|
|
8c23ede683 | ||
|
|
3ffbdb35a2 | ||
|
|
4133e454c4 | ||
|
|
4dce8ff60a | ||
|
|
2e724291db | ||
|
|
0504e9ef79 | ||
|
|
f6b61c26ae | ||
|
|
1b876bf8d3 | ||
|
|
b0d42ea116 | ||
|
|
05bc3839cc | ||
|
|
281482927a | ||
|
|
132a712341 | ||
|
|
b309287087 | ||
|
|
13d121f443 | ||
|
|
e891f2ad6d | ||
|
|
67ba3dbd8b | ||
|
|
4afa7bf4e1 | ||
|
|
77bf710299 | ||
|
|
9b96211faf | ||
|
|
99e03576bf | ||
|
|
78d67484e1 | ||
|
|
e9e86cc5af | ||
|
|
9b1fb33ac6 | ||
|
|
70618e93b7 | ||
|
|
c84511de16 | ||
|
|
6d9590b4ec | ||
|
|
33e04fe61f | ||
|
|
9f43d10ba7 | ||
|
|
57503cc318 | ||
|
|
e563692fa2 | ||
|
|
9c2974438d | ||
|
|
54e1bd9eeb | ||
|
|
8212b66ee0 | ||
|
|
43d2986208 | ||
|
|
f8f7b74792 | ||
|
|
5069072a84 | ||
|
|
93b81756c6 | ||
|
|
4a867ddd56 | ||
|
|
a347cb5a42 | ||
|
|
8a099b4ae5 | ||
|
|
80e8930e73 | ||
|
|
2637541c6c | ||
|
|
da913d8d31 | ||
|
|
88d4b694f8 | ||
|
|
b28cc45510 | ||
|
|
c0b23ca938 | ||
|
|
8e7b83d2f1 | ||
|
|
599dd7eecb | ||
|
|
84348350fe | ||
|
|
7d03d99852 | ||
|
|
7c39b176ac | ||
|
|
4c2e6f75a2 | ||
|
|
81139e8f47 | ||
|
|
cea0596cf5 | ||
|
|
51a1526146 | ||
|
|
b4db07d7a5 | ||
|
|
5c15659a34 | ||
|
|
1bd3285679 | ||
|
|
6de426c697 | ||
|
|
d28ad0f0c8 | ||
|
|
47aecff567 | ||
|
|
524f03a650 | ||
|
|
68e6ffdfef | ||
|
|
29345c429a | ||
|
|
2cdd483126 | ||
|
|
f2c46408c4 | ||
|
|
e5dc476c1e | ||
|
|
eb2363b93d | ||
|
|
7bfebd5b61 | ||
|
|
6addf4d88b | ||
|
|
c56e7e7c6c | ||
|
|
78c15f3020 | ||
|
|
30f0f73a4e | ||
|
|
e9da453190 | ||
|
|
91f62cf8ce | ||
|
|
58dbbd5d29 | ||
|
|
5c90f7dce7 | ||
|
|
b7cf5f4105 | ||
|
|
c850604931 | ||
|
|
82d2910039 | ||
|
|
5066fa369d | ||
|
|
3afd77cbe0 | ||
|
|
093201a1cc | ||
|
|
6102e9e5ea | ||
|
|
91215a1406 | ||
|
|
a4eb435f1a | ||
|
|
843d301950 | ||
|
|
d08fe170f2 | ||
|
|
51153af944 | ||
|
|
e7ec014502 | ||
|
|
2ebd2dfcc7 | ||
|
|
aaafd63b94 | ||
|
|
a361372182 | ||
|
|
8f51f7b4c4 | ||
|
|
e416e44998 | ||
|
|
fe4a737421 | ||
|
|
4ee8557061 | ||
|
|
88e1d56799 | ||
|
|
40be915061 | ||
|
|
0d7ee7a87a | ||
|
|
baf209f257 | ||
|
|
c2824d153e | ||
|
|
d2f88491b1 | ||
|
|
aacb8c84e0 | ||
|
|
f44df9fe61 | ||
|
|
34812b7439 | ||
|
|
0ce596ec8f | ||
|
|
2ea1d34f4f | ||
|
|
a0741aa7b1 | ||
|
|
188a7de467 | ||
|
|
1f4ca32e8c | ||
|
|
784b701cc5 | ||
|
|
be9e606ae4 | ||
|
|
fe9a3c9205 | ||
|
|
012aa63571 | ||
|
|
ef7846bb41 | ||
|
|
6948702891 | ||
|
|
56b4a551dc | ||
|
|
93e08688be | ||
|
|
0ed7e278eb | ||
|
|
b30fecbd28 | ||
|
|
f050c7b37d | ||
|
|
f9e1ad253f | ||
|
|
f0159bf41e | ||
|
|
21a777ab45 | ||
|
|
18b8e19847 | ||
|
|
53a2a865f1 | ||
|
|
48a87b16b8 | ||
|
|
46c3ef8c6b | ||
|
|
94b1350c9d | ||
|
|
bfbacee7b5 | ||
|
|
c3455518c2 | ||
|
|
00e235867a | ||
|
|
88046ebd15 | ||
|
|
abc1ecfb60 | ||
|
|
9bbb88cdcb | ||
|
|
c867d90f50 | ||
|
|
1129a2aba4 | ||
|
|
3410290b45 | ||
|
|
b34be991bd | ||
|
|
73755e9777 | ||
|
|
c871bebee6 | ||
|
|
a60ffe06ac | ||
|
|
9f81ce2876 | ||
|
|
5c33cdba4e | ||
|
|
e9cdef9f25 | ||
|
|
d01457e64d | ||
|
|
c72d304515 | ||
|
|
10c1f7ead4 | ||
|
|
7b57a66d45 | ||
|
|
767033e4d8 | ||
|
|
e6790d9a6a | ||
|
|
4bca405e29 | ||
|
|
bdda89b5e2 | ||
|
|
2cbc336bc0 | ||
|
|
6c107883b5 | ||
|
|
4635e64b2e | ||
|
|
5b60785cca | ||
|
|
ef304e6f7f | ||
|
|
24770148a7 | ||
|
|
ba6fc0fdb3 | ||
|
|
89a478ce0a | ||
|
|
f1bb797fe0 | ||
|
|
e208241eea | ||
|
|
02af1b0ac7 | ||
|
|
3c12872a56 | ||
|
|
4e5a6eb1c8 | ||
|
|
5617fbbcb1 | ||
|
|
15e2df1e5c | ||
|
|
0d862d6aa8 | ||
|
|
9ceffeb191 | ||
|
|
b49cda274d | ||
|
|
2934c7817d | ||
|
|
4078a147ef | ||
|
|
1cb5dcb7dc | ||
|
|
7aec8222fc | ||
|
|
30e1969fad | ||
|
|
a7da468b97 | ||
|
|
1a0d9e10d7 | ||
|
|
9514a3d089 | ||
|
|
349b27b764 | ||
|
|
e56ce993df | ||
|
|
3e1861e2ce | ||
|
|
187d98a153 | ||
|
|
2d4d1584fd | ||
|
|
c75fc40833 | ||
|
|
e3c8901549 | ||
|
|
6978140492 | ||
|
|
272a21ffab | ||
|
|
a8e901b63c | ||
|
|
bb359f67a4 | ||
|
|
c9d253a320 | ||
|
|
b3eab17f2c | ||
|
|
962d213699 | ||
|
|
18d561da0e | ||
|
|
30b86271ea | ||
|
|
5f3c35209d | ||
|
|
2535519830 | ||
|
|
f4dd3e44b6 | ||
|
|
11babb9509 | ||
|
|
e1bedf30bf | ||
|
|
859682c8d1 | ||
|
|
804edceec2 | ||
|
|
9f181014a1 | ||
|
|
4313fd97aa | ||
|
|
4e569ad644 | ||
|
|
b4384a1be3 | ||
|
|
5b42c91a91 | ||
|
|
926d394b2f | ||
|
|
fc5a926892 | ||
|
|
d2787d4308 | ||
|
|
8cc170f027 | ||
|
|
53fa64fd14 | ||
|
|
8c96dfe1d1 | ||
|
|
36ae42a011 | ||
|
|
0181d1e377 | ||
|
|
3f0a954856 | ||
|
|
2875e84cb5 | ||
|
|
7917bf55ff | ||
|
|
ea0292b911 | ||
|
|
e6d1ad0ac5 | ||
|
|
9808ff64e7 | ||
|
|
f65ddccd6e | ||
|
|
b763754723 | ||
|
|
d5dafffc39 | ||
|
|
bd7c575f26 | ||
|
|
13f250f630 | ||
|
|
7a4eb0b37c | ||
|
|
1e80342c41 | ||
|
|
7031c47fb2 | ||
|
|
e431031112 | ||
|
|
379061f847 | ||
|
|
beefc51361 | ||
|
|
bccffe6670 | ||
|
|
8418b65f34 | ||
|
|
6e53c109b6 | ||
|
|
7b99bbfd28 | ||
|
|
8179278bfa | ||
|
|
758df09da3 | ||
|
|
a3d116e70e | ||
|
|
8c325801ef | ||
|
|
35946d332d | ||
|
|
142641b387 | ||
|
|
402c16e7df | ||
|
|
3e6b8c23bc | ||
|
|
1c5e7ebb48 | ||
|
|
9cb3e11df6 | ||
|
|
1c2e2a7b38 | ||
|
|
a763ae303d | ||
|
|
ec88752666 | ||
|
|
4135cabf58 | ||
|
|
9fc22efa2d | ||
|
|
37dd3fc25b | ||
|
|
9e8202874e | ||
|
|
9245c5cb56 | ||
|
|
f1c0422d5e | ||
|
|
3dd401f57a | ||
|
|
6dd9660ecd | ||
|
|
d5f6decd30 | ||
|
|
cf4517cbdb | ||
|
|
61f79afae9 | ||
|
|
5513addab8 | ||
|
|
d064e44571 | ||
|
|
c95758580f | ||
|
|
ced5ab203f | ||
|
|
4236580672 | ||
|
|
f7c3ddd380 | ||
|
|
8546d3d315 | ||
|
|
2fda383782 | ||
|
|
4165639308 | ||
|
|
6913cc6abc | ||
|
|
d64633889b | ||
|
|
7bed854ff7 | ||
|
|
c1330704cf | ||
|
|
5900a2a4ba | ||
|
|
bfeb7b8a96 | ||
|
|
a86e22e0fc | ||
|
|
c07f6999ca | ||
|
|
eca8c52f15 | ||
|
|
be147d218b | ||
|
|
7a9ee63bd3 | ||
|
|
c2eac10925 | ||
|
|
63d81bef45 | ||
|
|
3f171e7670 | ||
|
|
681c7367d7 | ||
|
|
adb043e7ae |
@@ -1,168 +1,311 @@
|
|||||||
rtmp
|
|
||||||
edgetpu
|
|
||||||
labelmap
|
|
||||||
rockchip
|
|
||||||
jetson
|
|
||||||
rocm
|
|
||||||
vaapi
|
|
||||||
CUDA
|
|
||||||
hwaccel
|
|
||||||
RTSP
|
|
||||||
Hikvision
|
|
||||||
Dahua
|
|
||||||
Amcrest
|
|
||||||
Reolink
|
|
||||||
Loryta
|
|
||||||
Beelink
|
|
||||||
Celeron
|
|
||||||
vaapi
|
|
||||||
blakeblackshear
|
|
||||||
workdir
|
|
||||||
onvif
|
|
||||||
autotracking
|
|
||||||
openvino
|
|
||||||
tflite
|
|
||||||
deepstack
|
|
||||||
codeproject
|
|
||||||
udev
|
|
||||||
tailscale
|
|
||||||
restream
|
|
||||||
restreaming
|
|
||||||
webrtc
|
|
||||||
ssdlite
|
|
||||||
mobilenet
|
|
||||||
mosquitto
|
|
||||||
datasheet
|
|
||||||
Jellyfin
|
|
||||||
Radeon
|
|
||||||
libva
|
|
||||||
Ubiquiti
|
|
||||||
Unifi
|
|
||||||
Tapo
|
|
||||||
Annke
|
|
||||||
autotracker
|
|
||||||
autotracked
|
|
||||||
variations
|
|
||||||
ONVIF
|
|
||||||
traefik
|
|
||||||
devcontainer
|
|
||||||
rootfs
|
|
||||||
ffprobe
|
|
||||||
autotrack
|
|
||||||
logpipe
|
|
||||||
imread
|
|
||||||
imwrite
|
|
||||||
imencode
|
|
||||||
imutils
|
|
||||||
thresholded
|
|
||||||
timelapse
|
|
||||||
ultrafast
|
|
||||||
sleeptime
|
|
||||||
radeontop
|
|
||||||
vainfo
|
|
||||||
tmpfs
|
|
||||||
homography
|
|
||||||
websockets
|
|
||||||
LIBAVFORMAT
|
|
||||||
NTSC
|
|
||||||
onnxruntime
|
|
||||||
fourcc
|
|
||||||
radeonsi
|
|
||||||
paho
|
|
||||||
imagestream
|
|
||||||
jsonify
|
|
||||||
cgroups
|
|
||||||
sysconf
|
|
||||||
memlimit
|
|
||||||
gpuload
|
|
||||||
nvml
|
|
||||||
setproctitle
|
|
||||||
psutil
|
|
||||||
Kalman
|
|
||||||
frontdoor
|
|
||||||
namedtuples
|
|
||||||
zeep
|
|
||||||
fflags
|
|
||||||
probesize
|
|
||||||
wallclock
|
|
||||||
rknn
|
|
||||||
socs
|
|
||||||
pydantic
|
|
||||||
shms
|
|
||||||
imdecode
|
|
||||||
colormap
|
|
||||||
webui
|
|
||||||
mse
|
|
||||||
jsmpeg
|
|
||||||
unreviewed
|
|
||||||
Chromecast
|
|
||||||
Swipeable
|
|
||||||
flac
|
|
||||||
scroller
|
|
||||||
cmdline
|
|
||||||
toggleable
|
|
||||||
bottombar
|
|
||||||
opencv
|
|
||||||
apexcharts
|
|
||||||
buildx
|
|
||||||
mqtt
|
|
||||||
rawvideo
|
|
||||||
defragment
|
|
||||||
Norfair
|
|
||||||
subclassing
|
|
||||||
yolo
|
|
||||||
tensorrt
|
|
||||||
blackshear
|
|
||||||
stylelint
|
|
||||||
HACS
|
|
||||||
homeassistant
|
|
||||||
hass
|
|
||||||
castable
|
|
||||||
mobiledet
|
|
||||||
framebuffer
|
|
||||||
mjpeg
|
|
||||||
substream
|
|
||||||
codeowner
|
|
||||||
noninteractive
|
|
||||||
restreamed
|
|
||||||
mountpoint
|
|
||||||
fstype
|
|
||||||
OWASP
|
|
||||||
iotop
|
|
||||||
letsencrypt
|
|
||||||
fullchain
|
|
||||||
lsusb
|
|
||||||
iostat
|
|
||||||
usermod
|
|
||||||
balena
|
|
||||||
passwordless
|
|
||||||
debconf
|
|
||||||
dpkg
|
|
||||||
poweroff
|
|
||||||
surveillance
|
|
||||||
qnap
|
|
||||||
homekit
|
|
||||||
colorspace
|
|
||||||
quantisation
|
|
||||||
skylake
|
|
||||||
Cuvid
|
|
||||||
foscam
|
|
||||||
onnx
|
|
||||||
numpy
|
|
||||||
protobuf
|
|
||||||
aarch
|
aarch
|
||||||
|
absdiff
|
||||||
|
airockchip
|
||||||
|
Alloc
|
||||||
|
Amcrest
|
||||||
amdgpu
|
amdgpu
|
||||||
chipset
|
analyzeduration
|
||||||
referer
|
Annke
|
||||||
mpegts
|
apexcharts
|
||||||
webp
|
arange
|
||||||
|
argmax
|
||||||
|
argmin
|
||||||
|
argpartition
|
||||||
|
ascontiguousarray
|
||||||
|
astype
|
||||||
authelia
|
authelia
|
||||||
authentik
|
authentik
|
||||||
unichip
|
autodetected
|
||||||
rebranded
|
|
||||||
udevadm
|
|
||||||
automations
|
automations
|
||||||
unraid
|
autotrack
|
||||||
hideable
|
autotracked
|
||||||
|
autotracker
|
||||||
|
autotracking
|
||||||
|
balena
|
||||||
|
Beelink
|
||||||
|
BGRA
|
||||||
|
BHWC
|
||||||
|
blackshear
|
||||||
|
blakeblackshear
|
||||||
|
bottombar
|
||||||
|
buildx
|
||||||
|
castable
|
||||||
|
cdist
|
||||||
|
Celeron
|
||||||
|
cgroups
|
||||||
|
chipset
|
||||||
|
chromadb
|
||||||
|
Chromecast
|
||||||
|
cmdline
|
||||||
|
codeowner
|
||||||
|
CODEOWNERS
|
||||||
|
codeproject
|
||||||
|
colormap
|
||||||
|
colorspace
|
||||||
|
comms
|
||||||
|
coro
|
||||||
|
ctypeslib
|
||||||
|
CUDA
|
||||||
|
Cuvid
|
||||||
|
Dahua
|
||||||
|
datasheet
|
||||||
|
debconf
|
||||||
|
deci
|
||||||
|
deepstack
|
||||||
|
defragment
|
||||||
|
devcontainer
|
||||||
|
DEVICEMAP
|
||||||
|
discardcorrupt
|
||||||
|
dpkg
|
||||||
|
dsize
|
||||||
|
dtype
|
||||||
|
ECONNRESET
|
||||||
|
edgetpu
|
||||||
|
fastapi
|
||||||
|
faststart
|
||||||
|
fflags
|
||||||
|
ffprobe
|
||||||
|
fillna
|
||||||
|
flac
|
||||||
|
foscam
|
||||||
|
fourcc
|
||||||
|
framebuffer
|
||||||
|
fregate
|
||||||
|
frégate
|
||||||
|
fromarray
|
||||||
|
frombuffer
|
||||||
|
frontdoor
|
||||||
|
fstype
|
||||||
|
fullchain
|
||||||
|
fullscreen
|
||||||
|
genai
|
||||||
|
generativeai
|
||||||
|
genpts
|
||||||
|
getpid
|
||||||
|
gpuload
|
||||||
|
HACS
|
||||||
|
Hailo
|
||||||
|
hass
|
||||||
|
hconcat
|
||||||
healthcheck
|
healthcheck
|
||||||
keepalive
|
hideable
|
||||||
|
Hikvision
|
||||||
|
homeassistant
|
||||||
|
homekit
|
||||||
|
homography
|
||||||
|
hsize
|
||||||
|
hstack
|
||||||
|
httpx
|
||||||
|
hwaccel
|
||||||
|
hwdownload
|
||||||
|
hwmap
|
||||||
|
hwupload
|
||||||
|
iloc
|
||||||
|
imagestream
|
||||||
|
imdecode
|
||||||
|
imencode
|
||||||
|
imread
|
||||||
|
imutils
|
||||||
|
imwrite
|
||||||
|
interp
|
||||||
|
iostat
|
||||||
|
iotop
|
||||||
|
itemsize
|
||||||
|
Jellyfin
|
||||||
|
jetson
|
||||||
|
jetsons
|
||||||
|
joserfc
|
||||||
|
jsmpeg
|
||||||
|
jsonify
|
||||||
|
Kalman
|
||||||
|
keepalive
|
||||||
|
keepdims
|
||||||
|
labelmap
|
||||||
|
letsencrypt
|
||||||
|
levelname
|
||||||
|
LIBAVFORMAT
|
||||||
|
libedgetpu
|
||||||
|
libnvinfer
|
||||||
|
libva
|
||||||
|
libwebp
|
||||||
|
libx
|
||||||
|
libyolo
|
||||||
|
linalg
|
||||||
|
localzone
|
||||||
|
logpipe
|
||||||
|
Loryta
|
||||||
|
lstsq
|
||||||
|
lsusb
|
||||||
|
markupsafe
|
||||||
|
maxsplit
|
||||||
|
MEMHOSTALLOC
|
||||||
|
memlimit
|
||||||
|
meshgrid
|
||||||
|
metadatas
|
||||||
|
migraphx
|
||||||
|
minilm
|
||||||
|
mjpeg
|
||||||
|
mkfifo
|
||||||
|
mobiledet
|
||||||
|
mobilenet
|
||||||
|
modelpath
|
||||||
|
mosquitto
|
||||||
|
mountpoint
|
||||||
|
movflags
|
||||||
|
mpegts
|
||||||
|
mqtt
|
||||||
|
mse
|
||||||
|
msenc
|
||||||
|
namedtuples
|
||||||
|
nbytes
|
||||||
|
nchw
|
||||||
|
ndarray
|
||||||
|
ndimage
|
||||||
|
nethogs
|
||||||
|
newaxis
|
||||||
|
nhwc
|
||||||
|
NOBLOCK
|
||||||
|
nobuffer
|
||||||
|
nokey
|
||||||
|
NONBLOCK
|
||||||
|
noninteractive
|
||||||
|
noprint
|
||||||
|
Norfair
|
||||||
|
nptype
|
||||||
|
NTSC
|
||||||
|
numpy
|
||||||
|
nvenc
|
||||||
|
nvhost
|
||||||
|
nvml
|
||||||
|
nvmpi
|
||||||
|
ollama
|
||||||
|
onnx
|
||||||
|
onnxruntime
|
||||||
|
onvif
|
||||||
|
ONVIF
|
||||||
|
openai
|
||||||
|
opencv
|
||||||
|
openvino
|
||||||
|
OWASP
|
||||||
|
paho
|
||||||
|
passwordless
|
||||||
|
popleft
|
||||||
|
posthog
|
||||||
|
postprocess
|
||||||
|
poweroff
|
||||||
|
preexec
|
||||||
|
probesize
|
||||||
|
protobuf
|
||||||
|
pstate
|
||||||
|
psutil
|
||||||
|
pubkey
|
||||||
|
putenv
|
||||||
|
pycache
|
||||||
|
pydantic
|
||||||
|
pyobj
|
||||||
|
pysqlite
|
||||||
|
pytz
|
||||||
|
pywebpush
|
||||||
|
qnap
|
||||||
|
quantisation
|
||||||
|
Radeon
|
||||||
|
radeonsi
|
||||||
|
radeontop
|
||||||
|
rawvideo
|
||||||
|
rcond
|
||||||
|
RDONLY
|
||||||
|
rebranded
|
||||||
|
referer
|
||||||
|
reindex
|
||||||
|
Reolink
|
||||||
|
restream
|
||||||
|
restreamed
|
||||||
|
restreaming
|
||||||
|
rkmpp
|
||||||
|
rknn
|
||||||
|
rkrga
|
||||||
|
rockchip
|
||||||
|
rocm
|
||||||
|
rocminfo
|
||||||
|
rootfs
|
||||||
|
rtmp
|
||||||
|
RTSP
|
||||||
|
ruamel
|
||||||
|
scroller
|
||||||
|
setproctitle
|
||||||
|
setpts
|
||||||
|
shms
|
||||||
|
SIGUSR
|
||||||
|
skylake
|
||||||
|
sleeptime
|
||||||
|
SNDMORE
|
||||||
|
socs
|
||||||
|
sqliteq
|
||||||
|
sqlitevecq
|
||||||
|
ssdlite
|
||||||
|
statm
|
||||||
|
stimeout
|
||||||
|
stylelint
|
||||||
|
subclassing
|
||||||
|
substream
|
||||||
|
superfast
|
||||||
|
surveillance
|
||||||
|
svscan
|
||||||
|
Swipeable
|
||||||
|
sysconf
|
||||||
|
tailscale
|
||||||
|
Tapo
|
||||||
|
tensorrt
|
||||||
|
tflite
|
||||||
|
thresholded
|
||||||
|
timelapse
|
||||||
|
tmpfs
|
||||||
|
tobytes
|
||||||
|
toggleable
|
||||||
|
traefik
|
||||||
|
tzlocal
|
||||||
|
Ubiquiti
|
||||||
|
udev
|
||||||
|
udevadm
|
||||||
|
ultrafast
|
||||||
|
unichip
|
||||||
|
unidecode
|
||||||
|
Unifi
|
||||||
|
unixepoch
|
||||||
|
unraid
|
||||||
|
unreviewed
|
||||||
|
userdata
|
||||||
|
usermod
|
||||||
|
uvicorn
|
||||||
|
vaapi
|
||||||
|
vainfo
|
||||||
|
variations
|
||||||
|
vbios
|
||||||
|
vconcat
|
||||||
|
vitb
|
||||||
|
vstream
|
||||||
|
vsync
|
||||||
|
wallclock
|
||||||
|
webp
|
||||||
|
webpush
|
||||||
|
webrtc
|
||||||
|
websockets
|
||||||
|
webui
|
||||||
|
werkzeug
|
||||||
|
workdir
|
||||||
|
WRONLY
|
||||||
|
wsgirefserver
|
||||||
|
wsgiutils
|
||||||
|
wsize
|
||||||
|
xaddr
|
||||||
|
xmaxs
|
||||||
|
xmins
|
||||||
|
XPUB
|
||||||
|
XSUB
|
||||||
|
ymaxs
|
||||||
|
ymins
|
||||||
|
yolo
|
||||||
|
yolonas
|
||||||
|
yolox
|
||||||
|
zeep
|
||||||
|
zerolatency
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/common-utils:1": {}
|
"ghcr.io/devcontainers/features/common-utils:1": {}
|
||||||
},
|
},
|
||||||
"forwardPorts": [8080, 5000, 5001, 5173, 8554, 8555],
|
"forwardPorts": [8971, 5000, 5001, 5173, 8554, 8555],
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"8080": {
|
"8971": {
|
||||||
"label": "External NGINX",
|
"label": "External NGINX",
|
||||||
"onAutoForward": "silent"
|
"onAutoForward": "silent"
|
||||||
},
|
},
|
||||||
@@ -52,7 +52,8 @@
|
|||||||
"csstools.postcss",
|
"csstools.postcss",
|
||||||
"blanu.vscode-styled-jsx",
|
"blanu.vscode-styled-jsx",
|
||||||
"bradlc.vscode-tailwindcss",
|
"bradlc.vscode-tailwindcss",
|
||||||
"charliermarsh.ruff"
|
"charliermarsh.ruff",
|
||||||
|
"eamodio.gitlens"
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"remote.autoForwardPorts": false,
|
"remote.autoForwardPorts": false,
|
||||||
|
|||||||
@@ -3,10 +3,12 @@
|
|||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
# Cleanup the old github host key
|
# Cleanup the old github host key
|
||||||
sed -i -e '/AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31\/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi\/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==/d' ~/.ssh/known_hosts
|
if [[ -f ~/.ssh/known_hosts ]]; then
|
||||||
# Add new github host key
|
# Add new github host key
|
||||||
curl -L https://api.github.com/meta | jq -r '.ssh_keys | .[]' | \
|
sed -i -e '/AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31\/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi\/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==/d' ~/.ssh/known_hosts
|
||||||
sed -e 's/^/github.com /' >> ~/.ssh/known_hosts
|
curl -L https://api.github.com/meta | jq -r '.ssh_keys | .[]' | \
|
||||||
|
sed -e 's/^/github.com /' >> ~/.ssh/known_hosts
|
||||||
|
fi
|
||||||
|
|
||||||
# Frigate normal container runs as root, so it have permission to create
|
# Frigate normal container runs as root, so it have permission to create
|
||||||
# the folders. But the devcontainer runs as the host user, so we need to
|
# the folders. But the devcontainer runs as the host user, so we need to
|
||||||
@@ -17,7 +19,7 @@ sudo chown -R "$(id -u):$(id -g)" /media/frigate
|
|||||||
# When started as a service, LIBAVFORMAT_VERSION_MAJOR is defined in the
|
# When started as a service, LIBAVFORMAT_VERSION_MAJOR is defined in the
|
||||||
# s6 service file. For dev, where frigate is started from an interactive
|
# s6 service file. For dev, where frigate is started from an interactive
|
||||||
# shell, we define it in .bashrc instead.
|
# shell, we define it in .bashrc instead.
|
||||||
echo 'export LIBAVFORMAT_VERSION_MAJOR=$(ffmpeg -version | grep -Po "libavformat\W+\K\d+")' >> $HOME/.bashrc
|
echo 'export LIBAVFORMAT_VERSION_MAJOR=$(/usr/lib/ffmpeg/7.0/bin/ffmpeg -version | grep -Po "libavformat\W+\K\d+")' >> $HOME/.bashrc
|
||||||
|
|
||||||
make version
|
make version
|
||||||
|
|
||||||
|
|||||||
56
.github/DISCUSSION_TEMPLATE/camera-support.yml
vendored
56
.github/DISCUSSION_TEMPLATE/camera-support.yml
vendored
@@ -1,6 +1,16 @@
|
|||||||
title: "[Camera Support]: "
|
title: "[Camera Support]: "
|
||||||
labels: ["support", "triage"]
|
labels: ["support", "triage"]
|
||||||
body:
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Use this form for support or questions for an issue with your cameras.
|
||||||
|
|
||||||
|
Before submitting your support request, please [search the discussions][discussions], read the [official Frigate documentation][docs], and read the [Frigate FAQ][faq] pinned at the Discussion page to see if your question has already been answered by the community.
|
||||||
|
|
||||||
|
[discussions]: https://www.github.com/blakeblackshear/frigate/discussions
|
||||||
|
[docs]: https://docs.frigate.video
|
||||||
|
[faq]: https://github.com/blakeblackshear/frigate/discussions/12724
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: description
|
id: description
|
||||||
attributes:
|
attributes:
|
||||||
@@ -11,9 +21,15 @@ body:
|
|||||||
id: version
|
id: version
|
||||||
attributes:
|
attributes:
|
||||||
label: Version
|
label: Version
|
||||||
description: Visible on the System page in the Web UI
|
description: Visible on the System page in the Web UI. Please include the full version including the build identifier (eg. 0.14.0-ea36ds1)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: What browser(s) are you using?
|
||||||
|
placeholder: Google Chrome 88.0.4324.150
|
||||||
|
description: >
|
||||||
|
Provide the full name and don't forget to add the version!
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: config
|
id: config
|
||||||
attributes:
|
attributes:
|
||||||
@@ -23,10 +39,18 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: logs
|
id: frigatelogs
|
||||||
attributes:
|
attributes:
|
||||||
label: Relevant log output
|
label: Relevant Frigate log output
|
||||||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
description: Please copy and paste any relevant Frigate log output. Include logs before and after your exact error when possible. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: go2rtclogs
|
||||||
|
attributes:
|
||||||
|
label: Relevant go2rtc log output
|
||||||
|
description: Please copy and paste any relevant go2rtc log output. Include logs before and after your exact error when possible. Logs can be viewed via the Frigate UI, Docker, or the go2rtc dashboard. This will be automatically formatted into code, so no need for backticks.
|
||||||
render: shell
|
render: shell
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -34,7 +58,7 @@ body:
|
|||||||
id: ffprobe
|
id: ffprobe
|
||||||
attributes:
|
attributes:
|
||||||
label: FFprobe output from your camera
|
label: FFprobe output from your camera
|
||||||
description: Run `ffprobe <camera_url>` and provide output below
|
description: Run `ffprobe <camera_url>` from within the Frigate container if possible, and provide output below
|
||||||
render: shell
|
render: shell
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -66,17 +90,20 @@ body:
|
|||||||
- HassOS Addon
|
- HassOS Addon
|
||||||
- Docker Compose
|
- Docker Compose
|
||||||
- Docker CLI
|
- Docker CLI
|
||||||
|
- Proxmox via Docker
|
||||||
|
- Proxmox via TTeck Script
|
||||||
|
- Windows WSL2
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: coral
|
id: object-detector
|
||||||
attributes:
|
attributes:
|
||||||
label: Coral version
|
label: Object Detector
|
||||||
options:
|
options:
|
||||||
- USB
|
- Coral
|
||||||
- PCIe
|
- OpenVino
|
||||||
- M.2
|
- TensorRT
|
||||||
- Dev Board
|
- RKNN
|
||||||
- Other
|
- Other
|
||||||
- CPU (no coral)
|
- CPU (no coral)
|
||||||
validations:
|
validations:
|
||||||
@@ -98,6 +125,13 @@ body:
|
|||||||
description: Dahua, hikvision, amcrest, reolink, etc and model number
|
description: Dahua, hikvision, amcrest, reolink, etc and model number
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: screenshots
|
||||||
|
attributes:
|
||||||
|
label: Screenshots of the Frigate UI's System metrics pages
|
||||||
|
description: Drag and drop for images is possible in this field. Please post screenshots of at least General and Cameras tabs.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: other
|
id: other
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
54
.github/DISCUSSION_TEMPLATE/config-support.yml
vendored
54
.github/DISCUSSION_TEMPLATE/config-support.yml
vendored
@@ -1,6 +1,16 @@
|
|||||||
title: "[Config Support]: "
|
title: "[Config Support]: "
|
||||||
labels: ["support", "triage"]
|
labels: ["support", "triage"]
|
||||||
body:
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Use this form for support or questions related to Frigate's configuration and config file.
|
||||||
|
|
||||||
|
Before submitting your support request, please [search the discussions][discussions], read the [official Frigate documentation][docs], and read the [Frigate FAQ][faq] pinned at the Discussion page to see if your question has already been answered by the community.
|
||||||
|
|
||||||
|
[discussions]: https://www.github.com/blakeblackshear/frigate/discussions
|
||||||
|
[docs]: https://docs.frigate.video
|
||||||
|
[faq]: https://github.com/blakeblackshear/frigate/discussions/12724
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: description
|
id: description
|
||||||
attributes:
|
attributes:
|
||||||
@@ -11,7 +21,7 @@ body:
|
|||||||
id: version
|
id: version
|
||||||
attributes:
|
attributes:
|
||||||
label: Version
|
label: Version
|
||||||
description: Visible on the System page in the Web UI
|
description: Visible on the System page in the Web UI. Please include the full version including the build identifier (eg. 0.14.0-ea36ds1)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
@@ -23,10 +33,18 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: logs
|
id: frigatelogs
|
||||||
attributes:
|
attributes:
|
||||||
label: Relevant log output
|
label: Relevant Frigate log output
|
||||||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
description: Please copy and paste any relevant Frigate log output. Include logs before and after your exact error when possible. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: go2rtclogs
|
||||||
|
attributes:
|
||||||
|
label: Relevant go2rtc log output
|
||||||
|
description: Please copy and paste any relevant go2rtc log output. Include logs before and after your exact error when possible. This will be automatically formatted into code, so no need for backticks.
|
||||||
render: shell
|
render: shell
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -58,21 +76,37 @@ body:
|
|||||||
- HassOS Addon
|
- HassOS Addon
|
||||||
- Docker Compose
|
- Docker Compose
|
||||||
- Docker CLI
|
- Docker CLI
|
||||||
|
- Proxmox via Docker
|
||||||
|
- Proxmox via TTeck Script
|
||||||
|
- Windows WSL2
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: docker
|
||||||
|
attributes:
|
||||||
|
label: docker-compose file or Docker CLI command
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: coral
|
id: object-detector
|
||||||
attributes:
|
attributes:
|
||||||
label: Coral version
|
label: Object Detector
|
||||||
options:
|
options:
|
||||||
- USB
|
- Coral
|
||||||
- PCIe
|
- OpenVino
|
||||||
- M.2
|
- TensorRT
|
||||||
- Dev Board
|
- RKNN
|
||||||
- Other
|
- Other
|
||||||
- CPU (no coral)
|
- CPU (no coral)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: screenshots
|
||||||
|
attributes:
|
||||||
|
label: Screenshots of the Frigate UI's System metrics pages
|
||||||
|
description: Drag and drop or simple cut/paste is possible in this field
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: other
|
id: other
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
54
.github/DISCUSSION_TEMPLATE/detector-support.yml
vendored
54
.github/DISCUSSION_TEMPLATE/detector-support.yml
vendored
@@ -1,6 +1,16 @@
|
|||||||
title: "[Detector Support]: "
|
title: "[Detector Support]: "
|
||||||
labels: ["support", "triage"]
|
labels: ["support", "triage"]
|
||||||
body:
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Use this form for support or questions related to Frigate's object detectors.
|
||||||
|
|
||||||
|
Before submitting your support request, please [search the discussions][discussions], read the [official Frigate documentation][docs], and read the [Frigate FAQ][faq] pinned at the Discussion page to see if your question has already been answered by the community.
|
||||||
|
|
||||||
|
[discussions]: https://www.github.com/blakeblackshear/frigate/discussions
|
||||||
|
[docs]: https://docs.frigate.video
|
||||||
|
[faq]: https://github.com/blakeblackshear/frigate/discussions/12724
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: description
|
id: description
|
||||||
attributes:
|
attributes:
|
||||||
@@ -11,7 +21,7 @@ body:
|
|||||||
id: version
|
id: version
|
||||||
attributes:
|
attributes:
|
||||||
label: Version
|
label: Version
|
||||||
description: Visible on the System page in the Web UI
|
description: Visible on the System page in the Web UI. Please include the full version including the build identifier (eg. 0.14.0-ea36ds1)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
@@ -31,27 +41,13 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: logs
|
id: frigatelogs
|
||||||
attributes:
|
attributes:
|
||||||
label: Relevant log output
|
label: Relevant Frigate log output
|
||||||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
description: Please copy and paste any relevant Frigate log output. Include logs before and after your exact error when possible. This will be automatically formatted into code, so no need for backticks.
|
||||||
render: shell
|
render: shell
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
|
||||||
id: os
|
|
||||||
attributes:
|
|
||||||
label: Operating system
|
|
||||||
options:
|
|
||||||
- HassOS
|
|
||||||
- Debian
|
|
||||||
- Other Linux
|
|
||||||
- Proxmox
|
|
||||||
- UNRAID
|
|
||||||
- Windows
|
|
||||||
- Other
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: install-method
|
id: install-method
|
||||||
attributes:
|
attributes:
|
||||||
@@ -60,21 +56,31 @@ body:
|
|||||||
- HassOS Addon
|
- HassOS Addon
|
||||||
- Docker Compose
|
- Docker Compose
|
||||||
- Docker CLI
|
- Docker CLI
|
||||||
|
- Proxmox via Docker
|
||||||
|
- Proxmox via TTeck Script
|
||||||
|
- Windows WSL2
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: coral
|
id: object-detector
|
||||||
attributes:
|
attributes:
|
||||||
label: Coral version
|
label: Object Detector
|
||||||
options:
|
options:
|
||||||
- USB
|
- Coral
|
||||||
- PCIe
|
- OpenVino
|
||||||
- M.2
|
- TensorRT
|
||||||
- Dev Board
|
- RKNN
|
||||||
- Other
|
- Other
|
||||||
- CPU (no coral)
|
- CPU (no coral)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: screenshots
|
||||||
|
attributes:
|
||||||
|
label: Screenshots of the Frigate UI's System metrics pages
|
||||||
|
description: Drag and drop for images is possible in this field. Please post screenshots of at least General and Cameras tabs.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: other
|
id: other
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
76
.github/DISCUSSION_TEMPLATE/general-support.yml
vendored
76
.github/DISCUSSION_TEMPLATE/general-support.yml
vendored
@@ -1,6 +1,16 @@
|
|||||||
title: "[Support]: "
|
title: "[Support]: "
|
||||||
labels: ["support", "triage"]
|
labels: ["support", "triage"]
|
||||||
body:
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Use this form for support for issues that don't fall into any specific category.
|
||||||
|
|
||||||
|
Before submitting your support request, please [search the discussions][discussions], read the [official Frigate documentation][docs], and read the [Frigate FAQ][faq] pinned at the Discussion page to see if your question has already been answered by the community.
|
||||||
|
|
||||||
|
[discussions]: https://www.github.com/blakeblackshear/frigate/discussions
|
||||||
|
[docs]: https://docs.frigate.video
|
||||||
|
[faq]: https://github.com/blakeblackshear/frigate/discussions/12724
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: description
|
id: description
|
||||||
attributes:
|
attributes:
|
||||||
@@ -11,9 +21,15 @@ body:
|
|||||||
id: version
|
id: version
|
||||||
attributes:
|
attributes:
|
||||||
label: Version
|
label: Version
|
||||||
description: Visible on the System page in the Web UI
|
description: Visible on the System page in the Web UI. Please include the full version including the build identifier (eg. 0.14.0-ea36ds1)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: What browser(s) are you using?
|
||||||
|
placeholder: Google Chrome 88.0.4324.150
|
||||||
|
description: >
|
||||||
|
Provide the full name and don't forget to add the version!
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: config
|
id: config
|
||||||
attributes:
|
attributes:
|
||||||
@@ -23,10 +39,18 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: logs
|
id: frigatelogs
|
||||||
attributes:
|
attributes:
|
||||||
label: Relevant log output
|
label: Relevant Frigate log output
|
||||||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
description: Please copy and paste any relevant Frigate log output. Include logs before and after your exact error when possible. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: go2rtclogs
|
||||||
|
attributes:
|
||||||
|
label: Relevant go2rtc log output
|
||||||
|
description: Please copy and paste any relevant go2rtc log output. Include logs before and after your exact error when possible. Logs can be viewed via the Frigate UI, Docker, or the go2rtc dashboard. This will be automatically formatted into code, so no need for backticks.
|
||||||
render: shell
|
render: shell
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -34,7 +58,7 @@ body:
|
|||||||
id: ffprobe
|
id: ffprobe
|
||||||
attributes:
|
attributes:
|
||||||
label: FFprobe output from your camera
|
label: FFprobe output from your camera
|
||||||
description: Run `ffprobe <camera_url>` and provide output below
|
description: Run `ffprobe <camera_url>` from within the Frigate container if possible, and provide output below
|
||||||
render: shell
|
render: shell
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -44,20 +68,6 @@ body:
|
|||||||
label: Frigate stats
|
label: Frigate stats
|
||||||
description: Output from frigate's /api/stats endpoint
|
description: Output from frigate's /api/stats endpoint
|
||||||
render: json
|
render: json
|
||||||
- type: dropdown
|
|
||||||
id: os
|
|
||||||
attributes:
|
|
||||||
label: Operating system
|
|
||||||
options:
|
|
||||||
- HassOS
|
|
||||||
- Debian
|
|
||||||
- Other Linux
|
|
||||||
- Proxmox
|
|
||||||
- UNRAID
|
|
||||||
- Windows
|
|
||||||
- Other
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: install-method
|
id: install-method
|
||||||
attributes:
|
attributes:
|
||||||
@@ -66,17 +76,28 @@ body:
|
|||||||
- HassOS Addon
|
- HassOS Addon
|
||||||
- Docker Compose
|
- Docker Compose
|
||||||
- Docker CLI
|
- Docker CLI
|
||||||
|
- Proxmox via Docker
|
||||||
|
- Proxmox via TTeck Script
|
||||||
|
- Windows WSL2
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: docker
|
||||||
|
attributes:
|
||||||
|
label: docker-compose file or Docker CLI command
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: coral
|
id: object-detector
|
||||||
attributes:
|
attributes:
|
||||||
label: Coral version
|
label: Object Detector
|
||||||
options:
|
options:
|
||||||
- USB
|
- Coral
|
||||||
- PCIe
|
- OpenVino
|
||||||
- M.2
|
- TensorRT
|
||||||
- Dev Board
|
- RKNN
|
||||||
- Other
|
- Other
|
||||||
- CPU (no coral)
|
- CPU (no coral)
|
||||||
validations:
|
validations:
|
||||||
@@ -98,6 +119,11 @@ body:
|
|||||||
description: Dahua, hikvision, amcrest, reolink, etc and model number
|
description: Dahua, hikvision, amcrest, reolink, etc and model number
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: screenshots
|
||||||
|
attributes:
|
||||||
|
label: Screenshots of the Frigate UI's System metrics pages
|
||||||
|
description: Drag and drop for images is possible in this field
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: other
|
id: other
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
title: "[HW Accel Support]: "
|
title: "[HW Accel Support]: "
|
||||||
labels: ["support", "triage"]
|
labels: ["support", "triage"]
|
||||||
body:
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Use this form to submit a support request for hardware acceleration issues.
|
||||||
|
|
||||||
|
Before submitting your support request, please [search the discussions][discussions], read the [official Frigate documentation][docs], and read the [Frigate FAQ][faq] pinned at the Discussion page to see if your question has already been answered by the community.
|
||||||
|
|
||||||
|
[discussions]: https://www.github.com/blakeblackshear/frigate/discussions
|
||||||
|
[docs]: https://docs.frigate.video
|
||||||
|
[faq]: https://github.com/blakeblackshear/frigate/discussions/12724
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: description
|
id: description
|
||||||
attributes:
|
attributes:
|
||||||
@@ -11,7 +21,7 @@ body:
|
|||||||
id: version
|
id: version
|
||||||
attributes:
|
attributes:
|
||||||
label: Version
|
label: Version
|
||||||
description: Visible on the System page in the Web UI
|
description: Visible on the System page in the Web UI. Please include the full version including the build identifier (eg. 0.14.0-ea36ds1)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
@@ -31,10 +41,18 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: logs
|
id: frigatelogs
|
||||||
attributes:
|
attributes:
|
||||||
label: Relevant log output
|
label: Relevant Frigate log output
|
||||||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
description: Please copy and paste any relevant Frigate log output. Include logs before and after your exact error when possible. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: go2rtclogs
|
||||||
|
attributes:
|
||||||
|
label: Relevant go2rtc log output
|
||||||
|
description: Please copy and paste any relevant go2rtc log output. Include logs before and after your exact error when possible. Logs can be viewed via the Frigate UI, Docker, or the go2rtc dashboard. This will be automatically formatted into code, so no need for backticks.
|
||||||
render: shell
|
render: shell
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -42,24 +60,10 @@ body:
|
|||||||
id: ffprobe
|
id: ffprobe
|
||||||
attributes:
|
attributes:
|
||||||
label: FFprobe output from your camera
|
label: FFprobe output from your camera
|
||||||
description: Run `ffprobe <camera_url>` and provide output below
|
description: Run `ffprobe <camera_url>` from within the Frigate container if possible, and provide output below
|
||||||
render: shell
|
render: shell
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
|
||||||
id: os
|
|
||||||
attributes:
|
|
||||||
label: Operating system
|
|
||||||
options:
|
|
||||||
- HassOS
|
|
||||||
- Debian
|
|
||||||
- Other Linux
|
|
||||||
- Proxmox
|
|
||||||
- UNRAID
|
|
||||||
- Windows
|
|
||||||
- Other
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: install-method
|
id: install-method
|
||||||
attributes:
|
attributes:
|
||||||
@@ -68,6 +72,22 @@ body:
|
|||||||
- HassOS Addon
|
- HassOS Addon
|
||||||
- Docker Compose
|
- Docker Compose
|
||||||
- Docker CLI
|
- Docker CLI
|
||||||
|
- Proxmox via Docker
|
||||||
|
- Proxmox via TTeck Script
|
||||||
|
- Windows WSL2
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: object-detector
|
||||||
|
attributes:
|
||||||
|
label: Object Detector
|
||||||
|
options:
|
||||||
|
- Coral
|
||||||
|
- OpenVino
|
||||||
|
- TensorRT
|
||||||
|
- RKNN
|
||||||
|
- Other
|
||||||
|
- CPU (no coral)
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
@@ -87,6 +107,13 @@ body:
|
|||||||
description: Dahua, hikvision, amcrest, reolink, etc and model number
|
description: Dahua, hikvision, amcrest, reolink, etc and model number
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: screenshots
|
||||||
|
attributes:
|
||||||
|
label: Screenshots of the Frigate UI's System metrics pages
|
||||||
|
description: Drag and drop for images is possible in this field. Please post screenshots of at least General and Cameras tabs.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: other
|
id: other
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
14
.github/DISCUSSION_TEMPLATE/question.yml
vendored
14
.github/DISCUSSION_TEMPLATE/question.yml
vendored
@@ -1,9 +1,21 @@
|
|||||||
title: "[Question]: "
|
title: "[Question]: "
|
||||||
labels: ["question"]
|
labels: ["question"]
|
||||||
body:
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Use this form for questions you have about Frigate.
|
||||||
|
|
||||||
|
Before submitting your question, please [search the discussions][discussions], read the [official Frigate documentation][docs], and read the [Frigate FAQ][faq] pinned at the Discussion page to see if your question has already been answered by the community.
|
||||||
|
|
||||||
|
**If you are looking for support, start a new discussion and use a support category.**
|
||||||
|
|
||||||
|
[discussions]: https://www.github.com/blakeblackshear/frigate/discussions
|
||||||
|
[docs]: https://docs.frigate.video
|
||||||
|
[faq]: https://github.com/blakeblackshear/frigate/discussions/12724
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: description
|
id: description
|
||||||
attributes:
|
attributes:
|
||||||
label: "What is your question:"
|
label: "What is your question?"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
146
.github/DISCUSSION_TEMPLATE/report-a-bug.yml
vendored
Normal file
146
.github/DISCUSSION_TEMPLATE/report-a-bug.yml
vendored
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
title: "[Bug]: "
|
||||||
|
labels: ["bug", "triage"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Use this form to submit a reproducible bug in Frigate or Frigate's UI.
|
||||||
|
|
||||||
|
Before submitting your bug report, please [search the discussions][discussions], look at recent open and closed [pull requests][prs], read the [official Frigate documentation][docs], and read the [Frigate FAQ][faq] pinned at the Discussion page to see if your bug has already been fixed by the developers or reported by the community.
|
||||||
|
|
||||||
|
**If you are unsure if your issue is actually a bug or not, please submit a support request first.**
|
||||||
|
|
||||||
|
[discussions]: https://www.github.com/blakeblackshear/frigate/discussions
|
||||||
|
[prs]: https://www.github.com/blakeblackshear/frigate/pulls
|
||||||
|
[docs]: https://docs.frigate.video
|
||||||
|
[faq]: https://github.com/blakeblackshear/frigate/discussions/12724
|
||||||
|
- type: checkboxes
|
||||||
|
attributes:
|
||||||
|
label: Checklist
|
||||||
|
description: Please verify that you've followed these steps
|
||||||
|
options:
|
||||||
|
- label: I have updated to the latest available Frigate version.
|
||||||
|
required: true
|
||||||
|
- label: I have cleared the cache of my browser.
|
||||||
|
required: true
|
||||||
|
- label: I have tried a different browser to see if it is related to my browser.
|
||||||
|
required: true
|
||||||
|
- label: I have tried reproducing the issue in [incognito mode](https://www.computerworld.com/article/1719851/how-to-go-incognito-in-chrome-firefox-safari-and-edge.html) to rule out problems with any third party extensions or plugins I have installed.
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Describe the problem you are having
|
||||||
|
description: Provide a clear and concise description of what the bug is.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: steps
|
||||||
|
attributes:
|
||||||
|
label: Steps to reproduce
|
||||||
|
description: |
|
||||||
|
Please tell us exactly how to reproduce your issue.
|
||||||
|
Provide clear and concise step by step instructions and add code snippets if needed.
|
||||||
|
value: |
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
...
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: Version
|
||||||
|
description: Visible on the System page in the Web UI. Please include the full version including the build identifier (eg. 0.14.0-ea36ds1)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
attributes:
|
||||||
|
label: In which browser(s) are you experiencing the issue with?
|
||||||
|
placeholder: Google Chrome 88.0.4324.150
|
||||||
|
description: >
|
||||||
|
Provide the full name and don't forget to add the version!
|
||||||
|
- type: textarea
|
||||||
|
id: config
|
||||||
|
attributes:
|
||||||
|
label: Frigate config file
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: docker
|
||||||
|
attributes:
|
||||||
|
label: docker-compose file or Docker CLI command
|
||||||
|
description: This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: yaml
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: frigatelogs
|
||||||
|
attributes:
|
||||||
|
label: Relevant Frigate log output
|
||||||
|
description: Please copy and paste any relevant Frigate log output. Include logs before and after your exact error when possible. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: go2rtclogs
|
||||||
|
attributes:
|
||||||
|
label: Relevant go2rtc log output
|
||||||
|
description: Please copy and paste any relevant go2rtc log output. Include logs before and after your exact error when possible. Logs can be viewed via the Frigate UI, Docker, or the go2rtc dashboard. This will be automatically formatted into code, so no need for backticks.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: os
|
||||||
|
attributes:
|
||||||
|
label: Operating system
|
||||||
|
options:
|
||||||
|
- HassOS
|
||||||
|
- Debian
|
||||||
|
- Other Linux
|
||||||
|
- Proxmox
|
||||||
|
- UNRAID
|
||||||
|
- Windows
|
||||||
|
- Other
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: install-method
|
||||||
|
attributes:
|
||||||
|
label: Install method
|
||||||
|
options:
|
||||||
|
- HassOS Addon
|
||||||
|
- Docker Compose
|
||||||
|
- Docker CLI
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: network
|
||||||
|
attributes:
|
||||||
|
label: Network connection
|
||||||
|
options:
|
||||||
|
- Wired
|
||||||
|
- Wireless
|
||||||
|
- Mixed
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: camera
|
||||||
|
attributes:
|
||||||
|
label: Camera make and model
|
||||||
|
description: Dahua, hikvision, amcrest, reolink, etc and model number
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: screenshots
|
||||||
|
attributes:
|
||||||
|
label: Screenshots of the Frigate UI's System metrics pages
|
||||||
|
description: Drag and drop for images is possible in this field. Please post screenshots of all tabs.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: other
|
||||||
|
attributes:
|
||||||
|
label: Any other information that may be helpful
|
||||||
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1,3 +1,4 @@
|
|||||||
github:
|
github:
|
||||||
- blakeblackshear
|
- blakeblackshear
|
||||||
- NickM-27
|
- NickM-27
|
||||||
|
- hawkeye217
|
||||||
|
|||||||
5
.github/ISSUE_TEMPLATE/config.yml
vendored
5
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -2,4 +2,7 @@ blank_issues_enabled: false
|
|||||||
contact_links:
|
contact_links:
|
||||||
- name: Frigate Support
|
- name: Frigate Support
|
||||||
url: https://github.com/blakeblackshear/frigate/discussions/new/choose
|
url: https://github.com/blakeblackshear/frigate/discussions/new/choose
|
||||||
about: Get support for setting up or troubelshooting Frigate.
|
about: Get support for setting up or troubleshooting Frigate.
|
||||||
|
- name: Frigate Bug Report
|
||||||
|
url: https://github.com/blakeblackshear/frigate/discussions/new/choose
|
||||||
|
about: Report a specific UI or backend bug.
|
||||||
|
|||||||
2
.github/actions/setup/action.yml
vendored
2
.github/actions/setup/action.yml
vendored
@@ -5,7 +5,7 @@ inputs:
|
|||||||
required: true
|
required: true
|
||||||
outputs:
|
outputs:
|
||||||
image-name:
|
image-name:
|
||||||
value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ steps.create-short-sha.outputs.SHORT_SHA }}
|
value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ steps.create-short-sha.outputs.SHORT_SHA }}
|
||||||
cache-name:
|
cache-name:
|
||||||
value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:cache
|
value: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:cache
|
||||||
runs:
|
runs:
|
||||||
|
|||||||
32
.github/pull_request_template.md
vendored
Normal file
32
.github/pull_request_template.md
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
## Proposed change
|
||||||
|
<!--
|
||||||
|
Describe what this pull request does and how it will benefit users of Frigate.
|
||||||
|
Please describe in detail any considerations, breaking changes, etc. that are
|
||||||
|
made in this pull request.
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
## Type of change
|
||||||
|
|
||||||
|
- [ ] Dependency upgrade
|
||||||
|
- [ ] Bugfix (non-breaking change which fixes an issue)
|
||||||
|
- [ ] New feature
|
||||||
|
- [ ] Breaking change (fix/feature causing existing functionality to break)
|
||||||
|
- [ ] Code quality improvements to existing code
|
||||||
|
- [ ] Documentation Update
|
||||||
|
|
||||||
|
## Additional information
|
||||||
|
|
||||||
|
- This PR fixes or closes issue: fixes #
|
||||||
|
- This PR is related to issue:
|
||||||
|
|
||||||
|
## Checklist
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Put an `x` in the boxes that apply.
|
||||||
|
-->
|
||||||
|
|
||||||
|
- [ ] The code change is tested and works locally.
|
||||||
|
- [ ] Local tests pass. **Your PR cannot be merged unless tests pass**
|
||||||
|
- [ ] There is no commented out code in this PR.
|
||||||
|
- [ ] The code has been formatted using Ruff (`ruff format frigate`)
|
||||||
142
.github/workflows/ci.yml
vendored
142
.github/workflows/ci.yml
vendored
@@ -6,6 +6,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
- master
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- "docs/**"
|
||||||
|
|
||||||
# only run the latest commit to avoid cache overwrites
|
# only run the latest commit to avoid cache overwrites
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -22,6 +24,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Set up QEMU and Buildx
|
- name: Set up QEMU and Buildx
|
||||||
id: setup
|
id: setup
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
@@ -43,6 +47,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Set up QEMU and Buildx
|
- name: Set up QEMU and Buildx
|
||||||
id: setup
|
id: setup
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
@@ -69,21 +75,14 @@ jobs:
|
|||||||
rpi.tags=${{ steps.setup.outputs.image-name }}-rpi
|
rpi.tags=${{ steps.setup.outputs.image-name }}-rpi
|
||||||
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64
|
||||||
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64,mode=max
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64,mode=max
|
||||||
- name: Build and push Rockchip build
|
|
||||||
uses: docker/bake-action@v3
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
targets: rk
|
|
||||||
files: docker/rockchip/rk.hcl
|
|
||||||
set: |
|
|
||||||
rk.tags=${{ steps.setup.outputs.image-name }}-rk
|
|
||||||
*.cache-from=type=gha
|
|
||||||
jetson_jp4_build:
|
jetson_jp4_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Jetson Jetpack 4
|
name: Jetson Jetpack 4
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Set up QEMU and Buildx
|
- name: Set up QEMU and Buildx
|
||||||
id: setup
|
id: setup
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
@@ -110,6 +109,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Set up QEMU and Buildx
|
- name: Set up QEMU and Buildx
|
||||||
id: setup
|
id: setup
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
@@ -138,6 +139,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Set up QEMU and Buildx
|
- name: Set up QEMU and Buildx
|
||||||
id: setup
|
id: setup
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
@@ -155,57 +158,68 @@ jobs:
|
|||||||
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt
|
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt
|
||||||
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64
|
||||||
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64,mode=max
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64,mode=max
|
||||||
#- name: AMD/ROCm general build
|
arm64_extra_builds:
|
||||||
# env:
|
runs-on: ubuntu-latest
|
||||||
# AMDGPU: gfx
|
name: ARM Extra Build
|
||||||
# HSA_OVERRIDE: 0
|
needs:
|
||||||
# uses: docker/bake-action@v3
|
- arm64_build
|
||||||
# with:
|
steps:
|
||||||
# push: true
|
- name: Check out code
|
||||||
# targets: rocm
|
uses: actions/checkout@v4
|
||||||
# files: docker/rocm/rocm.hcl
|
with:
|
||||||
# set: |
|
persist-credentials: false
|
||||||
# rocm.tags=${{ steps.setup.outputs.image-name }}-rocm
|
- name: Set up QEMU and Buildx
|
||||||
# *.cache-from=type=gha
|
id: setup
|
||||||
#- name: AMD/ROCm gfx900
|
uses: ./.github/actions/setup
|
||||||
# env:
|
with:
|
||||||
# AMDGPU: gfx900
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# HSA_OVERRIDE: 1
|
- name: Build and push Rockchip build
|
||||||
# HSA_OVERRIDE_GFX_VERSION: 9.0.0
|
uses: docker/bake-action@v3
|
||||||
# uses: docker/bake-action@v3
|
with:
|
||||||
# with:
|
push: true
|
||||||
# push: true
|
targets: rk
|
||||||
# targets: rocm
|
files: docker/rockchip/rk.hcl
|
||||||
# files: docker/rocm/rocm.hcl
|
set: |
|
||||||
# set: |
|
rk.tags=${{ steps.setup.outputs.image-name }}-rk
|
||||||
# rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx900
|
*.cache-from=type=gha
|
||||||
# *.cache-from=type=gha
|
combined_extra_builds:
|
||||||
#- name: AMD/ROCm gfx1030
|
runs-on: ubuntu-latest
|
||||||
# env:
|
name: Combined Extra Builds
|
||||||
# AMDGPU: gfx1030
|
needs:
|
||||||
# HSA_OVERRIDE: 1
|
- amd64_build
|
||||||
# HSA_OVERRIDE_GFX_VERSION: 10.3.0
|
- arm64_build
|
||||||
# uses: docker/bake-action@v3
|
steps:
|
||||||
# with:
|
- name: Check out code
|
||||||
# push: true
|
uses: actions/checkout@v4
|
||||||
# targets: rocm
|
with:
|
||||||
# files: docker/rocm/rocm.hcl
|
persist-credentials: false
|
||||||
# set: |
|
- name: Set up QEMU and Buildx
|
||||||
# rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx1030
|
id: setup
|
||||||
# *.cache-from=type=gha
|
uses: ./.github/actions/setup
|
||||||
#- name: AMD/ROCm gfx1100
|
with:
|
||||||
# env:
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# AMDGPU: gfx1100
|
- name: Build and push Hailo-8l build
|
||||||
# HSA_OVERRIDE: 1
|
uses: docker/bake-action@v4
|
||||||
# HSA_OVERRIDE_GFX_VERSION: 11.0.0
|
with:
|
||||||
# uses: docker/bake-action@v3
|
push: true
|
||||||
# with:
|
targets: h8l
|
||||||
# push: true
|
files: docker/hailo8l/h8l.hcl
|
||||||
# targets: rocm
|
set: |
|
||||||
# files: docker/rocm/rocm.hcl
|
h8l.tags=${{ steps.setup.outputs.image-name }}-h8l
|
||||||
# set: |
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-h8l
|
||||||
# rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx1100
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-h8l,mode=max
|
||||||
# *.cache-from=type=gha
|
- name: AMD/ROCm general build
|
||||||
|
env:
|
||||||
|
AMDGPU: gfx
|
||||||
|
HSA_OVERRIDE: 0
|
||||||
|
uses: docker/bake-action@v3
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
targets: rocm
|
||||||
|
files: docker/rocm/rocm.hcl
|
||||||
|
set: |
|
||||||
|
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm
|
||||||
|
*.cache-from=type=gha
|
||||||
# The majority of users running arm64 are rpi users, so the rpi
|
# The majority of users running arm64 are rpi users, so the rpi
|
||||||
# build should be the primary arm64 image
|
# build should be the primary arm64 image
|
||||||
assemble_default_build:
|
assemble_default_build:
|
||||||
@@ -220,7 +234,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
string: ${{ github.repository }}
|
string: ${{ github.repository }}
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -229,7 +243,7 @@ jobs:
|
|||||||
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
||||||
- uses: int128/docker-manifest-create-action@v2
|
- uses: int128/docker-manifest-create-action@v2
|
||||||
with:
|
with:
|
||||||
tags: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}
|
tags: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ env.SHORT_SHA }}
|
||||||
sources: |
|
sources: |
|
||||||
ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-amd64
|
ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ env.SHORT_SHA }}-amd64
|
||||||
ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-rpi
|
ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ env.SHORT_SHA }}-rpi
|
||||||
|
|||||||
24
.github/workflows/dependabot-auto-merge.yaml
vendored
24
.github/workflows/dependabot-auto-merge.yaml
vendored
@@ -1,24 +0,0 @@
|
|||||||
name: dependabot-auto-merge
|
|
||||||
on: pull_request
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
dependabot-auto-merge:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.actor == 'dependabot[bot]'
|
|
||||||
steps:
|
|
||||||
- name: Get Dependabot metadata
|
|
||||||
id: metadata
|
|
||||||
uses: dependabot/fetch-metadata@v2
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Enable auto-merge for Dependabot PRs
|
|
||||||
if: steps.metadata.outputs.dependency-type == 'direct:development' && (steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch')
|
|
||||||
run: |
|
|
||||||
gh pr review --approve "$PR_URL"
|
|
||||||
gh pr merge --auto --squash "$PR_URL"
|
|
||||||
env:
|
|
||||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
17
.github/workflows/pull_request.yml
vendored
17
.github/workflows/pull_request.yml
vendored
@@ -1,6 +1,9 @@
|
|||||||
name: On pull request
|
name: On pull request
|
||||||
|
|
||||||
on: pull_request
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- "docs/**"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DEFAULT_PYTHON: 3.9
|
DEFAULT_PYTHON: 3.9
|
||||||
@@ -16,6 +19,8 @@ jobs:
|
|||||||
DOCKER_BUILDKIT: "1"
|
DOCKER_BUILDKIT: "1"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- uses: actions/setup-node@master
|
- uses: actions/setup-node@master
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
@@ -35,6 +40,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- uses: actions/setup-node@master
|
- uses: actions/setup-node@master
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
@@ -49,6 +56,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- uses: actions/setup-node@master
|
- uses: actions/setup-node@master
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
@@ -64,8 +73,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
|
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
|
||||||
uses: actions/setup-python@v5.1.0
|
uses: actions/setup-python@v5.3.0
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env.DEFAULT_PYTHON }}
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
@@ -85,6 +96,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- uses: actions/setup-node@master
|
- uses: actions/setup-node@master
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|||||||
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@@ -11,27 +11,42 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- id: lowercaseRepo
|
- id: lowercaseRepo
|
||||||
uses: ASzc/change-string-case-action@v6
|
uses: ASzc/change-string-case-action@v6
|
||||||
with:
|
with:
|
||||||
string: ${{ github.repository }}
|
string: ${{ github.repository }}
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Create tag variables
|
- name: Create tag variables
|
||||||
|
env:
|
||||||
|
TAG: ${{ github.ref_name }}
|
||||||
|
LOWERCASE_REPO: ${{ steps.lowercaseRepo.outputs.lowercase }}
|
||||||
run: |
|
run: |
|
||||||
BRANCH=$([[ "${{ github.ref_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "master" || echo "dev")
|
BUILD_TYPE=$([[ "${TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "stable" || echo "beta")
|
||||||
echo "BASE=ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}" >> $GITHUB_ENV
|
echo "BUILD_TYPE=${BUILD_TYPE}" >> $GITHUB_ENV
|
||||||
echo "BUILD_TAG=${BRANCH}-${GITHUB_SHA::7}" >> $GITHUB_ENV
|
echo "BASE=ghcr.io/${LOWERCASE_REPO}" >> $GITHUB_ENV
|
||||||
|
echo "BUILD_TAG=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
||||||
echo "CLEAN_VERSION=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/^[v]//')" >> $GITHUB_ENV
|
echo "CLEAN_VERSION=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/^[v]//')" >> $GITHUB_ENV
|
||||||
- name: Tag and push the main image
|
- name: Tag and push the main image
|
||||||
run: |
|
run: |
|
||||||
VERSION_TAG=${BASE}:${CLEAN_VERSION}
|
VERSION_TAG=${BASE}:${CLEAN_VERSION}
|
||||||
|
STABLE_TAG=${BASE}:stable
|
||||||
PULL_TAG=${BASE}:${BUILD_TAG}
|
PULL_TAG=${BASE}:${BUILD_TAG}
|
||||||
docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG} docker://${VERSION_TAG}
|
docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG} docker://${VERSION_TAG}
|
||||||
for variant in standard-arm64 tensorrt tensorrt-jp4 tensorrt-jp5 rk; do
|
for variant in standard-arm64 tensorrt tensorrt-jp4 tensorrt-jp5 rk h8l rocm; do
|
||||||
docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG}-${variant} docker://${VERSION_TAG}-${variant}
|
docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG}-${variant} docker://${VERSION_TAG}-${variant}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# stable tag
|
||||||
|
if [[ "${BUILD_TYPE}" == "stable" ]]; then
|
||||||
|
docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG} docker://${STABLE_TAG}
|
||||||
|
for variant in standard-arm64 tensorrt tensorrt-jp4 tensorrt-jp5 rk h8l rocm; do
|
||||||
|
docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG}-${variant} docker://${STABLE_TAG}-${variant}
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|||||||
31
.github/workflows/stale.yml
vendored
31
.github/workflows/stale.yml
vendored
@@ -23,19 +23,20 @@ jobs:
|
|||||||
exempt-pr-labels: "pinned,security,dependencies"
|
exempt-pr-labels: "pinned,security,dependencies"
|
||||||
operations-per-run: 120
|
operations-per-run: 120
|
||||||
- name: Print outputs
|
- name: Print outputs
|
||||||
run: echo ${{ join(steps.stale.outputs.*, ',') }}
|
env:
|
||||||
|
STALE_OUTPUT: ${{ join(steps.stale.outputs.*, ',') }}
|
||||||
clean_ghcr:
|
run: echo "$STALE_OUTPUT"
|
||||||
name: Delete outdated dev container images
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Delete old images
|
|
||||||
uses: snok/container-retention-policy@v2
|
|
||||||
with:
|
|
||||||
image-names: dev-*
|
|
||||||
cut-off: 60 days ago UTC
|
|
||||||
keep-at-least: 5
|
|
||||||
account-type: personal
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
token-type: github-token
|
|
||||||
|
|
||||||
|
# clean_ghcr:
|
||||||
|
# name: Delete outdated dev container images
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# steps:
|
||||||
|
# - name: Delete old images
|
||||||
|
# uses: snok/container-retention-policy@v2
|
||||||
|
# with:
|
||||||
|
# image-names: dev-*
|
||||||
|
# cut-off: 60 days ago UTC
|
||||||
|
# keep-at-least: 5
|
||||||
|
# account-type: personal
|
||||||
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# token-type: github-token
|
||||||
|
|||||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
*.pyc
|
__pycache__
|
||||||
|
.mypy_cache
|
||||||
*.swp
|
*.swp
|
||||||
debug
|
debug
|
||||||
.vscode/*
|
.vscode/*
|
||||||
@@ -16,4 +17,5 @@ web/node_modules
|
|||||||
web/coverage
|
web/coverage
|
||||||
core
|
core
|
||||||
!/web/**/*.ts
|
!/web/**/*.ts
|
||||||
.idea/*
|
.idea/*
|
||||||
|
.ipynb_checkpoints
|
||||||
5
.vscode/launch.json
vendored
5
.vscode/launch.json
vendored
@@ -3,10 +3,9 @@
|
|||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Python: Launch Frigate",
|
"name": "Python: Launch Frigate",
|
||||||
"type": "python",
|
"type": "debugpy",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"module": "frigate",
|
"module": "frigate"
|
||||||
"justMyCode": true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,3 +4,4 @@
|
|||||||
/docker/tensorrt/*jetson* @madsciencetist
|
/docker/tensorrt/*jetson* @madsciencetist
|
||||||
/docker/rockchip/ @MarcA711
|
/docker/rockchip/ @MarcA711
|
||||||
/docker/rocm/ @harakas
|
/docker/rocm/ @harakas
|
||||||
|
/docker/hailo8l/ @spanner3003
|
||||||
|
|||||||
31
Makefile
31
Makefile
@@ -1,11 +1,9 @@
|
|||||||
default_target: local
|
default_target: local
|
||||||
|
|
||||||
COMMIT_HASH := $(shell git log -1 --pretty=format:"%h"|tail -1)
|
COMMIT_HASH := $(shell git log -1 --pretty=format:"%h"|tail -1)
|
||||||
VERSION = 0.14.0
|
VERSION = 0.15.0
|
||||||
IMAGE_REPO ?= ghcr.io/blakeblackshear/frigate
|
IMAGE_REPO ?= ghcr.io/blakeblackshear/frigate
|
||||||
GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
|
GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
CURRENT_UID := $(shell id -u)
|
|
||||||
CURRENT_GID := $(shell id -g)
|
|
||||||
BOARDS= #Initialized empty
|
BOARDS= #Initialized empty
|
||||||
|
|
||||||
include docker/*/*.mk
|
include docker/*/*.mk
|
||||||
@@ -18,25 +16,38 @@ version:
|
|||||||
echo 'VERSION = "$(VERSION)-$(COMMIT_HASH)"' > frigate/version.py
|
echo 'VERSION = "$(VERSION)-$(COMMIT_HASH)"' > frigate/version.py
|
||||||
|
|
||||||
local: version
|
local: version
|
||||||
docker buildx build --target=frigate --tag frigate:latest --load --file docker/main/Dockerfile .
|
docker buildx build --target=frigate --file docker/main/Dockerfile . \
|
||||||
|
--tag frigate:latest \
|
||||||
|
--load
|
||||||
|
|
||||||
amd64:
|
amd64:
|
||||||
docker buildx build --platform linux/amd64 --target=frigate --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) --file docker/main/Dockerfile .
|
docker buildx build --target=frigate --file docker/main/Dockerfile . \
|
||||||
|
--tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) \
|
||||||
|
--platform linux/amd64
|
||||||
|
|
||||||
arm64:
|
arm64:
|
||||||
docker buildx build --platform linux/arm64 --target=frigate --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) --file docker/main/Dockerfile .
|
docker buildx build --target=frigate --file docker/main/Dockerfile . \
|
||||||
|
--tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) \
|
||||||
|
--platform linux/arm64
|
||||||
|
|
||||||
build: version amd64 arm64
|
build: version amd64 arm64
|
||||||
docker buildx build --platform linux/arm64/v8,linux/amd64 --target=frigate --tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) --file docker/main/Dockerfile .
|
docker buildx build --target=frigate --file docker/main/Dockerfile . \
|
||||||
|
--tag $(IMAGE_REPO):$(VERSION)-$(COMMIT_HASH) \
|
||||||
|
--platform linux/arm64/v8,linux/amd64
|
||||||
|
|
||||||
push: push-boards
|
push: push-boards
|
||||||
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --target=frigate --tag $(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH) --file docker/main/Dockerfile .
|
docker buildx build --target=frigate --file docker/main/Dockerfile . \
|
||||||
|
--tag $(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH) \
|
||||||
|
--platform linux/arm64/v8,linux/amd64 \
|
||||||
|
--push
|
||||||
|
|
||||||
run: local
|
run: local
|
||||||
docker run --rm --publish=5000:5000 --volume=${PWD}/config:/config frigate:latest
|
docker run --rm --publish=5000:5000 --volume=${PWD}/config:/config frigate:latest
|
||||||
|
|
||||||
run_tests: local
|
run_tests: local
|
||||||
docker run --rm --workdir=/opt/frigate --entrypoint= frigate:latest python3 -u -m unittest
|
docker run --rm --workdir=/opt/frigate --entrypoint= frigate:latest \
|
||||||
docker run --rm --workdir=/opt/frigate --entrypoint= frigate:latest python3 -u -m mypy --config-file frigate/mypy.ini frigate
|
python3 -u -m unittest
|
||||||
|
docker run --rm --workdir=/opt/frigate --entrypoint= frigate:latest \
|
||||||
|
python3 -u -m mypy --config-file frigate/mypy.ini frigate
|
||||||
|
|
||||||
.PHONY: run_tests
|
.PHONY: run_tests
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -29,18 +29,22 @@ If you would like to make a donation to support development, please use [Github
|
|||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
Integration into Home Assistant
|
### Live dashboard
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a href="docs/static/img/media_browser.png"><img src="docs/static/img/media_browser.png" height=400></a>
|
<img width="800" alt="Live dashboard" src="https://github.com/blakeblackshear/frigate/assets/569905/5e713cb9-9db5-41dc-947a-6937c3bc376e">
|
||||||
<a href="docs/static/img/notification.png"><img src="docs/static/img/notification.png" height=400></a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
Also comes with a builtin UI:
|
### Streamlined review workflow
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a href="docs/static/img/home-ui.png"><img src="docs/static/img/home-ui.png" height=400></a>
|
<img width="800" alt="Streamlined review workflow" src="https://github.com/blakeblackshear/frigate/assets/569905/6fed96e8-3b18-40e5-9ddc-31e6f3c9f2ff">
|
||||||
<a href="docs/static/img/camera-ui.png"><img src="docs/static/img/camera-ui.png" height=400></a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||

|
### Multi-camera scrubbing
|
||||||
|
<div>
|
||||||
|
<img width="800" alt="Multi-camera scrubbing" src="https://github.com/blakeblackshear/frigate/assets/569905/d6788a15-0eeb-4427-a8d4-80b93cae3d74">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
### Built-in mask and zone editor
|
||||||
|
<div>
|
||||||
|
<img width="800" alt="Multi-camera scrubbing" src="https://github.com/blakeblackshear/frigate/assets/569905/d7885fc3-bfe6-452f-b7d0-d957cb3e31f5">
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ from statistics import mean
|
|||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
import frigate.util as util
|
||||||
from frigate.config import DetectorTypeEnum
|
from frigate.config import DetectorTypeEnum
|
||||||
from frigate.object_detection import (
|
from frigate.object_detection import (
|
||||||
ObjectDetectProcess,
|
ObjectDetectProcess,
|
||||||
@@ -60,7 +61,7 @@ def start(id, num_detections, detection_queue, event):
|
|||||||
object_detector.cleanup()
|
object_detector.cleanup()
|
||||||
print(f"{id} - Processed for {duration:.2f} seconds.")
|
print(f"{id} - Processed for {duration:.2f} seconds.")
|
||||||
print(f"{id} - FPS: {object_detector.fps.eps():.2f}")
|
print(f"{id} - FPS: {object_detector.fps.eps():.2f}")
|
||||||
print(f"{id} - Average frame processing time: {mean(frame_times)*1000:.2f}ms")
|
print(f"{id} - Average frame processing time: {mean(frame_times) * 1000:.2f}ms")
|
||||||
|
|
||||||
|
|
||||||
######
|
######
|
||||||
@@ -90,7 +91,7 @@ edgetpu_process_2 = ObjectDetectProcess(
|
|||||||
)
|
)
|
||||||
|
|
||||||
for x in range(0, 10):
|
for x in range(0, 10):
|
||||||
camera_process = mp.Process(
|
camera_process = util.Process(
|
||||||
target=start, args=(x, 300, detection_queue, events[str(x)])
|
target=start, args=(x, 300, detection_queue, events[str(x)])
|
||||||
)
|
)
|
||||||
camera_process.daemon = True
|
camera_process.daemon = True
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
"*.db",
|
"*.db",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"__pycache__",
|
"__pycache__",
|
||||||
"dist"
|
"dist",
|
||||||
|
"/audio-labelmap.txt"
|
||||||
],
|
],
|
||||||
"language": "en",
|
"language": "en",
|
||||||
"dictionaryDefinitions": [
|
"dictionaryDefinitions": [
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ services:
|
|||||||
# count: 1
|
# count: 1
|
||||||
# capabilities: [gpu]
|
# capabilities: [gpu]
|
||||||
environment:
|
environment:
|
||||||
YOLO_MODELS: yolov7-320
|
YOLO_MODELS: ""
|
||||||
devices:
|
devices:
|
||||||
- /dev/bus/usb:/dev/bus/usb
|
- /dev/bus/usb:/dev/bus/usb
|
||||||
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
||||||
|
|||||||
40
docker/hailo8l/Dockerfile
Normal file
40
docker/hailo8l/Dockerfile
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# syntax=docker/dockerfile:1.6
|
||||||
|
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
# Build Python wheels
|
||||||
|
FROM wheels AS h8l-wheels
|
||||||
|
|
||||||
|
COPY docker/main/requirements-wheels.txt /requirements-wheels.txt
|
||||||
|
COPY docker/hailo8l/requirements-wheels-h8l.txt /requirements-wheels-h8l.txt
|
||||||
|
|
||||||
|
RUN sed -i "/https:\/\//d" /requirements-wheels.txt
|
||||||
|
|
||||||
|
# Create a directory to store the built wheels
|
||||||
|
RUN mkdir /h8l-wheels
|
||||||
|
|
||||||
|
# Build the wheels
|
||||||
|
RUN pip3 wheel --wheel-dir=/h8l-wheels -c /requirements-wheels.txt -r /requirements-wheels-h8l.txt
|
||||||
|
|
||||||
|
FROM wget AS hailort
|
||||||
|
ARG TARGETARCH
|
||||||
|
RUN --mount=type=bind,source=docker/hailo8l/install_hailort.sh,target=/deps/install_hailort.sh \
|
||||||
|
/deps/install_hailort.sh
|
||||||
|
|
||||||
|
# Use deps as the base image
|
||||||
|
FROM deps AS h8l-frigate
|
||||||
|
|
||||||
|
# Copy the wheels from the wheels stage
|
||||||
|
COPY --from=h8l-wheels /h8l-wheels /deps/h8l-wheels
|
||||||
|
COPY --from=hailort /hailo-wheels /deps/hailo-wheels
|
||||||
|
COPY --from=hailort /rootfs/ /
|
||||||
|
|
||||||
|
# Install the wheels
|
||||||
|
RUN pip3 install -U /deps/h8l-wheels/*.whl
|
||||||
|
RUN pip3 install -U /deps/hailo-wheels/*.whl
|
||||||
|
|
||||||
|
# Copy base files from the rootfs stage
|
||||||
|
COPY --from=rootfs / /
|
||||||
|
|
||||||
|
# Set workdir
|
||||||
|
WORKDIR /opt/frigate/
|
||||||
34
docker/hailo8l/h8l.hcl
Normal file
34
docker/hailo8l/h8l.hcl
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
target wget {
|
||||||
|
dockerfile = "docker/main/Dockerfile"
|
||||||
|
platforms = ["linux/arm64","linux/amd64"]
|
||||||
|
target = "wget"
|
||||||
|
}
|
||||||
|
|
||||||
|
target wheels {
|
||||||
|
dockerfile = "docker/main/Dockerfile"
|
||||||
|
platforms = ["linux/arm64","linux/amd64"]
|
||||||
|
target = "wheels"
|
||||||
|
}
|
||||||
|
|
||||||
|
target deps {
|
||||||
|
dockerfile = "docker/main/Dockerfile"
|
||||||
|
platforms = ["linux/arm64","linux/amd64"]
|
||||||
|
target = "deps"
|
||||||
|
}
|
||||||
|
|
||||||
|
target rootfs {
|
||||||
|
dockerfile = "docker/main/Dockerfile"
|
||||||
|
platforms = ["linux/arm64","linux/amd64"]
|
||||||
|
target = "rootfs"
|
||||||
|
}
|
||||||
|
|
||||||
|
target h8l {
|
||||||
|
dockerfile = "docker/hailo8l/Dockerfile"
|
||||||
|
contexts = {
|
||||||
|
wget = "target:wget"
|
||||||
|
wheels = "target:wheels"
|
||||||
|
deps = "target:deps"
|
||||||
|
rootfs = "target:rootfs"
|
||||||
|
}
|
||||||
|
platforms = ["linux/arm64","linux/amd64"]
|
||||||
|
}
|
||||||
15
docker/hailo8l/h8l.mk
Normal file
15
docker/hailo8l/h8l.mk
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
BOARDS += h8l
|
||||||
|
|
||||||
|
local-h8l: version
|
||||||
|
docker buildx bake --file=docker/hailo8l/h8l.hcl h8l \
|
||||||
|
--set h8l.tags=frigate:latest-h8l \
|
||||||
|
--load
|
||||||
|
|
||||||
|
build-h8l: version
|
||||||
|
docker buildx bake --file=docker/hailo8l/h8l.hcl h8l \
|
||||||
|
--set h8l.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-h8l
|
||||||
|
|
||||||
|
push-h8l: build-h8l
|
||||||
|
docker buildx bake --file=docker/hailo8l/h8l.hcl h8l \
|
||||||
|
--set h8l.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-h8l \
|
||||||
|
--push
|
||||||
19
docker/hailo8l/install_hailort.sh
Executable file
19
docker/hailo8l/install_hailort.sh
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
hailo_version="4.19.0"
|
||||||
|
|
||||||
|
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
||||||
|
arch="x86_64"
|
||||||
|
elif [[ "${TARGETARCH}" == "arm64" ]]; then
|
||||||
|
arch="aarch64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
wget -qO- "https://github.com/frigate-nvr/hailort/releases/download/v${hailo_version}/hailort-${TARGETARCH}.tar.gz" |
|
||||||
|
tar -C / -xzf -
|
||||||
|
|
||||||
|
mkdir -p /hailo-wheels
|
||||||
|
|
||||||
|
wget -P /hailo-wheels/ "https://github.com/frigate-nvr/hailort/releases/download/v${hailo_version}/hailort-${hailo_version}-cp39-cp39-linux_${arch}.whl"
|
||||||
|
|
||||||
12
docker/hailo8l/requirements-wheels-h8l.txt
Normal file
12
docker/hailo8l/requirements-wheels-h8l.txt
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
appdirs==1.4.*
|
||||||
|
argcomplete==2.0.*
|
||||||
|
contextlib2==0.6.*
|
||||||
|
distlib==0.3.*
|
||||||
|
filelock==3.8.*
|
||||||
|
future==0.18.*
|
||||||
|
importlib-metadata==5.1.*
|
||||||
|
importlib-resources==5.1.*
|
||||||
|
netaddr==0.8.*
|
||||||
|
netifaces==0.10.*
|
||||||
|
verboselogs==1.7.*
|
||||||
|
virtualenv==20.17.*
|
||||||
48
docker/hailo8l/user_installation.sh
Normal file
48
docker/hailo8l/user_installation.sh
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Update package list and install dependencies
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y build-essential cmake git wget
|
||||||
|
|
||||||
|
arch=$(uname -m)
|
||||||
|
|
||||||
|
if [[ $arch == "x86_64" ]]; then
|
||||||
|
sudo apt install -y linux-headers-$(uname -r);
|
||||||
|
else
|
||||||
|
sudo apt install -y linux-modules-extra-$(uname -r);
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone the HailoRT driver repository
|
||||||
|
git clone --depth 1 --branch v4.19.0 https://github.com/hailo-ai/hailort-drivers.git
|
||||||
|
|
||||||
|
# Build and install the HailoRT driver
|
||||||
|
cd hailort-drivers/linux/pcie
|
||||||
|
sudo make all
|
||||||
|
sudo make install
|
||||||
|
|
||||||
|
# Load the Hailo PCI driver
|
||||||
|
sudo modprobe hailo_pci
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Unable to load hailo_pci module, common reasons for this are:"
|
||||||
|
echo "- Key was rejected by service: Secure Boot is enabling disallowing install."
|
||||||
|
echo "- Permissions are not setup correctly."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Download and install the firmware
|
||||||
|
cd ../../
|
||||||
|
./download_firmware.sh
|
||||||
|
|
||||||
|
# verify the firmware folder is present
|
||||||
|
if [ ! -d /lib/firmware/hailo ]; then
|
||||||
|
sudo mkdir /lib/firmware/hailo
|
||||||
|
fi
|
||||||
|
sudo mv hailo8_fw.*.bin /lib/firmware/hailo/hailo8_fw.bin
|
||||||
|
|
||||||
|
# Install udev rules
|
||||||
|
sudo cp ./linux/pcie/51-hailo-udev.rules /etc/udev/rules.d/
|
||||||
|
sudo udevadm control --reload-rules && sudo udevadm trigger
|
||||||
|
|
||||||
|
echo "HailoRT driver installation complete."
|
||||||
|
echo "reboot your system to load the firmware!"
|
||||||
@@ -30,18 +30,31 @@ RUN --mount=type=tmpfs,target=/tmp --mount=type=tmpfs,target=/var/cache/apt \
|
|||||||
--mount=type=cache,target=/root/.ccache \
|
--mount=type=cache,target=/root/.ccache \
|
||||||
/deps/build_nginx.sh
|
/deps/build_nginx.sh
|
||||||
|
|
||||||
|
FROM wget AS sqlite-vec
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
|
||||||
|
# Build sqlite_vec from source
|
||||||
|
COPY docker/main/build_sqlite_vec.sh /deps/build_sqlite_vec.sh
|
||||||
|
RUN --mount=type=tmpfs,target=/tmp --mount=type=tmpfs,target=/var/cache/apt \
|
||||||
|
--mount=type=bind,source=docker/main/build_sqlite_vec.sh,target=/deps/build_sqlite_vec.sh \
|
||||||
|
--mount=type=cache,target=/root/.ccache \
|
||||||
|
/deps/build_sqlite_vec.sh
|
||||||
|
|
||||||
FROM scratch AS go2rtc
|
FROM scratch AS go2rtc
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
WORKDIR /rootfs/usr/local/go2rtc/bin
|
WORKDIR /rootfs/usr/local/go2rtc/bin
|
||||||
ADD --link --chmod=755 "https://github.com/AlexxIT/go2rtc/releases/download/v1.9.2/go2rtc_linux_${TARGETARCH}" go2rtc
|
ADD --link --chmod=755 "https://github.com/AlexxIT/go2rtc/releases/download/v1.9.2/go2rtc_linux_${TARGETARCH}" go2rtc
|
||||||
|
|
||||||
|
FROM wget AS tempio
|
||||||
|
ARG TARGETARCH
|
||||||
|
RUN --mount=type=bind,source=docker/main/install_tempio.sh,target=/deps/install_tempio.sh \
|
||||||
|
/deps/install_tempio.sh
|
||||||
|
|
||||||
####
|
####
|
||||||
#
|
#
|
||||||
# OpenVino Support
|
# OpenVino Support
|
||||||
#
|
#
|
||||||
# 1. Download and convert a model from Intel's Public Open Model Zoo
|
# 1. Download and convert a model from Intel's Public Open Model Zoo
|
||||||
# 2. Build libUSB without udev to handle NCS2 enumeration
|
|
||||||
#
|
#
|
||||||
####
|
####
|
||||||
# Download and Convert OpenVino model
|
# Download and Convert OpenVino model
|
||||||
@@ -57,11 +70,18 @@ RUN apt-get -qq update \
|
|||||||
&& pip install -r /requirements-ov.txt
|
&& pip install -r /requirements-ov.txt
|
||||||
|
|
||||||
# Get OpenVino Model
|
# Get OpenVino Model
|
||||||
RUN mkdir /models \
|
RUN --mount=type=bind,source=docker/main/build_ov_model.py,target=/build_ov_model.py \
|
||||||
&& cd /models && omz_downloader --name ssdlite_mobilenet_v2 \
|
mkdir /models && cd /models \
|
||||||
&& cd /models && omz_converter --name ssdlite_mobilenet_v2 --precision FP16
|
&& wget http://download.tensorflow.org/models/object_detection/ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz \
|
||||||
|
&& tar -xvf ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz \
|
||||||
|
&& python3 /build_ov_model.py
|
||||||
|
|
||||||
|
####
|
||||||
|
#
|
||||||
|
# Coral Compatibility
|
||||||
|
#
|
||||||
|
# Builds libusb without udev. Needed for synology and other devices with USB coral
|
||||||
|
####
|
||||||
# libUSB - No Udev
|
# libUSB - No Udev
|
||||||
FROM wget as libusb-build
|
FROM wget as libusb-build
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
@@ -97,11 +117,12 @@ RUN wget -qO edgetpu_model.tflite https://github.com/google-coral/test_data/raw/
|
|||||||
RUN wget -qO cpu_model.tflite https://github.com/google-coral/test_data/raw/release-frogfish/ssdlite_mobiledet_coco_qat_postprocess.tflite
|
RUN wget -qO cpu_model.tflite https://github.com/google-coral/test_data/raw/release-frogfish/ssdlite_mobiledet_coco_qat_postprocess.tflite
|
||||||
COPY labelmap.txt .
|
COPY labelmap.txt .
|
||||||
# Copy OpenVino model
|
# Copy OpenVino model
|
||||||
COPY --from=ov-converter /models/public/ssdlite_mobilenet_v2/FP16 openvino-model
|
COPY --from=ov-converter /models/ssdlite_mobilenet_v2.xml openvino-model/
|
||||||
|
COPY --from=ov-converter /models/ssdlite_mobilenet_v2.bin openvino-model/
|
||||||
RUN wget -q https://github.com/openvinotoolkit/open_model_zoo/raw/master/data/dataset_classes/coco_91cl_bkgr.txt -O openvino-model/coco_91cl_bkgr.txt && \
|
RUN wget -q https://github.com/openvinotoolkit/open_model_zoo/raw/master/data/dataset_classes/coco_91cl_bkgr.txt -O openvino-model/coco_91cl_bkgr.txt && \
|
||||||
sed -i 's/truck/car/g' openvino-model/coco_91cl_bkgr.txt
|
sed -i 's/truck/car/g' openvino-model/coco_91cl_bkgr.txt
|
||||||
# Get Audio Model and labels
|
# Get Audio Model and labels
|
||||||
RUN wget -qO cpu_audio_model.tflite https://tfhub.dev/google/lite-model/yamnet/classification/tflite/1?lite-format=tflite
|
RUN wget -qO - https://www.kaggle.com/api/v1/models/google/yamnet/tfLite/classification-tflite/1/download | tar xvz && mv 1.tflite cpu_audio_model.tflite
|
||||||
COPY audio-labelmap.txt .
|
COPY audio-labelmap.txt .
|
||||||
|
|
||||||
|
|
||||||
@@ -137,6 +158,8 @@ RUN apt-get -qq update \
|
|||||||
gfortran openexr libatlas-base-dev libssl-dev\
|
gfortran openexr libatlas-base-dev libssl-dev\
|
||||||
libtbb2 libtbb-dev libdc1394-22-dev libopenexr-dev \
|
libtbb2 libtbb-dev libdc1394-22-dev libopenexr-dev \
|
||||||
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev \
|
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev \
|
||||||
|
# sqlite3 dependencies
|
||||||
|
tclsh \
|
||||||
# scipy dependencies
|
# scipy dependencies
|
||||||
gcc gfortran libopenblas-dev liblapack-dev && \
|
gcc gfortran libopenblas-dev liblapack-dev && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@@ -150,6 +173,10 @@ RUN wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py \
|
|||||||
COPY docker/main/requirements.txt /requirements.txt
|
COPY docker/main/requirements.txt /requirements.txt
|
||||||
RUN pip3 install -r /requirements.txt
|
RUN pip3 install -r /requirements.txt
|
||||||
|
|
||||||
|
# Build pysqlite3 from source
|
||||||
|
COPY docker/main/build_pysqlite3.sh /build_pysqlite3.sh
|
||||||
|
RUN /build_pysqlite3.sh
|
||||||
|
|
||||||
COPY docker/main/requirements-wheels.txt /requirements-wheels.txt
|
COPY docker/main/requirements-wheels.txt /requirements-wheels.txt
|
||||||
RUN pip3 wheel --wheel-dir=/wheels -r /requirements-wheels.txt
|
RUN pip3 wheel --wheel-dir=/wheels -r /requirements-wheels.txt
|
||||||
|
|
||||||
@@ -157,8 +184,10 @@ RUN pip3 wheel --wheel-dir=/wheels -r /requirements-wheels.txt
|
|||||||
# Collect deps in a single layer
|
# Collect deps in a single layer
|
||||||
FROM scratch AS deps-rootfs
|
FROM scratch AS deps-rootfs
|
||||||
COPY --from=nginx /usr/local/nginx/ /usr/local/nginx/
|
COPY --from=nginx /usr/local/nginx/ /usr/local/nginx/
|
||||||
|
COPY --from=sqlite-vec /usr/local/lib/ /usr/local/lib/
|
||||||
COPY --from=go2rtc /rootfs/ /
|
COPY --from=go2rtc /rootfs/ /
|
||||||
COPY --from=libusb-build /usr/local/lib /usr/local/lib
|
COPY --from=libusb-build /usr/local/lib /usr/local/lib
|
||||||
|
COPY --from=tempio /rootfs/ /
|
||||||
COPY --from=s6-overlay /rootfs/ /
|
COPY --from=s6-overlay /rootfs/ /
|
||||||
COPY --from=models /rootfs/ /
|
COPY --from=models /rootfs/ /
|
||||||
COPY docker/main/rootfs/ /
|
COPY docker/main/rootfs/ /
|
||||||
@@ -176,7 +205,17 @@ ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
|
|||||||
ENV NVIDIA_VISIBLE_DEVICES=all
|
ENV NVIDIA_VISIBLE_DEVICES=all
|
||||||
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
||||||
|
|
||||||
ENV PATH="/usr/lib/btbn-ffmpeg/bin:/usr/local/go2rtc/bin:/usr/local/nginx/sbin:${PATH}"
|
# Disable tokenizer parallelism warning
|
||||||
|
# https://stackoverflow.com/questions/62691279/how-to-disable-tokenizers-parallelism-true-false-warning/72926996#72926996
|
||||||
|
ENV TOKENIZERS_PARALLELISM=true
|
||||||
|
# https://github.com/huggingface/transformers/issues/27214
|
||||||
|
ENV TRANSFORMERS_NO_ADVISORY_WARNINGS=1
|
||||||
|
|
||||||
|
# Set OpenCV ffmpeg loglevel to fatal: https://ffmpeg.org/doxygen/trunk/log_8h.html
|
||||||
|
ENV OPENCV_FFMPEG_LOGLEVEL=8
|
||||||
|
|
||||||
|
ENV PATH="/usr/local/go2rtc/bin:/usr/local/tempio/bin:/usr/local/nginx/sbin:${PATH}"
|
||||||
|
ENV LIBAVFORMAT_VERSION_MAJOR=60
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN --mount=type=bind,source=docker/main/install_deps.sh,target=/deps/install_deps.sh \
|
RUN --mount=type=bind,source=docker/main/install_deps.sh,target=/deps/install_deps.sh \
|
||||||
@@ -202,7 +241,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
|
|||||||
ENTRYPOINT ["/init"]
|
ENTRYPOINT ["/init"]
|
||||||
CMD []
|
CMD []
|
||||||
|
|
||||||
HEALTHCHECK --start-period=120s --start-interval=5s --interval=15s --timeout=5s --retries=3 \
|
HEALTHCHECK --start-period=300s --start-interval=5s --interval=15s --timeout=5s --retries=3 \
|
||||||
CMD curl --fail --silent --show-error http://127.0.0.1:5000/api/version || exit 1
|
CMD curl --fail --silent --show-error http://127.0.0.1:5000/api/version || exit 1
|
||||||
|
|
||||||
# Frigate deps with Node.js and NPM for devcontainer
|
# Frigate deps with Node.js and NPM for devcontainer
|
||||||
|
|||||||
11
docker/main/build_ov_model.py
Normal file
11
docker/main/build_ov_model.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import openvino as ov
|
||||||
|
from openvino.tools import mo
|
||||||
|
|
||||||
|
ov_model = mo.convert_model(
|
||||||
|
"/models/ssdlite_mobilenet_v2_coco_2018_05_09/frozen_inference_graph.pb",
|
||||||
|
compress_to_fp16=True,
|
||||||
|
transformations_config="/usr/local/lib/python3.9/dist-packages/openvino/tools/mo/front/tf/ssd_v2_support.json",
|
||||||
|
tensorflow_object_detection_api_pipeline_config="/models/ssdlite_mobilenet_v2_coco_2018_05_09/pipeline.config",
|
||||||
|
reverse_input_channels=True,
|
||||||
|
)
|
||||||
|
ov.save_model(ov_model, "/models/ssdlite_mobilenet_v2.xml")
|
||||||
35
docker/main/build_pysqlite3.sh
Executable file
35
docker/main/build_pysqlite3.sh
Executable file
@@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
SQLITE3_VERSION="96c92aba00c8375bc32fafcdf12429c58bd8aabfcadab6683e35bbb9cdebf19e" # 3.46.0
|
||||||
|
PYSQLITE3_VERSION="0.5.3"
|
||||||
|
|
||||||
|
# Fetch the source code for the latest release of Sqlite.
|
||||||
|
if [[ ! -d "sqlite" ]]; then
|
||||||
|
wget https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=${SQLITE3_VERSION} -O sqlite.tar.gz
|
||||||
|
tar xzf sqlite.tar.gz
|
||||||
|
cd sqlite/
|
||||||
|
LIBS="-lm" ./configure --disable-tcl --enable-tempstore=always
|
||||||
|
make sqlite3.c
|
||||||
|
cd ../
|
||||||
|
rm sqlite.tar.gz
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Grab the pysqlite3 source code.
|
||||||
|
if [[ ! -d "./pysqlite3" ]]; then
|
||||||
|
git clone https://github.com/coleifer/pysqlite3.git
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd pysqlite3/
|
||||||
|
git checkout ${PYSQLITE3_VERSION}
|
||||||
|
|
||||||
|
# Copy the sqlite3 source amalgamation into the pysqlite3 directory so we can
|
||||||
|
# create a self-contained extension module.
|
||||||
|
cp "../sqlite/sqlite3.c" ./
|
||||||
|
cp "../sqlite/sqlite3.h" ./
|
||||||
|
|
||||||
|
# Create the wheel and put it in the /wheels dir.
|
||||||
|
sed -i "s|name='pysqlite3-binary'|name=PACKAGE_NAME|g" setup.py
|
||||||
|
python3 setup.py build_static
|
||||||
|
pip3 wheel . -w /wheels
|
||||||
31
docker/main/build_sqlite_vec.sh
Executable file
31
docker/main/build_sqlite_vec.sh
Executable file
@@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
SQLITE_VEC_VERSION="0.1.3"
|
||||||
|
|
||||||
|
cp /etc/apt/sources.list /etc/apt/sources.list.d/sources-src.list
|
||||||
|
sed -i 's|deb http|deb-src http|g' /etc/apt/sources.list.d/sources-src.list
|
||||||
|
apt-get update
|
||||||
|
apt-get -yqq build-dep sqlite3 gettext git
|
||||||
|
|
||||||
|
mkdir /tmp/sqlite_vec
|
||||||
|
# Grab the sqlite_vec source code.
|
||||||
|
wget -nv https://github.com/asg017/sqlite-vec/archive/refs/tags/v${SQLITE_VEC_VERSION}.tar.gz
|
||||||
|
tar -zxf v${SQLITE_VEC_VERSION}.tar.gz -C /tmp/sqlite_vec
|
||||||
|
|
||||||
|
cd /tmp/sqlite_vec/sqlite-vec-${SQLITE_VEC_VERSION}
|
||||||
|
|
||||||
|
mkdir -p vendor
|
||||||
|
wget -O sqlite-amalgamation.zip https://www.sqlite.org/2024/sqlite-amalgamation-3450300.zip
|
||||||
|
unzip sqlite-amalgamation.zip
|
||||||
|
mv sqlite-amalgamation-3450300/* vendor/
|
||||||
|
rmdir sqlite-amalgamation-3450300
|
||||||
|
rm sqlite-amalgamation.zip
|
||||||
|
|
||||||
|
# build loadable module
|
||||||
|
make loadable
|
||||||
|
|
||||||
|
# install it
|
||||||
|
cp dist/vec0.* /usr/local/lib
|
||||||
|
|
||||||
@@ -8,11 +8,13 @@ apt-get -qq install --no-install-recommends -y \
|
|||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
gnupg \
|
gnupg \
|
||||||
wget \
|
wget \
|
||||||
|
lbzip2 \
|
||||||
procps vainfo \
|
procps vainfo \
|
||||||
unzip locales tzdata libxml2 xz-utils \
|
unzip locales tzdata libxml2 xz-utils \
|
||||||
python3.9 \
|
python3.9 \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
curl \
|
curl \
|
||||||
|
lsof \
|
||||||
jq \
|
jq \
|
||||||
nethogs
|
nethogs
|
||||||
|
|
||||||
@@ -39,39 +41,68 @@ apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
|||||||
|
|
||||||
# btbn-ffmpeg -> amd64
|
# btbn-ffmpeg -> amd64
|
||||||
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
||||||
mkdir -p /usr/lib/btbn-ffmpeg
|
mkdir -p /usr/lib/ffmpeg/5.0
|
||||||
wget -qO btbn-ffmpeg.tar.xz "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2022-07-31-12-37/ffmpeg-n5.1-2-g915ef932a3-linux64-gpl-5.1.tar.xz"
|
mkdir -p /usr/lib/ffmpeg/7.0
|
||||||
tar -xf btbn-ffmpeg.tar.xz -C /usr/lib/btbn-ffmpeg --strip-components 1
|
wget -qO btbn-ffmpeg.tar.xz "https://github.com/NickM-27/FFmpeg-Builds/releases/download/autobuild-2022-07-31-12-37/ffmpeg-n5.1-2-g915ef932a3-linux64-gpl-5.1.tar.xz"
|
||||||
rm -rf btbn-ffmpeg.tar.xz /usr/lib/btbn-ffmpeg/doc /usr/lib/btbn-ffmpeg/bin/ffplay
|
tar -xf btbn-ffmpeg.tar.xz -C /usr/lib/ffmpeg/5.0 --strip-components 1
|
||||||
|
rm -rf btbn-ffmpeg.tar.xz /usr/lib/ffmpeg/5.0/doc /usr/lib/ffmpeg/5.0/bin/ffplay
|
||||||
|
wget -qO btbn-ffmpeg.tar.xz "https://github.com/NickM-27/FFmpeg-Builds/releases/download/autobuild-2024-09-19-12-51/ffmpeg-n7.0.2-18-g3e6cec1286-linux64-gpl-7.0.tar.xz"
|
||||||
|
tar -xf btbn-ffmpeg.tar.xz -C /usr/lib/ffmpeg/7.0 --strip-components 1
|
||||||
|
rm -rf btbn-ffmpeg.tar.xz /usr/lib/ffmpeg/7.0/doc /usr/lib/ffmpeg/7.0/bin/ffplay
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ffmpeg -> arm64
|
# ffmpeg -> arm64
|
||||||
if [[ "${TARGETARCH}" == "arm64" ]]; then
|
if [[ "${TARGETARCH}" == "arm64" ]]; then
|
||||||
mkdir -p /usr/lib/btbn-ffmpeg
|
mkdir -p /usr/lib/ffmpeg/5.0
|
||||||
wget -qO btbn-ffmpeg.tar.xz "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2022-07-31-12-37/ffmpeg-n5.1-2-g915ef932a3-linuxarm64-gpl-5.1.tar.xz"
|
mkdir -p /usr/lib/ffmpeg/7.0
|
||||||
tar -xf btbn-ffmpeg.tar.xz -C /usr/lib/btbn-ffmpeg --strip-components 1
|
wget -qO btbn-ffmpeg.tar.xz "https://github.com/NickM-27/FFmpeg-Builds/releases/download/autobuild-2022-07-31-12-37/ffmpeg-n5.1-2-g915ef932a3-linuxarm64-gpl-5.1.tar.xz"
|
||||||
rm -rf btbn-ffmpeg.tar.xz /usr/lib/btbn-ffmpeg/doc /usr/lib/btbn-ffmpeg/bin/ffplay
|
tar -xf btbn-ffmpeg.tar.xz -C /usr/lib/ffmpeg/5.0 --strip-components 1
|
||||||
|
rm -rf btbn-ffmpeg.tar.xz /usr/lib/ffmpeg/5.0/doc /usr/lib/ffmpeg/5.0/bin/ffplay
|
||||||
|
wget -qO btbn-ffmpeg.tar.xz "https://github.com/NickM-27/FFmpeg-Builds/releases/download/autobuild-2024-09-19-12-51/ffmpeg-n7.0.2-18-g3e6cec1286-linuxarm64-gpl-7.0.tar.xz"
|
||||||
|
tar -xf btbn-ffmpeg.tar.xz -C /usr/lib/ffmpeg/7.0 --strip-components 1
|
||||||
|
rm -rf btbn-ffmpeg.tar.xz /usr/lib/ffmpeg/7.0/doc /usr/lib/ffmpeg/7.0/bin/ffplay
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# arch specific packages
|
# arch specific packages
|
||||||
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
||||||
# use debian bookworm for hwaccel packages
|
# use debian bookworm for amd / intel-i965 driver packages
|
||||||
echo 'deb https://deb.debian.org/debian bookworm main contrib non-free' >/etc/apt/sources.list.d/debian-bookworm.list
|
echo 'deb https://deb.debian.org/debian bookworm main contrib non-free' >/etc/apt/sources.list.d/debian-bookworm.list
|
||||||
apt-get -qq update
|
apt-get -qq update
|
||||||
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
intel-opencl-icd \
|
i965-va-driver intel-gpu-tools onevpl-tools \
|
||||||
mesa-va-drivers radeontop libva-drm2 intel-media-va-driver-non-free i965-va-driver libmfx1 intel-gpu-tools
|
libva-drm2 \
|
||||||
|
mesa-va-drivers radeontop
|
||||||
|
|
||||||
# something about this dependency requires it to be installed in a separate call rather than in the line above
|
# something about this dependency requires it to be installed in a separate call rather than in the line above
|
||||||
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
i965-va-driver-shaders
|
i965-va-driver-shaders
|
||||||
|
|
||||||
|
# intel packages use zst compression so we need to update dpkg
|
||||||
|
apt-get install -y dpkg
|
||||||
|
|
||||||
rm -f /etc/apt/sources.list.d/debian-bookworm.list
|
rm -f /etc/apt/sources.list.d/debian-bookworm.list
|
||||||
|
|
||||||
|
# use intel apt intel packages
|
||||||
|
wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
|
||||||
|
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy client" | tee /etc/apt/sources.list.d/intel-gpu-jammy.list
|
||||||
|
apt-get -qq update
|
||||||
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
|
intel-opencl-icd=24.35.30872.31-996~22.04 intel-level-zero-gpu=1.3.29735.27-914~22.04 intel-media-va-driver-non-free=24.3.3-996~22.04 \
|
||||||
|
libmfx1=23.2.2-880~22.04 libmfxgen1=24.2.4-914~22.04 libvpl2=1:2.13.0.0-996~22.04
|
||||||
|
|
||||||
|
rm -f /usr/share/keyrings/intel-graphics.gpg
|
||||||
|
rm -f /etc/apt/sources.list.d/intel-gpu-jammy.list
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${TARGETARCH}" == "arm64" ]]; then
|
if [[ "${TARGETARCH}" == "arm64" ]]; then
|
||||||
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
libva-drm2 mesa-va-drivers
|
libva-drm2 mesa-va-drivers radeontop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# install vulkan
|
||||||
|
apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
|
libvulkan1 mesa-vulkan-drivers
|
||||||
|
|
||||||
apt-get purge gnupg apt-transport-https xz-utils -y
|
apt-get purge gnupg apt-transport-https xz-utils -y
|
||||||
apt-get clean autoclean -y
|
apt-get clean autoclean -y
|
||||||
apt-get autoremove --purge -y
|
apt-get autoremove --purge -y
|
||||||
|
|||||||
16
docker/main/install_tempio.sh
Executable file
16
docker/main/install_tempio.sh
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
tempio_version="2021.09.0"
|
||||||
|
|
||||||
|
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
||||||
|
arch="amd64"
|
||||||
|
elif [[ "${TARGETARCH}" == "arm64" ]]; then
|
||||||
|
arch="aarch64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p /rootfs/usr/local/tempio/bin
|
||||||
|
|
||||||
|
wget -q -O /rootfs/usr/local/tempio/bin/tempio "https://github.com/home-assistant/tempio/releases/download/${tempio_version}/tempio_${arch}"
|
||||||
|
chmod 755 /rootfs/usr/local/tempio/bin/tempio
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
numpy
|
numpy
|
||||||
# Openvino Library - Custom built with MYRIAD support
|
tensorflow
|
||||||
openvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.3.1/openvino-2022.3.1-1-cp39-cp39-manylinux_2_31_x86_64.whl; platform_machine == 'x86_64'
|
openvino-dev>=2024.0.0
|
||||||
openvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.3.1/openvino-2022.3.1-1-cp39-cp39-linux_aarch64.whl; platform_machine == 'aarch64'
|
|
||||||
openvino-dev[tensorflow2] @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.3.1/openvino_dev-2022.3.1-1-py3-none-any.whl
|
|
||||||
@@ -1,27 +1,30 @@
|
|||||||
click == 8.1.*
|
click == 8.1.*
|
||||||
Flask == 3.0.*
|
# FastAPI
|
||||||
Flask_Limiter == 3.7.*
|
aiohttp == 3.11.2
|
||||||
|
starlette == 0.41.2
|
||||||
|
starlette-context == 0.3.6
|
||||||
|
fastapi == 0.115.*
|
||||||
|
uvicorn == 0.30.*
|
||||||
|
slowapi == 0.1.*
|
||||||
imutils == 0.5.*
|
imutils == 0.5.*
|
||||||
joserfc == 0.10.*
|
joserfc == 1.0.*
|
||||||
|
pathvalidate == 3.2.*
|
||||||
markupsafe == 2.1.*
|
markupsafe == 2.1.*
|
||||||
matplotlib == 3.8.*
|
|
||||||
mypy == 1.6.1
|
mypy == 1.6.1
|
||||||
numpy == 1.26.*
|
numpy == 1.26.*
|
||||||
onvif_zeep == 0.2.12
|
onvif_zeep == 0.2.12
|
||||||
opencv-python-headless == 4.9.0.*
|
opencv-python-headless == 4.11.0.*
|
||||||
paho-mqtt == 2.1.*
|
paho-mqtt == 2.1.*
|
||||||
pandas == 2.2.*
|
pandas == 2.2.*
|
||||||
peewee == 3.17.*
|
peewee == 3.17.*
|
||||||
peewee_migrate == 1.12.*
|
peewee_migrate == 1.13.*
|
||||||
psutil == 5.9.*
|
psutil == 6.1.*
|
||||||
pydantic == 2.7.*
|
pydantic == 2.8.*
|
||||||
git+https://github.com/fbcotter/py3nvml#egg=py3nvml
|
git+https://github.com/fbcotter/py3nvml#egg=py3nvml
|
||||||
PyYAML == 6.0.*
|
pytz == 2024.*
|
||||||
pytz == 2024.1
|
pyzmq == 26.2.*
|
||||||
pyzmq == 26.0.*
|
|
||||||
ruamel.yaml == 0.18.*
|
ruamel.yaml == 0.18.*
|
||||||
tzlocal == 5.2
|
tzlocal == 5.2
|
||||||
types-PyYAML == 6.0.*
|
|
||||||
requests == 2.32.*
|
requests == 2.32.*
|
||||||
types-requests == 2.32.*
|
types-requests == 2.32.*
|
||||||
scipy == 1.13.*
|
scipy == 1.13.*
|
||||||
@@ -29,7 +32,16 @@ norfair == 2.2.*
|
|||||||
setproctitle == 1.3.*
|
setproctitle == 1.3.*
|
||||||
ws4py == 0.5.*
|
ws4py == 0.5.*
|
||||||
unidecode == 1.3.*
|
unidecode == 1.3.*
|
||||||
onnxruntime == 1.16.*
|
# OpenVino & ONNX
|
||||||
# Openvino Library - Custom built with MYRIAD support
|
openvino == 2024.3.*
|
||||||
openvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.3.1/openvino-2022.3.1-1-cp39-cp39-manylinux_2_31_x86_64.whl; platform_machine == 'x86_64'
|
onnxruntime-openvino == 1.19.* ; platform_machine == 'x86_64'
|
||||||
openvino @ https://github.com/NateMeyer/openvino-wheels/releases/download/multi-arch_2022.3.1/openvino-2022.3.1-1-cp39-cp39-linux_aarch64.whl; platform_machine == 'aarch64'
|
onnxruntime == 1.19.* ; platform_machine == 'aarch64'
|
||||||
|
# Embeddings
|
||||||
|
transformers == 4.45.*
|
||||||
|
# Generative AI
|
||||||
|
google-generativeai == 0.8.*
|
||||||
|
ollama == 0.3.*
|
||||||
|
openai == 1.51.*
|
||||||
|
# push notifications
|
||||||
|
py-vapid == 1.9.*
|
||||||
|
pywebpush == 2.0.*
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
certsync
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
certsync-pipeline
|
||||||
4
docker/main/rootfs/etc/s6-overlay/s6-rc.d/certsync-log/run
Executable file
4
docker/main/rootfs/etc/s6-overlay/s6-rc.d/certsync-log/run
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
exec logutil-service /dev/shm/logs/certsync
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
30
docker/main/rootfs/etc/s6-overlay/s6-rc.d/certsync/finish
Executable file
30
docker/main/rootfs/etc/s6-overlay/s6-rc.d/certsync/finish
Executable file
@@ -0,0 +1,30 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# Take down the S6 supervision tree when the service fails
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
declare exit_code_container
|
||||||
|
exit_code_container=$(cat /run/s6-linux-init-container-results/exitcode)
|
||||||
|
readonly exit_code_container
|
||||||
|
readonly exit_code_service="${1}"
|
||||||
|
readonly exit_code_signal="${2}"
|
||||||
|
readonly service="CERTSYNC"
|
||||||
|
|
||||||
|
echo "[INFO] Service ${service} exited with code ${exit_code_service} (by signal ${exit_code_signal})"
|
||||||
|
|
||||||
|
if [[ "${exit_code_service}" -eq 256 ]]; then
|
||||||
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
echo $((128 + exit_code_signal)) >/run/s6-linux-init-container-results/exitcode
|
||||||
|
fi
|
||||||
|
if [[ "${exit_code_signal}" -eq 15 ]]; then
|
||||||
|
exec /run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
|
elif [[ "${exit_code_service}" -ne 0 ]]; then
|
||||||
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
echo "${exit_code_service}" >/run/s6-linux-init-container-results/exitcode
|
||||||
|
fi
|
||||||
|
exec /run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
certsync-log
|
||||||
58
docker/main/rootfs/etc/s6-overlay/s6-rc.d/certsync/run
Executable file
58
docker/main/rootfs/etc/s6-overlay/s6-rc.d/certsync/run
Executable file
@@ -0,0 +1,58 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# Start the CERTSYNC service
|
||||||
|
|
||||||
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
|
# Logs should be sent to stdout so that s6 can collect them
|
||||||
|
|
||||||
|
echo "[INFO] Starting certsync..."
|
||||||
|
|
||||||
|
lefile="/etc/letsencrypt/live/frigate/fullchain.pem"
|
||||||
|
|
||||||
|
tls_enabled=`python3 /usr/local/nginx/get_tls_settings.py | jq -r .enabled`
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
if [[ "$tls_enabled" == 'false' ]]; then
|
||||||
|
sleep 9999
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -e $lefile ]
|
||||||
|
then
|
||||||
|
echo "[ERROR] TLS certificate does not exist: $lefile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
leprint=`openssl x509 -in $lefile -fingerprint -noout 2>&1 || echo 'failed'`
|
||||||
|
|
||||||
|
case "$leprint" in
|
||||||
|
*Fingerprint*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "[ERROR] Missing fingerprint from $lefile"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
liveprint=`echo | openssl s_client -showcerts -connect 127.0.0.1:8971 2>&1 | openssl x509 -fingerprint 2>&1 | grep -i fingerprint || echo 'failed'`
|
||||||
|
|
||||||
|
case "$liveprint" in
|
||||||
|
*Fingerprint*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "[ERROR] Missing fingerprint from current nginx TLS cert"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [[ "$leprint" != "failed" && "$liveprint" != "failed" && "$leprint" != "$liveprint" ]]
|
||||||
|
then
|
||||||
|
echo "[INFO] Reloading nginx to refresh TLS certificate"
|
||||||
|
echo "$lefile: $leprint"
|
||||||
|
/usr/local/nginx/sbin/nginx -s reload
|
||||||
|
fi
|
||||||
|
|
||||||
|
sleep 60
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
exit 0
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
30000
|
||||||
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/certsync/type
Normal file
1
docker/main/rootfs/etc/s6-overlay/s6-rc.d/certsync/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
@@ -16,8 +16,8 @@ function migrate_db_path() {
|
|||||||
if [[ -f "${config_file_yaml}" ]]; then
|
if [[ -f "${config_file_yaml}" ]]; then
|
||||||
config_file="${config_file_yaml}"
|
config_file="${config_file_yaml}"
|
||||||
elif [[ ! -f "${config_file}" ]]; then
|
elif [[ ! -f "${config_file}" ]]; then
|
||||||
echo "[ERROR] Frigate config file not found"
|
# Frigate will create the config file on startup
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
unset config_file_yaml
|
unset config_file_yaml
|
||||||
|
|
||||||
@@ -44,8 +44,6 @@ function migrate_db_path() {
|
|||||||
|
|
||||||
echo "[INFO] Preparing Frigate..."
|
echo "[INFO] Preparing Frigate..."
|
||||||
migrate_db_path
|
migrate_db_path
|
||||||
export LIBAVFORMAT_VERSION_MAJOR=$(ffmpeg -version | grep -Po 'libavformat\W+\K\d+')
|
|
||||||
|
|
||||||
echo "[INFO] Starting Frigate..."
|
echo "[INFO] Starting Frigate..."
|
||||||
|
|
||||||
cd /opt/frigate || echo "[ERROR] Failed to change working directory to /opt/frigate"
|
cd /opt/frigate || echo "[ERROR] Failed to change working directory to /opt/frigate"
|
||||||
|
|||||||
@@ -43,8 +43,6 @@ function get_ip_and_port_from_supervisor() {
|
|||||||
export FRIGATE_GO2RTC_WEBRTC_CANDIDATE_INTERNAL="${ip_address}:${webrtc_port}"
|
export FRIGATE_GO2RTC_WEBRTC_CANDIDATE_INTERNAL="${ip_address}:${webrtc_port}"
|
||||||
}
|
}
|
||||||
|
|
||||||
export LIBAVFORMAT_VERSION_MAJOR=$(ffmpeg -version | grep -Po 'libavformat\W+\K\d+')
|
|
||||||
|
|
||||||
if [[ -f "/dev/shm/go2rtc.yaml" ]]; then
|
if [[ -f "/dev/shm/go2rtc.yaml" ]]; then
|
||||||
echo "[INFO] Removing stale config from last run..."
|
echo "[INFO] Removing stale config from last run..."
|
||||||
rm /dev/shm/go2rtc.yaml
|
rm /dev/shm/go2rtc.yaml
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
set -o errexit -o nounset -o pipefail
|
set -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
dirs=(/dev/shm/logs/frigate /dev/shm/logs/go2rtc /dev/shm/logs/nginx)
|
dirs=(/dev/shm/logs/frigate /dev/shm/logs/go2rtc /dev/shm/logs/nginx /dev/shm/logs/certsync)
|
||||||
|
|
||||||
mkdir -p "${dirs[@]}"
|
mkdir -p "${dirs[@]}"
|
||||||
chown nobody:nogroup "${dirs[@]}"
|
chown nobody:nogroup "${dirs[@]}"
|
||||||
|
|||||||
5
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/data/check
Executable file
5
docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/data/check
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Wait for PID file to exist.
|
||||||
|
while ! test -f /run/nginx.pid; do sleep 1; done
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
3
|
||||||
@@ -8,6 +8,84 @@ set -o errexit -o nounset -o pipefail
|
|||||||
|
|
||||||
echo "[INFO] Starting NGINX..."
|
echo "[INFO] Starting NGINX..."
|
||||||
|
|
||||||
|
# Taken from https://github.com/felipecrs/cgroup-scripts/commits/master/get_cpus.sh
|
||||||
|
function get_cpus() {
|
||||||
|
local quota=""
|
||||||
|
local period=""
|
||||||
|
|
||||||
|
if [ -f /sys/fs/cgroup/cgroup.controllers ]; then
|
||||||
|
if [ -f /sys/fs/cgroup/cpu.max ]; then
|
||||||
|
read -r quota period </sys/fs/cgroup/cpu.max
|
||||||
|
if [ "$quota" = "max" ]; then
|
||||||
|
quota=""
|
||||||
|
period=""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "[WARN] /sys/fs/cgroup/cpu.max not found. Falling back to /proc/cpuinfo." >&2
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ -f /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -f /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then
|
||||||
|
quota=$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)
|
||||||
|
period=$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)
|
||||||
|
|
||||||
|
if [ "$quota" = "-1" ]; then
|
||||||
|
quota=""
|
||||||
|
period=""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "[WARN] /sys/fs/cgroup/cpu/cpu.cfs_quota_us or /sys/fs/cgroup/cpu/cpu.cfs_period_us not found. Falling back to /proc/cpuinfo." >&2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
local cpus
|
||||||
|
if [ "${period}" != "0" ] && [ -n "${quota}" ] && [ -n "${period}" ]; then
|
||||||
|
cpus=$((quota / period))
|
||||||
|
if [ "$cpus" -eq 0 ]; then
|
||||||
|
cpus=1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
cpus=$(grep -c ^processor /proc/cpuinfo)
|
||||||
|
fi
|
||||||
|
|
||||||
|
printf '%s' "$cpus"
|
||||||
|
}
|
||||||
|
|
||||||
|
function set_worker_processes() {
|
||||||
|
# Capture number of assigned CPUs to calculate worker processes
|
||||||
|
local cpus
|
||||||
|
|
||||||
|
cpus=$(get_cpus)
|
||||||
|
if [[ "${cpus}" -gt 4 ]]; then
|
||||||
|
cpus=4
|
||||||
|
fi
|
||||||
|
|
||||||
|
# we need to catch any errors because sed will fail if user has bind mounted a custom nginx file
|
||||||
|
sed -i "s/worker_processes auto;/worker_processes ${cpus};/" /usr/local/nginx/conf/nginx.conf || true
|
||||||
|
}
|
||||||
|
|
||||||
|
set_worker_processes
|
||||||
|
|
||||||
|
# ensure the directory for ACME challenges exists
|
||||||
|
mkdir -p /etc/letsencrypt/www
|
||||||
|
|
||||||
|
# Create self signed certs if needed
|
||||||
|
letsencrypt_path=/etc/letsencrypt/live/frigate
|
||||||
|
mkdir -p $letsencrypt_path
|
||||||
|
|
||||||
|
if [ ! \( -f "$letsencrypt_path/privkey.pem" -a -f "$letsencrypt_path/fullchain.pem" \) ]; then
|
||||||
|
echo "[INFO] No TLS certificate found. Generating a self signed certificate..."
|
||||||
|
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \
|
||||||
|
-subj "/O=FRIGATE DEFAULT CERT/CN=*" \
|
||||||
|
-keyout "$letsencrypt_path/privkey.pem" -out "$letsencrypt_path/fullchain.pem" 2>/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
|
# build templates for optional TLS support
|
||||||
|
python3 /usr/local/nginx/get_tls_settings.py | \
|
||||||
|
tempio -template /usr/local/nginx/templates/listen.gotmpl \
|
||||||
|
-out /usr/local/nginx/conf/listen.conf
|
||||||
|
|
||||||
# Replace the bash process with the NGINX process, redirecting stderr to stdout
|
# Replace the bash process with the NGINX process, redirecting stderr to stdout
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec nginx
|
exec \
|
||||||
|
s6-notifyoncheck -t 30000 -n 1 \
|
||||||
|
nginx
|
||||||
|
|||||||
80
docker/main/rootfs/labelmap/coco-80.txt
Normal file
80
docker/main/rootfs/labelmap/coco-80.txt
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
0 person
|
||||||
|
1 bicycle
|
||||||
|
2 car
|
||||||
|
3 motorcycle
|
||||||
|
4 airplane
|
||||||
|
5 car
|
||||||
|
6 train
|
||||||
|
7 car
|
||||||
|
8 boat
|
||||||
|
9 traffic light
|
||||||
|
10 fire hydrant
|
||||||
|
11 stop sign
|
||||||
|
12 parking meter
|
||||||
|
13 bench
|
||||||
|
14 bird
|
||||||
|
15 cat
|
||||||
|
16 dog
|
||||||
|
17 horse
|
||||||
|
18 sheep
|
||||||
|
19 cow
|
||||||
|
20 elephant
|
||||||
|
21 bear
|
||||||
|
22 zebra
|
||||||
|
23 giraffe
|
||||||
|
24 backpack
|
||||||
|
25 umbrella
|
||||||
|
26 handbag
|
||||||
|
27 tie
|
||||||
|
28 suitcase
|
||||||
|
29 frisbee
|
||||||
|
30 skis
|
||||||
|
31 snowboard
|
||||||
|
32 sports ball
|
||||||
|
33 kite
|
||||||
|
34 baseball bat
|
||||||
|
35 baseball glove
|
||||||
|
36 skateboard
|
||||||
|
37 surfboard
|
||||||
|
38 tennis racket
|
||||||
|
39 bottle
|
||||||
|
40 wine glass
|
||||||
|
41 cup
|
||||||
|
42 fork
|
||||||
|
43 knife
|
||||||
|
44 spoon
|
||||||
|
45 bowl
|
||||||
|
46 banana
|
||||||
|
47 apple
|
||||||
|
48 sandwich
|
||||||
|
49 orange
|
||||||
|
50 broccoli
|
||||||
|
51 carrot
|
||||||
|
52 hot dog
|
||||||
|
53 pizza
|
||||||
|
54 donut
|
||||||
|
55 cake
|
||||||
|
56 chair
|
||||||
|
57 couch
|
||||||
|
58 potted plant
|
||||||
|
59 bed
|
||||||
|
60 dining table
|
||||||
|
61 toilet
|
||||||
|
62 tv
|
||||||
|
63 laptop
|
||||||
|
64 mouse
|
||||||
|
65 remote
|
||||||
|
66 keyboard
|
||||||
|
67 cell phone
|
||||||
|
68 microwave
|
||||||
|
69 oven
|
||||||
|
70 toaster
|
||||||
|
71 sink
|
||||||
|
72 refrigerator
|
||||||
|
73 book
|
||||||
|
74 clock
|
||||||
|
75 vase
|
||||||
|
76 scissors
|
||||||
|
77 teddy bear
|
||||||
|
78 hair drier
|
||||||
|
79 toothbrush
|
||||||
91
docker/main/rootfs/labelmap/coco.txt
Normal file
91
docker/main/rootfs/labelmap/coco.txt
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
0 person
|
||||||
|
1 bicycle
|
||||||
|
2 car
|
||||||
|
3 motorcycle
|
||||||
|
4 airplane
|
||||||
|
5 bus
|
||||||
|
6 train
|
||||||
|
7 car
|
||||||
|
8 boat
|
||||||
|
9 traffic light
|
||||||
|
10 fire hydrant
|
||||||
|
11 street sign
|
||||||
|
12 stop sign
|
||||||
|
13 parking meter
|
||||||
|
14 bench
|
||||||
|
15 bird
|
||||||
|
16 cat
|
||||||
|
17 dog
|
||||||
|
18 horse
|
||||||
|
19 sheep
|
||||||
|
20 cow
|
||||||
|
21 elephant
|
||||||
|
22 bear
|
||||||
|
23 zebra
|
||||||
|
24 giraffe
|
||||||
|
25 hat
|
||||||
|
26 backpack
|
||||||
|
27 umbrella
|
||||||
|
28 shoe
|
||||||
|
29 eye glasses
|
||||||
|
30 handbag
|
||||||
|
31 tie
|
||||||
|
32 suitcase
|
||||||
|
33 frisbee
|
||||||
|
34 skis
|
||||||
|
35 snowboard
|
||||||
|
36 sports ball
|
||||||
|
37 kite
|
||||||
|
38 baseball bat
|
||||||
|
39 baseball glove
|
||||||
|
40 skateboard
|
||||||
|
41 surfboard
|
||||||
|
42 tennis racket
|
||||||
|
43 bottle
|
||||||
|
44 plate
|
||||||
|
45 wine glass
|
||||||
|
46 cup
|
||||||
|
47 fork
|
||||||
|
48 knife
|
||||||
|
49 spoon
|
||||||
|
50 bowl
|
||||||
|
51 banana
|
||||||
|
52 apple
|
||||||
|
53 sandwich
|
||||||
|
54 orange
|
||||||
|
55 broccoli
|
||||||
|
56 carrot
|
||||||
|
57 hot dog
|
||||||
|
58 pizza
|
||||||
|
59 donut
|
||||||
|
60 cake
|
||||||
|
61 chair
|
||||||
|
62 couch
|
||||||
|
63 potted plant
|
||||||
|
64 bed
|
||||||
|
65 mirror
|
||||||
|
66 dining table
|
||||||
|
67 window
|
||||||
|
68 desk
|
||||||
|
69 toilet
|
||||||
|
70 door
|
||||||
|
71 tv
|
||||||
|
72 laptop
|
||||||
|
73 mouse
|
||||||
|
74 remote
|
||||||
|
75 keyboard
|
||||||
|
76 cell phone
|
||||||
|
77 microwave
|
||||||
|
78 oven
|
||||||
|
79 toaster
|
||||||
|
80 sink
|
||||||
|
81 refrigerator
|
||||||
|
82 blender
|
||||||
|
83 book
|
||||||
|
84 clock
|
||||||
|
85 vase
|
||||||
|
86 scissors
|
||||||
|
87 teddy bear
|
||||||
|
88 hair drier
|
||||||
|
89 toothbrush
|
||||||
|
90 hair brush
|
||||||
@@ -2,28 +2,32 @@
|
|||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import yaml
|
from ruamel.yaml import YAML
|
||||||
|
|
||||||
sys.path.insert(0, "/opt/frigate")
|
sys.path.insert(0, "/opt/frigate")
|
||||||
from frigate.const import BIRDSEYE_PIPE # noqa: E402
|
from frigate.const import (
|
||||||
from frigate.ffmpeg_presets import ( # noqa: E402
|
BIRDSEYE_PIPE,
|
||||||
parse_preset_hardware_acceleration_encode,
|
DEFAULT_FFMPEG_VERSION,
|
||||||
|
INCLUDED_FFMPEG_VERSIONS,
|
||||||
)
|
)
|
||||||
|
from frigate.ffmpeg_presets import parse_preset_hardware_acceleration_encode
|
||||||
|
|
||||||
sys.path.remove("/opt/frigate")
|
sys.path.remove("/opt/frigate")
|
||||||
|
|
||||||
|
yaml = YAML()
|
||||||
|
|
||||||
FRIGATE_ENV_VARS = {k: v for k, v in os.environ.items() if k.startswith("FRIGATE_")}
|
FRIGATE_ENV_VARS = {k: v for k, v in os.environ.items() if k.startswith("FRIGATE_")}
|
||||||
# read docker secret files as env vars too
|
# read docker secret files as env vars too
|
||||||
if os.path.isdir("/run/secrets"):
|
if os.path.isdir("/run/secrets"):
|
||||||
for secret_file in os.listdir("/run/secrets"):
|
for secret_file in os.listdir("/run/secrets"):
|
||||||
if secret_file.startswith("FRIGATE_"):
|
if secret_file.startswith("FRIGATE_"):
|
||||||
FRIGATE_ENV_VARS[secret_file] = Path(
|
FRIGATE_ENV_VARS[secret_file] = (
|
||||||
os.path.join("/run/secrets", secret_file)
|
Path(os.path.join("/run/secrets", secret_file)).read_text().strip()
|
||||||
).read_text()
|
)
|
||||||
|
|
||||||
config_file = os.environ.get("CONFIG_FILE", "/config/config.yml")
|
config_file = os.environ.get("CONFIG_FILE", "/config/config.yml")
|
||||||
|
|
||||||
@@ -37,7 +41,7 @@ try:
|
|||||||
raw_config = f.read()
|
raw_config = f.read()
|
||||||
|
|
||||||
if config_file.endswith((".yaml", ".yml")):
|
if config_file.endswith((".yaml", ".yml")):
|
||||||
config: dict[str, any] = yaml.safe_load(raw_config)
|
config: dict[str, any] = yaml.load(raw_config)
|
||||||
elif config_file.endswith(".json"):
|
elif config_file.endswith(".json"):
|
||||||
config: dict[str, any] = json.loads(raw_config)
|
config: dict[str, any] = json.loads(raw_config)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
@@ -105,16 +109,32 @@ else:
|
|||||||
**FRIGATE_ENV_VARS
|
**FRIGATE_ENV_VARS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# ensure ffmpeg path is set correctly
|
||||||
|
path = config.get("ffmpeg", {}).get("path", "default")
|
||||||
|
if path == "default":
|
||||||
|
if shutil.which("ffmpeg") is None:
|
||||||
|
ffmpeg_path = f"/usr/lib/ffmpeg/{DEFAULT_FFMPEG_VERSION}/bin/ffmpeg"
|
||||||
|
else:
|
||||||
|
ffmpeg_path = "ffmpeg"
|
||||||
|
elif path in INCLUDED_FFMPEG_VERSIONS:
|
||||||
|
ffmpeg_path = f"/usr/lib/ffmpeg/{path}/bin/ffmpeg"
|
||||||
|
else:
|
||||||
|
ffmpeg_path = f"{path}/bin/ffmpeg"
|
||||||
|
|
||||||
|
if go2rtc_config.get("ffmpeg") is None:
|
||||||
|
go2rtc_config["ffmpeg"] = {"bin": ffmpeg_path}
|
||||||
|
elif go2rtc_config["ffmpeg"].get("bin") is None:
|
||||||
|
go2rtc_config["ffmpeg"]["bin"] = ffmpeg_path
|
||||||
|
|
||||||
# need to replace ffmpeg command when using ffmpeg4
|
# need to replace ffmpeg command when using ffmpeg4
|
||||||
if int(os.environ["LIBAVFORMAT_VERSION_MAJOR"]) < 59:
|
if int(os.environ.get("LIBAVFORMAT_VERSION_MAJOR", "59") or "59") < 59:
|
||||||
if go2rtc_config.get("ffmpeg") is None:
|
if go2rtc_config["ffmpeg"].get("rtsp") is None:
|
||||||
go2rtc_config["ffmpeg"] = {
|
|
||||||
"rtsp": "-fflags nobuffer -flags low_delay -stimeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i {input}"
|
|
||||||
}
|
|
||||||
elif go2rtc_config["ffmpeg"].get("rtsp") is None:
|
|
||||||
go2rtc_config["ffmpeg"]["rtsp"] = (
|
go2rtc_config["ffmpeg"]["rtsp"] = (
|
||||||
"-fflags nobuffer -flags low_delay -stimeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i {input}"
|
"-fflags nobuffer -flags low_delay -stimeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i {input}"
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
if go2rtc_config.get("ffmpeg") is None:
|
||||||
|
go2rtc_config["ffmpeg"] = {"path": ""}
|
||||||
|
|
||||||
for name in go2rtc_config.get("streams", {}):
|
for name in go2rtc_config.get("streams", {}):
|
||||||
stream = go2rtc_config["streams"][name]
|
stream = go2rtc_config["streams"][name]
|
||||||
@@ -145,7 +165,7 @@ if config.get("birdseye", {}).get("restream", False):
|
|||||||
birdseye: dict[str, any] = config.get("birdseye")
|
birdseye: dict[str, any] = config.get("birdseye")
|
||||||
|
|
||||||
input = f"-f rawvideo -pix_fmt yuv420p -video_size {birdseye.get('width', 1280)}x{birdseye.get('height', 720)} -r 10 -i {BIRDSEYE_PIPE}"
|
input = f"-f rawvideo -pix_fmt yuv420p -video_size {birdseye.get('width', 1280)}x{birdseye.get('height', 720)} -r 10 -i {BIRDSEYE_PIPE}"
|
||||||
ffmpeg_cmd = f"exec:{parse_preset_hardware_acceleration_encode(config.get('ffmpeg', {}).get('hwaccel_args'), input, '-rtsp_transport tcp -f rtsp {output}')}"
|
ffmpeg_cmd = f"exec:{parse_preset_hardware_acceleration_encode(ffmpeg_path, config.get('ffmpeg', {}).get('hwaccel_args', ''), input, '-rtsp_transport tcp -f rtsp {output}')}"
|
||||||
|
|
||||||
if go2rtc_config.get("streams"):
|
if go2rtc_config.get("streams"):
|
||||||
go2rtc_config["streams"]["birdseye"] = ffmpeg_cmd
|
go2rtc_config["streams"]["birdseye"] = ffmpeg_cmd
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
upstream go2rtc {
|
||||||
|
server 127.0.0.1:1984;
|
||||||
|
keepalive 1024;
|
||||||
|
}
|
||||||
@@ -56,16 +56,10 @@ http {
|
|||||||
keepalive 1024;
|
keepalive 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream go2rtc {
|
include go2rtc_upstream.conf;
|
||||||
server 127.0.0.1:1984;
|
|
||||||
keepalive 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
# intended for external traffic, protected by auth
|
include listen.conf;
|
||||||
listen [::]:8080 ipv6only=off;
|
|
||||||
# intended for internal traffic, not protected by auth
|
|
||||||
listen [::]:5000 ipv6only=off;
|
|
||||||
|
|
||||||
# vod settings
|
# vod settings
|
||||||
vod_base_url '';
|
vod_base_url '';
|
||||||
@@ -110,6 +104,8 @@ http {
|
|||||||
|
|
||||||
add_header Cache-Control "no-store";
|
add_header Cache-Control "no-store";
|
||||||
expires off;
|
expires off;
|
||||||
|
|
||||||
|
keepalive_disable safari;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /stream/ {
|
location /stream/ {
|
||||||
@@ -134,6 +130,8 @@ http {
|
|||||||
image/jpeg jpg;
|
image/jpeg jpg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
expires 7d;
|
||||||
|
add_header Cache-Control "public";
|
||||||
autoindex on;
|
autoindex on;
|
||||||
root /media/frigate;
|
root /media/frigate;
|
||||||
}
|
}
|
||||||
@@ -228,7 +226,7 @@ http {
|
|||||||
|
|
||||||
location ~* /api/.*\.(jpg|jpeg|png|webp|gif)$ {
|
location ~* /api/.*\.(jpg|jpeg|png|webp|gif)$ {
|
||||||
include auth_request.conf;
|
include auth_request.conf;
|
||||||
rewrite ^/api/(.*)$ $1 break;
|
rewrite ^/api/(.*)$ /$1 break;
|
||||||
proxy_pass http://frigate_api;
|
proxy_pass http://frigate_api;
|
||||||
include proxy.conf;
|
include proxy.conf;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# Header used to validate reverse proxy trust
|
||||||
|
proxy_set_header X-Proxy-Secret $http_x_proxy_secret;
|
||||||
|
|
||||||
# these headers will be copied to the /auth request and are available
|
# these headers will be copied to the /auth request and are available
|
||||||
# to be mapped in the config to Frigate's remote-user header
|
# to be mapped in the config to Frigate's remote-user header
|
||||||
|
|
||||||
@@ -19,4 +22,4 @@ proxy_set_header X-authentik-username $http_x_authentik_username;
|
|||||||
proxy_set_header X-authentik-groups $http_x_authentik_groups;
|
proxy_set_header X-authentik-groups $http_x_authentik_groups;
|
||||||
proxy_set_header X-authentik-email $http_x_authentik_email;
|
proxy_set_header X-authentik-email $http_x_authentik_email;
|
||||||
proxy_set_header X-authentik-name $http_x_authentik_name;
|
proxy_set_header X-authentik-name $http_x_authentik_name;
|
||||||
proxy_set_header X-authentik-uid $http_x_authentik_uid;
|
proxy_set_header X-authentik-uid $http_x_authentik_uid;
|
||||||
|
|||||||
30
docker/main/rootfs/usr/local/nginx/get_tls_settings.py
Normal file
30
docker/main/rootfs/usr/local/nginx/get_tls_settings.py
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
"""Prints the tls config as json to stdout."""
|
||||||
|
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
|
||||||
|
from ruamel.yaml import YAML
|
||||||
|
|
||||||
|
yaml = YAML()
|
||||||
|
|
||||||
|
config_file = os.environ.get("CONFIG_FILE", "/config/config.yml")
|
||||||
|
|
||||||
|
# Check if we can use .yaml instead of .yml
|
||||||
|
config_file_yaml = config_file.replace(".yml", ".yaml")
|
||||||
|
if os.path.isfile(config_file_yaml):
|
||||||
|
config_file = config_file_yaml
|
||||||
|
|
||||||
|
try:
|
||||||
|
with open(config_file) as f:
|
||||||
|
raw_config = f.read()
|
||||||
|
|
||||||
|
if config_file.endswith((".yaml", ".yml")):
|
||||||
|
config: dict[str, any] = yaml.load(raw_config)
|
||||||
|
elif config_file.endswith(".json"):
|
||||||
|
config: dict[str, any] = json.loads(raw_config)
|
||||||
|
except FileNotFoundError:
|
||||||
|
config: dict[str, any] = {}
|
||||||
|
|
||||||
|
tls_config: dict[str, any] = config.get("tls", {"enabled": True})
|
||||||
|
|
||||||
|
print(json.dumps(tls_config))
|
||||||
33
docker/main/rootfs/usr/local/nginx/templates/listen.gotmpl
Normal file
33
docker/main/rootfs/usr/local/nginx/templates/listen.gotmpl
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# intended for internal traffic, not protected by auth
|
||||||
|
listen 5000;
|
||||||
|
|
||||||
|
{{ if not .enabled }}
|
||||||
|
# intended for external traffic, protected by auth
|
||||||
|
listen 8971;
|
||||||
|
{{ else }}
|
||||||
|
# intended for external traffic, protected by auth
|
||||||
|
listen 8971 ssl;
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/frigate/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/frigate/privkey.pem;
|
||||||
|
|
||||||
|
# generated 2024-06-01, Mozilla Guideline v5.7, nginx 1.25.3, OpenSSL 1.1.1w, modern configuration, no OCSP
|
||||||
|
# https://ssl-config.mozilla.org/#server=nginx&version=1.25.3&config=modern&openssl=1.1.1w&ocsp=false&guideline=5.7
|
||||||
|
ssl_session_timeout 1d;
|
||||||
|
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
|
||||||
|
ssl_session_tickets off;
|
||||||
|
|
||||||
|
# modern configuration
|
||||||
|
ssl_protocols TLSv1.3;
|
||||||
|
ssl_prefer_server_ciphers off;
|
||||||
|
|
||||||
|
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
|
||||||
|
add_header Strict-Transport-Security "max-age=63072000" always;
|
||||||
|
|
||||||
|
# ACME challenge location
|
||||||
|
location /.well-known/acme-challenge/ {
|
||||||
|
default_type "text/plain";
|
||||||
|
root /etc/letsencrypt/www;
|
||||||
|
}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
@@ -22,5 +22,6 @@ ADD https://github.com/MarcA711/rknn-toolkit2/releases/download/v2.0.0/librknnrt
|
|||||||
|
|
||||||
RUN rm -rf /usr/lib/btbn-ffmpeg/bin/ffmpeg
|
RUN rm -rf /usr/lib/btbn-ffmpeg/bin/ffmpeg
|
||||||
RUN rm -rf /usr/lib/btbn-ffmpeg/bin/ffprobe
|
RUN rm -rf /usr/lib/btbn-ffmpeg/bin/ffprobe
|
||||||
ADD --chmod=111 https://github.com/MarcA711/Rockchip-FFmpeg-Builds/releases/download/6.1-3/ffmpeg /usr/lib/btbn-ffmpeg/bin/
|
ADD --chmod=111 https://github.com/MarcA711/Rockchip-FFmpeg-Builds/releases/download/6.1-5/ffmpeg /usr/lib/ffmpeg/6.0/bin/
|
||||||
ADD --chmod=111 https://github.com/MarcA711/Rockchip-FFmpeg-Builds/releases/download/6.1-3/ffprobe /usr/lib/btbn-ffmpeg/bin/
|
ADD --chmod=111 https://github.com/MarcA711/Rockchip-FFmpeg-Builds/releases/download/6.1-5/ffprobe /usr/lib/ffmpeg/6.0/bin/
|
||||||
|
ENV PATH="/usr/lib/ffmpeg/6.0/bin/:${PATH}"
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
BOARDS += rk
|
BOARDS += rk
|
||||||
|
|
||||||
local-rk: version
|
local-rk: version
|
||||||
docker buildx bake --load --file=docker/rockchip/rk.hcl --set rk.tags=frigate:latest-rk rk
|
docker buildx bake --file=docker/rockchip/rk.hcl rk \
|
||||||
|
--set rk.tags=frigate:latest-rk \
|
||||||
|
--load
|
||||||
|
|
||||||
build-rk: version
|
build-rk: version
|
||||||
docker buildx bake --file=docker/rockchip/rk.hcl --set rk.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rk rk
|
docker buildx bake --file=docker/rockchip/rk.hcl rk \
|
||||||
|
--set rk.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rk
|
||||||
|
|
||||||
push-rk: build-rk
|
push-rk: build-rk
|
||||||
docker buildx bake --push --file=docker/rockchip/rk.hcl --set rk.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rk rk
|
docker buildx bake --file=docker/rockchip/rk.hcl rk \
|
||||||
|
--set rk.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rk \
|
||||||
|
--push
|
||||||
@@ -23,11 +23,11 @@ COPY docker/rocm/rocm-pin-600 /etc/apt/preferences.d/
|
|||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
||||||
RUN apt-get -y install --no-install-recommends migraphx
|
RUN apt-get -y install --no-install-recommends migraphx hipfft roctracer
|
||||||
RUN apt-get -y install --no-install-recommends migraphx-dev
|
RUN apt-get -y install --no-install-recommends migraphx-dev
|
||||||
|
|
||||||
RUN mkdir -p /opt/rocm-dist/opt/rocm-$ROCM/lib
|
RUN mkdir -p /opt/rocm-dist/opt/rocm-$ROCM/lib
|
||||||
RUN cd /opt/rocm-$ROCM/lib && cp -dpr libMIOpen*.so* libamd*.so* libhip*.so* libhsa*.so* libmigraphx*.so* librocm*.so* librocblas*.so* /opt/rocm-dist/opt/rocm-$ROCM/lib/
|
RUN cd /opt/rocm-$ROCM/lib && cp -dpr libMIOpen*.so* libamd*.so* libhip*.so* libhsa*.so* libmigraphx*.so* librocm*.so* librocblas*.so* libroctracer*.so* librocfft*.so* /opt/rocm-dist/opt/rocm-$ROCM/lib/
|
||||||
RUN cd /opt/rocm-dist/opt/ && ln -s rocm-$ROCM rocm
|
RUN cd /opt/rocm-dist/opt/ && ln -s rocm-$ROCM rocm
|
||||||
|
|
||||||
RUN mkdir -p /opt/rocm-dist/etc/ld.so.conf.d/
|
RUN mkdir -p /opt/rocm-dist/etc/ld.so.conf.d/
|
||||||
@@ -69,7 +69,11 @@ RUN apt-get -y install libnuma1
|
|||||||
|
|
||||||
WORKDIR /opt/frigate/
|
WORKDIR /opt/frigate/
|
||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
COPY docker/rocm/rootfs/ /
|
|
||||||
|
COPY docker/rocm/requirements-wheels-rocm.txt /requirements.txt
|
||||||
|
RUN python3 -m pip install --upgrade pip \
|
||||||
|
&& pip3 uninstall -y onnxruntime-openvino \
|
||||||
|
&& pip3 install -r /requirements.txt
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
FROM scratch AS rocm-dist
|
FROM scratch AS rocm-dist
|
||||||
@@ -79,6 +83,7 @@ ARG AMDGPU
|
|||||||
|
|
||||||
COPY --from=rocm /opt/rocm-$ROCM/bin/rocminfo /opt/rocm-$ROCM/bin/migraphx-driver /opt/rocm-$ROCM/bin/
|
COPY --from=rocm /opt/rocm-$ROCM/bin/rocminfo /opt/rocm-$ROCM/bin/migraphx-driver /opt/rocm-$ROCM/bin/
|
||||||
COPY --from=rocm /opt/rocm-$ROCM/share/miopen/db/*$AMDGPU* /opt/rocm-$ROCM/share/miopen/db/
|
COPY --from=rocm /opt/rocm-$ROCM/share/miopen/db/*$AMDGPU* /opt/rocm-$ROCM/share/miopen/db/
|
||||||
|
COPY --from=rocm /opt/rocm-$ROCM/share/miopen/db/*gfx908* /opt/rocm-$ROCM/share/miopen/db/
|
||||||
COPY --from=rocm /opt/rocm-$ROCM/lib/rocblas/library/*$AMDGPU* /opt/rocm-$ROCM/lib/rocblas/library/
|
COPY --from=rocm /opt/rocm-$ROCM/lib/rocblas/library/*$AMDGPU* /opt/rocm-$ROCM/lib/rocblas/library/
|
||||||
COPY --from=rocm /opt/rocm-dist/ /
|
COPY --from=rocm /opt/rocm-dist/ /
|
||||||
COPY --from=debian-build /opt/rocm/lib/migraphx.cpython-39-x86_64-linux-gnu.so /opt/rocm-$ROCM/lib/
|
COPY --from=debian-build /opt/rocm/lib/migraphx.cpython-39-x86_64-linux-gnu.so /opt/rocm-$ROCM/lib/
|
||||||
@@ -101,6 +106,3 @@ ENV HSA_OVERRIDE_GFX_VERSION=$HSA_OVERRIDE_GFX_VERSION
|
|||||||
#######################################################################
|
#######################################################################
|
||||||
FROM rocm-prelim-hsa-override$HSA_OVERRIDE as rocm-deps
|
FROM rocm-prelim-hsa-override$HSA_OVERRIDE as rocm-deps
|
||||||
|
|
||||||
# Request yolov8 download at startup
|
|
||||||
ENV DOWNLOAD_YOLOV8=1
|
|
||||||
|
|
||||||
|
|||||||
1
docker/rocm/requirements-wheels-rocm.txt
Normal file
1
docker/rocm/requirements-wheels-rocm.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
onnxruntime-rocm @ https://github.com/NickM-27/frigate-onnxruntime-rocm/releases/download/v1.0.0/onnxruntime_rocm-1.17.3-cp39-cp39-linux_x86_64.whl
|
||||||
@@ -4,14 +4,50 @@ BOARDS += rocm
|
|||||||
ROCM_CHIPSETS:=gfx900:9.0.0 gfx1030:10.3.0 gfx1100:11.0.0
|
ROCM_CHIPSETS:=gfx900:9.0.0 gfx1030:10.3.0 gfx1100:11.0.0
|
||||||
|
|
||||||
local-rocm: version
|
local-rocm: version
|
||||||
$(foreach chipset,$(ROCM_CHIPSETS),AMDGPU=$(word 1,$(subst :, ,$(chipset))) HSA_OVERRIDE_GFX_VERSION=$(word 2,$(subst :, ,$(chipset))) HSA_OVERRIDE=1 docker buildx bake --load --file=docker/rocm/rocm.hcl --set rocm.tags=frigate:latest-rocm-$(word 1,$(subst :, ,$(chipset))) rocm;)
|
$(foreach chipset,$(ROCM_CHIPSETS), \
|
||||||
unset HSA_OVERRIDE_GFX_VERSION && HSA_OVERRIDE=0 AMDGPU=gfx docker buildx bake --load --file=docker/rocm/rocm.hcl --set rocm.tags=frigate:latest-rocm rocm
|
AMDGPU=$(word 1,$(subst :, ,$(chipset))) \
|
||||||
|
HSA_OVERRIDE_GFX_VERSION=$(word 2,$(subst :, ,$(chipset))) \
|
||||||
|
HSA_OVERRIDE=1 \
|
||||||
|
docker buildx bake --file=docker/rocm/rocm.hcl rocm \
|
||||||
|
--set rocm.tags=frigate:latest-rocm-$(word 1,$(subst :, ,$(chipset))) \
|
||||||
|
--load \
|
||||||
|
&&) true
|
||||||
|
|
||||||
|
unset HSA_OVERRIDE_GFX_VERSION && \
|
||||||
|
HSA_OVERRIDE=0 \
|
||||||
|
AMDGPU=gfx \
|
||||||
|
docker buildx bake --file=docker/rocm/rocm.hcl rocm \
|
||||||
|
--set rocm.tags=frigate:latest-rocm \
|
||||||
|
--load
|
||||||
|
|
||||||
build-rocm: version
|
build-rocm: version
|
||||||
$(foreach chipset,$(ROCM_CHIPSETS),AMDGPU=$(word 1,$(subst :, ,$(chipset))) HSA_OVERRIDE_GFX_VERSION=$(word 2,$(subst :, ,$(chipset))) HSA_OVERRIDE=1 docker buildx bake --file=docker/rocm/rocm.hcl --set rocm.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rocm-$(chipset) rocm;)
|
$(foreach chipset,$(ROCM_CHIPSETS), \
|
||||||
unset HSA_OVERRIDE_GFX_VERSION && HSA_OVERRIDE=0 AMDGPU=gfx docker buildx bake --file=docker/rocm/rocm.hcl --set rocm.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rocm rocm
|
AMDGPU=$(word 1,$(subst :, ,$(chipset))) \
|
||||||
|
HSA_OVERRIDE_GFX_VERSION=$(word 2,$(subst :, ,$(chipset))) \
|
||||||
|
HSA_OVERRIDE=1 \
|
||||||
|
docker buildx bake --file=docker/rocm/rocm.hcl rocm \
|
||||||
|
--set rocm.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rocm-$(chipset) \
|
||||||
|
&&) true
|
||||||
|
|
||||||
|
unset HSA_OVERRIDE_GFX_VERSION && \
|
||||||
|
HSA_OVERRIDE=0 \
|
||||||
|
AMDGPU=gfx \
|
||||||
|
docker buildx bake --file=docker/rocm/rocm.hcl rocm \
|
||||||
|
--set rocm.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rocm
|
||||||
|
|
||||||
push-rocm: build-rocm
|
push-rocm: build-rocm
|
||||||
$(foreach chipset,$(ROCM_CHIPSETS),AMDGPU=$(word 1,$(subst :, ,$(chipset))) HSA_OVERRIDE_GFX_VERSION=$(word 2,$(subst :, ,$(chipset))) HSA_OVERRIDE=1 docker buildx bake --push --file=docker/rocm/rocm.hcl --set rocm.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rocm-$(chipset) rocm;)
|
$(foreach chipset,$(ROCM_CHIPSETS), \
|
||||||
unset HSA_OVERRIDE_GFX_VERSION && HSA_OVERRIDE=0 AMDGPU=gfx docker buildx bake --push --file=docker/rocm/rocm.hcl --set rocm.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rocm rocm
|
AMDGPU=$(word 1,$(subst :, ,$(chipset))) \
|
||||||
|
HSA_OVERRIDE_GFX_VERSION=$(word 2,$(subst :, ,$(chipset))) \
|
||||||
|
HSA_OVERRIDE=1 \
|
||||||
|
docker buildx bake --file=docker/rocm/rocm.hcl rocm \
|
||||||
|
--set rocm.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rocm-$(chipset) \
|
||||||
|
--push \
|
||||||
|
&&) true
|
||||||
|
|
||||||
|
unset HSA_OVERRIDE_GFX_VERSION && \
|
||||||
|
HSA_OVERRIDE=0 \
|
||||||
|
AMDGPU=gfx \
|
||||||
|
docker buildx bake --file=docker/rocm/rocm.hcl rocm \
|
||||||
|
--set rocm.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rocm \
|
||||||
|
--push
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/command/with-contenv bash
|
|
||||||
# shellcheck shell=bash
|
|
||||||
# Compile YoloV8 ONNX files into ROCm MIGraphX files
|
|
||||||
|
|
||||||
OVERRIDE=$(cd /opt/frigate && python3 -c 'import frigate.detectors.plugins.rocm as rocm; print(rocm.auto_override_gfx_version())')
|
|
||||||
|
|
||||||
if ! test -z "$OVERRIDE"; then
|
|
||||||
echo "Using HSA_OVERRIDE_GFX_VERSION=${OVERRIDE}"
|
|
||||||
export HSA_OVERRIDE_GFX_VERSION=$OVERRIDE
|
|
||||||
fi
|
|
||||||
|
|
||||||
for onnx in /config/model_cache/yolov8/*.onnx
|
|
||||||
do
|
|
||||||
mxr="${onnx%.onnx}.mxr"
|
|
||||||
if ! test -f $mxr; then
|
|
||||||
echo "processing $onnx into $mxr"
|
|
||||||
/opt/rocm/bin/migraphx-driver compile $onnx --optimize --gpu --enable-offload-copy --binary -o $mxr
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
oneshot
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/etc/s6-overlay/s6-rc.d/compile-rocm-models/run
|
|
||||||
@@ -12,5 +12,7 @@ RUN rm -rf /usr/lib/btbn-ffmpeg/
|
|||||||
RUN --mount=type=bind,source=docker/rpi/install_deps.sh,target=/deps/install_deps.sh \
|
RUN --mount=type=bind,source=docker/rpi/install_deps.sh,target=/deps/install_deps.sh \
|
||||||
/deps/install_deps.sh
|
/deps/install_deps.sh
|
||||||
|
|
||||||
|
ENV LIBAVFORMAT_VERSION_MAJOR=58
|
||||||
|
|
||||||
WORKDIR /opt/frigate/
|
WORKDIR /opt/frigate/
|
||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
BOARDS += rpi
|
BOARDS += rpi
|
||||||
|
|
||||||
local-rpi: version
|
local-rpi: version
|
||||||
docker buildx bake --load --file=docker/rpi/rpi.hcl --set rpi.tags=frigate:latest-rpi rpi
|
docker buildx bake --file=docker/rpi/rpi.hcl rpi \
|
||||||
|
--set rpi.tags=frigate:latest-rpi \
|
||||||
|
--load
|
||||||
|
|
||||||
build-rpi: version
|
build-rpi: version
|
||||||
docker buildx bake --file=docker/rpi/rpi.hcl --set rpi.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rpi rpi
|
docker buildx bake --file=docker/rpi/rpi.hcl rpi \
|
||||||
|
--set rpi.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rpi
|
||||||
|
|
||||||
push-rpi: build-rpi
|
push-rpi: build-rpi
|
||||||
docker buildx bake --push --file=docker/rpi/rpi.hcl --set rpi.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rpi rpi
|
docker buildx bake --file=docker/rpi/rpi.hcl rpi \
|
||||||
|
--set rpi.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-rpi \
|
||||||
|
--push
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels
|
|||||||
pip3 install -U /deps/trt-wheels/*.whl && \
|
pip3 install -U /deps/trt-wheels/*.whl && \
|
||||||
ldconfig
|
ldconfig
|
||||||
|
|
||||||
|
ENV LD_LIBRARY_PATH=/usr/local/lib/python3.9/dist-packages/tensorrt:/usr/local/cuda/lib64:/usr/local/lib/python3.9/dist-packages/nvidia/cufft/lib
|
||||||
WORKDIR /opt/frigate/
|
WORKDIR /opt/frigate/
|
||||||
COPY --from=rootfs / /
|
COPY --from=rootfs / /
|
||||||
|
|
||||||
@@ -26,6 +27,7 @@ FROM devcontainer AS devcontainer-trt
|
|||||||
|
|
||||||
COPY --from=trt-deps /usr/local/lib/libyolo_layer.so /usr/local/lib/libyolo_layer.so
|
COPY --from=trt-deps /usr/local/lib/libyolo_layer.so /usr/local/lib/libyolo_layer.so
|
||||||
COPY --from=trt-deps /usr/local/src/tensorrt_demos /usr/local/src/tensorrt_demos
|
COPY --from=trt-deps /usr/local/src/tensorrt_demos /usr/local/src/tensorrt_demos
|
||||||
|
COPY --from=trt-deps /usr/local/cuda-12.1 /usr/local/cuda
|
||||||
COPY docker/tensorrt/detector/rootfs/ /
|
COPY docker/tensorrt/detector/rootfs/ /
|
||||||
COPY --from=trt-deps /usr/local/lib/libyolo_layer.so /usr/local/lib/libyolo_layer.so
|
COPY --from=trt-deps /usr/local/lib/libyolo_layer.so /usr/local/lib/libyolo_layer.so
|
||||||
RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels \
|
RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels \
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ ARG DEBIAN_FRONTEND
|
|||||||
# Use a separate container to build wheels to prevent build dependencies in final image
|
# Use a separate container to build wheels to prevent build dependencies in final image
|
||||||
RUN apt-get -qq update \
|
RUN apt-get -qq update \
|
||||||
&& apt-get -qq install -y --no-install-recommends \
|
&& apt-get -qq install -y --no-install-recommends \
|
||||||
python3.9 python3.9-dev \
|
python3.9 python3.9-dev \
|
||||||
wget build-essential cmake git \
|
wget build-essential cmake git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Ensure python3 defaults to python3.9
|
# Ensure python3 defaults to python3.9
|
||||||
@@ -41,7 +41,11 @@ RUN --mount=type=bind,source=docker/tensorrt/detector/build_python_tensorrt.sh,t
|
|||||||
&& TENSORRT_VER=$(cat /etc/TENSORRT_VER) /deps/build_python_tensorrt.sh
|
&& TENSORRT_VER=$(cat /etc/TENSORRT_VER) /deps/build_python_tensorrt.sh
|
||||||
|
|
||||||
COPY docker/tensorrt/requirements-arm64.txt /requirements-tensorrt.txt
|
COPY docker/tensorrt/requirements-arm64.txt /requirements-tensorrt.txt
|
||||||
RUN pip3 wheel --wheel-dir=/trt-wheels -r /requirements-tensorrt.txt
|
ADD https://nvidia.box.com/shared/static/9aemm4grzbbkfaesg5l7fplgjtmswhj8.whl /tmp/onnxruntime_gpu-1.15.1-cp39-cp39-linux_aarch64.whl
|
||||||
|
|
||||||
|
RUN pip3 uninstall -y onnxruntime-openvino \
|
||||||
|
&& pip3 wheel --wheel-dir=/trt-wheels -r /requirements-tensorrt.txt \
|
||||||
|
&& pip3 install --no-deps /tmp/onnxruntime_gpu-1.15.1-cp39-cp39-linux_aarch64.whl
|
||||||
|
|
||||||
FROM build-wheels AS trt-model-wheels
|
FROM build-wheels AS trt-model-wheels
|
||||||
ARG DEBIAN_FRONTEND
|
ARG DEBIAN_FRONTEND
|
||||||
|
|||||||
@@ -24,8 +24,9 @@ ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
|
|||||||
|
|
||||||
COPY --from=trt-deps /usr/local/lib/libyolo_layer.so /usr/local/lib/libyolo_layer.so
|
COPY --from=trt-deps /usr/local/lib/libyolo_layer.so /usr/local/lib/libyolo_layer.so
|
||||||
COPY --from=trt-deps /usr/local/src/tensorrt_demos /usr/local/src/tensorrt_demos
|
COPY --from=trt-deps /usr/local/src/tensorrt_demos /usr/local/src/tensorrt_demos
|
||||||
|
COPY --from=trt-deps /usr/local/cuda-12.* /usr/local/cuda
|
||||||
COPY docker/tensorrt/detector/rootfs/ /
|
COPY docker/tensorrt/detector/rootfs/ /
|
||||||
ENV YOLO_MODELS="yolov7-320"
|
ENV YOLO_MODELS=""
|
||||||
|
|
||||||
HEALTHCHECK --start-period=600s --start-interval=5s --interval=15s --timeout=5s --retries=3 \
|
HEALTHCHECK --start-period=600s --start-interval=5s --interval=15s --timeout=5s --retries=3 \
|
||||||
CMD curl --fail --silent --show-error http://127.0.0.1:5000/api/version || exit 1
|
CMD curl --fail --silent --show-error http://127.0.0.1:5000/api/version || exit 1
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ set -o errexit -o nounset -o pipefail
|
|||||||
MODEL_CACHE_DIR=${MODEL_CACHE_DIR:-"/config/model_cache/tensorrt"}
|
MODEL_CACHE_DIR=${MODEL_CACHE_DIR:-"/config/model_cache/tensorrt"}
|
||||||
TRT_VER=${TRT_VER:-$(cat /etc/TENSORRT_VER)}
|
TRT_VER=${TRT_VER:-$(cat /etc/TENSORRT_VER)}
|
||||||
OUTPUT_FOLDER="${MODEL_CACHE_DIR}/${TRT_VER}"
|
OUTPUT_FOLDER="${MODEL_CACHE_DIR}/${TRT_VER}"
|
||||||
|
YOLO_MODELS=${YOLO_MODELS:-""}
|
||||||
|
|
||||||
# Create output folder
|
# Create output folder
|
||||||
mkdir -p ${OUTPUT_FOLDER}
|
mkdir -p ${OUTPUT_FOLDER}
|
||||||
@@ -19,6 +20,11 @@ FIRST_MODEL=true
|
|||||||
MODEL_DOWNLOAD=""
|
MODEL_DOWNLOAD=""
|
||||||
MODEL_CONVERT=""
|
MODEL_CONVERT=""
|
||||||
|
|
||||||
|
if [ -z "$YOLO_MODELS"]; then
|
||||||
|
echo "tensorrt model preparation disabled"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
for model in ${YOLO_MODELS//,/ }
|
for model in ${YOLO_MODELS//,/ }
|
||||||
do
|
do
|
||||||
# Remove old link in case path/version changed
|
# Remove old link in case path/version changed
|
||||||
|
|||||||
@@ -8,5 +8,7 @@ nvidia-cuda-runtime-cu12 == 12.1.*; platform_machine == 'x86_64'
|
|||||||
nvidia-cuda-runtime-cu11 == 11.8.*; platform_machine == 'x86_64'
|
nvidia-cuda-runtime-cu11 == 11.8.*; platform_machine == 'x86_64'
|
||||||
nvidia-cublas-cu11 == 11.11.3.6; platform_machine == 'x86_64'
|
nvidia-cublas-cu11 == 11.11.3.6; platform_machine == 'x86_64'
|
||||||
nvidia-cudnn-cu11 == 8.6.0.*; platform_machine == 'x86_64'
|
nvidia-cudnn-cu11 == 8.6.0.*; platform_machine == 'x86_64'
|
||||||
onnx==1.14.0; platform_machine == 'x86_64'
|
nvidia-cufft-cu11==10.*; platform_machine == 'x86_64'
|
||||||
protobuf==3.20.3; platform_machine == 'x86_64'
|
onnx==1.16.*; platform_machine == 'x86_64'
|
||||||
|
onnxruntime-gpu==1.18.*; platform_machine == 'x86_64'
|
||||||
|
protobuf==3.20.3; platform_machine == 'x86_64'
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
cuda-python == 11.7; platform_machine == 'aarch64'
|
cuda-python == 11.7; platform_machine == 'aarch64'
|
||||||
@@ -7,20 +7,35 @@ JETPACK4_ARGS := ARCH=arm64 BASE_IMAGE=$(JETPACK4_BASE) SLIM_BASE=$(JETPACK4_BAS
|
|||||||
JETPACK5_ARGS := ARCH=arm64 BASE_IMAGE=$(JETPACK5_BASE) SLIM_BASE=$(JETPACK5_BASE) TRT_BASE=$(JETPACK5_BASE)
|
JETPACK5_ARGS := ARCH=arm64 BASE_IMAGE=$(JETPACK5_BASE) SLIM_BASE=$(JETPACK5_BASE) TRT_BASE=$(JETPACK5_BASE)
|
||||||
|
|
||||||
local-trt: version
|
local-trt: version
|
||||||
$(X86_DGPU_ARGS) docker buildx bake --load --file=docker/tensorrt/trt.hcl --set tensorrt.tags=frigate:latest-tensorrt tensorrt
|
$(X86_DGPU_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
||||||
|
--set tensorrt.tags=frigate:latest-tensorrt \
|
||||||
|
--load
|
||||||
|
|
||||||
local-trt-jp4: version
|
local-trt-jp4: version
|
||||||
$(JETPACK4_ARGS) docker buildx bake --load --file=docker/tensorrt/trt.hcl --set tensorrt.tags=frigate:latest-tensorrt-jp4 tensorrt
|
$(JETPACK4_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
||||||
|
--set tensorrt.tags=frigate:latest-tensorrt-jp4 \
|
||||||
|
--load
|
||||||
|
|
||||||
local-trt-jp5: version
|
local-trt-jp5: version
|
||||||
$(JETPACK5_ARGS) docker buildx bake --load --file=docker/tensorrt/trt.hcl --set tensorrt.tags=frigate:latest-tensorrt-jp5 tensorrt
|
$(JETPACK5_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
||||||
|
--set tensorrt.tags=frigate:latest-tensorrt-jp5 \
|
||||||
|
--load
|
||||||
|
|
||||||
build-trt:
|
build-trt:
|
||||||
$(X86_DGPU_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl --set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt tensorrt
|
$(X86_DGPU_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
||||||
$(JETPACK4_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl --set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp4 tensorrt
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt
|
||||||
$(JETPACK5_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl --set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp5 tensorrt
|
$(JETPACK4_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
||||||
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp4
|
||||||
|
$(JETPACK5_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
||||||
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp5
|
||||||
|
|
||||||
push-trt: build-trt
|
push-trt: build-trt
|
||||||
$(X86_DGPU_ARGS) docker buildx bake --push --file=docker/tensorrt/trt.hcl --set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt tensorrt
|
$(X86_DGPU_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
||||||
$(JETPACK4_ARGS) docker buildx bake --push --file=docker/tensorrt/trt.hcl --set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp4 tensorrt
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt \
|
||||||
$(JETPACK5_ARGS) docker buildx bake --push --file=docker/tensorrt/trt.hcl --set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp5 tensorrt
|
--push
|
||||||
|
$(JETPACK4_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
||||||
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp4 \
|
||||||
|
--push
|
||||||
|
$(JETPACK5_ARGS) docker buildx bake --file=docker/tensorrt/trt.hcl tensorrt \
|
||||||
|
--set tensorrt.tags=$(IMAGE_REPO):${GITHUB_REF_NAME}-$(COMMIT_HASH)-tensorrt-jp5 \
|
||||||
|
--push
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# Website
|
# Website
|
||||||
|
|
||||||
This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern static website generator.
|
This website is built using [Docusaurus 3.5](https://docusaurus.io/docs), a modern static website generator.
|
||||||
|
|
||||||
For installation and contributing instructions, please follow the [Contributing Docs](https://docs.frigate.video/development/contributing).
|
For installation and contributing instructions, please follow the [Contributing Docs](https://docs.frigate.video/development/contributing).
|
||||||
|
|
||||||
|
# Development
|
||||||
|
|
||||||
|
1. Run `npm i` to install dependencies
|
||||||
|
2. Run `npm run start` to start the website
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ environment_vars:
|
|||||||
|
|
||||||
### `database`
|
### `database`
|
||||||
|
|
||||||
Event and recording information is managed in a sqlite database at `/config/frigate.db`. If that database is deleted, recordings will be orphaned and will need to be cleaned up manually. They also won't show up in the Media Browser within Home Assistant.
|
Tracked object and recording information is managed in a sqlite database at `/config/frigate.db`. If that database is deleted, recordings will be orphaned and will need to be cleaned up manually. They also won't show up in the Media Browser within Home Assistant.
|
||||||
|
|
||||||
If you are storing your database on a network share (SMB, NFS, etc), you may get a `database is locked` error message on startup. You can customize the location of the database in the config if necessary.
|
If you are storing your database on a network share (SMB, NFS, etc), you may get a `database is locked` error message on startup. You can customize the location of the database in the config if necessary.
|
||||||
|
|
||||||
@@ -80,6 +80,14 @@ model:
|
|||||||
input_pixel_format: "bgr"
|
input_pixel_format: "bgr"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### `labelmap`
|
||||||
|
|
||||||
|
:::warning
|
||||||
|
|
||||||
|
If the labelmap is customized then the labels used for alerts will need to be adjusted as well. See [alert labels](../configuration/review.md#restricting-alerts-to-specific-labels) for more info.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
The labelmap can be customized to your needs. A common reason to do this is to combine multiple object types that are easily confused when you don't need to be as granular such as car/truck. By default, truck is renamed to car because they are often confused. You cannot add new object types, but you can change the names of existing objects in the model.
|
The labelmap can be customized to your needs. A common reason to do this is to combine multiple object types that are easily confused when you don't need to be as granular such as car/truck. By default, truck is renamed to car because they are often confused. You cannot add new object types, but you can change the names of existing objects in the model.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -106,19 +114,65 @@ Some labels have special handling and modifications can disable functionality.
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## Custom ffmpeg build
|
## Network Configuration
|
||||||
|
|
||||||
Included with Frigate is a build of ffmpeg that works for the vast majority of users. However, there exists some hardware setups which have incompatibilities with the included build. In this case, a docker volume mapping can be used to overwrite the included ffmpeg build with an ffmpeg build that works for your specific hardware setup.
|
Changes to Frigate's internal network configuration can be made by bind mounting nginx.conf into the container. For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
frigate:
|
||||||
|
container_name: frigate
|
||||||
|
...
|
||||||
|
volumes:
|
||||||
|
...
|
||||||
|
- /path/to/your/nginx.conf:/usr/local/nginx/conf/nginx.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
### Enabling IPv6
|
||||||
|
|
||||||
|
IPv6 is disabled by default, to enable IPv6 listen.gotmpl needs to be bind mounted with IPv6 enabled. For example:
|
||||||
|
|
||||||
|
```
|
||||||
|
{{ if not .enabled }}
|
||||||
|
# intended for external traffic, protected by auth
|
||||||
|
listen 8971;
|
||||||
|
{{ else }}
|
||||||
|
# intended for external traffic, protected by auth
|
||||||
|
listen 8971 ssl;
|
||||||
|
|
||||||
|
# intended for internal traffic, not protected by auth
|
||||||
|
listen 5000;
|
||||||
|
```
|
||||||
|
|
||||||
|
becomes
|
||||||
|
|
||||||
|
```
|
||||||
|
{{ if not .enabled }}
|
||||||
|
# intended for external traffic, protected by auth
|
||||||
|
listen [::]:8971 ipv6only=off;
|
||||||
|
{{ else }}
|
||||||
|
# intended for external traffic, protected by auth
|
||||||
|
listen [::]:8971 ipv6only=off ssl;
|
||||||
|
|
||||||
|
# intended for internal traffic, not protected by auth
|
||||||
|
listen [::]:5000 ipv6only=off;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Custom Dependencies
|
||||||
|
|
||||||
|
### Custom ffmpeg build
|
||||||
|
|
||||||
|
Included with Frigate is a build of ffmpeg that works for the vast majority of users. However, there exists some hardware setups which have incompatibilities with the included build. In this case, statically built ffmpeg binary can be downloaded to /config and used.
|
||||||
|
|
||||||
To do this:
|
To do this:
|
||||||
|
|
||||||
1. Download your ffmpeg build and uncompress to a folder on the host (let's use `/home/appdata/frigate/custom-ffmpeg` for this example).
|
1. Download your ffmpeg build and uncompress to the Frigate config folder.
|
||||||
2. Update your docker-compose or docker CLI to include `'/home/appdata/frigate/custom-ffmpeg':'/usr/lib/btbn-ffmpeg':'ro'` in the volume mappings.
|
2. Update your docker-compose or docker CLI to include `'/home/appdata/frigate/custom-ffmpeg':'/usr/lib/btbn-ffmpeg':'ro'` in the volume mappings.
|
||||||
3. Restart Frigate and the custom version will be used if the mapping was done correctly.
|
3. Restart Frigate and the custom version will be used if the mapping was done correctly.
|
||||||
|
|
||||||
NOTE: The folder that is mapped from the host needs to be the folder that contains `/bin`. So if the full structure is `/home/appdata/frigate/custom-ffmpeg/bin/ffmpeg` then `/home/appdata/frigate/custom-ffmpeg` needs to be mapped to `/usr/lib/btbn-ffmpeg`.
|
NOTE: The folder that is set for the config needs to be the folder that contains `/bin`. So if the full structure is `/home/appdata/frigate/custom-ffmpeg/bin/ffmpeg` then the `ffmpeg -> path` field should be `/config/custom-ffmpeg/bin`.
|
||||||
|
|
||||||
## Custom go2rtc version
|
### Custom go2rtc version
|
||||||
|
|
||||||
Frigate currently includes go2rtc v1.9.2, there may be certain cases where you want to run a different version of go2rtc.
|
Frigate currently includes go2rtc v1.9.2, there may be certain cases where you want to run a different version of go2rtc.
|
||||||
|
|
||||||
@@ -129,7 +183,7 @@ To do this:
|
|||||||
3. Give `go2rtc` execute permission.
|
3. Give `go2rtc` execute permission.
|
||||||
4. Restart Frigate and the custom version will be used, you can verify by checking go2rtc logs.
|
4. Restart Frigate and the custom version will be used, you can verify by checking go2rtc logs.
|
||||||
|
|
||||||
## Validating your config.yaml file updates
|
## Validating your config.yml file updates
|
||||||
|
|
||||||
When frigate starts up, it checks whether your config file is valid, and if it is not, the process exits. To minimize interruptions when updating your config, you have three options -- you can edit the config via the WebUI which has built in validation, use the config API, or you can validate on the command line using the frigate docker container.
|
When frigate starts up, it checks whether your config file is valid, and if it is not, the process exits. To minimize interruptions when updating your config, you have three options -- you can edit the config via the WebUI which has built in validation, use the config API, or you can validate on the command line using the frigate docker container.
|
||||||
|
|
||||||
@@ -157,5 +211,5 @@ docker run \
|
|||||||
--entrypoint python3 \
|
--entrypoint python3 \
|
||||||
ghcr.io/blakeblackshear/frigate:stable \
|
ghcr.io/blakeblackshear/frigate:stable \
|
||||||
-u -m frigate \
|
-u -m frigate \
|
||||||
--validate_config
|
--validate-config
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -5,32 +5,28 @@ title: Authentication
|
|||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
|
|
||||||
## Modes
|
|
||||||
|
|
||||||
Frigate supports two modes for authentication
|
|
||||||
|
|
||||||
| Mode | Description |
|
|
||||||
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `native` | (default) Use this mode if you don't implement authentication with a proxy in front of Frigate. |
|
|
||||||
| `proxy` | Use this mode if you have an existing proxy for authentication. Supports passing authenticated user downstream to Frigate for role-based authorization (future implementation). |
|
|
||||||
|
|
||||||
### Native mode
|
|
||||||
|
|
||||||
Frigate stores user information in its database. Password hashes are generated using industry standard PBKDF2-SHA256 with 600,000 iterations. Upon successful login, a JWT token is issued with an expiration date and set as a cookie. The cookie is refreshed as needed automatically. This JWT token can also be passed in the Authorization header as a bearer token.
|
Frigate stores user information in its database. Password hashes are generated using industry standard PBKDF2-SHA256 with 600,000 iterations. Upon successful login, a JWT token is issued with an expiration date and set as a cookie. The cookie is refreshed as needed automatically. This JWT token can also be passed in the Authorization header as a bearer token.
|
||||||
|
|
||||||
Users are managed in the UI under Settings > Users.
|
Users are managed in the UI under Settings > Users.
|
||||||
|
|
||||||
#### Onboarding
|
The following ports are available to access the Frigate web UI.
|
||||||
|
|
||||||
|
| Port | Description |
|
||||||
|
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `8971` | Authenticated UI and API. Reverse proxies should use this port. |
|
||||||
|
| `5000` | Internal unauthenticated UI and API access. Access to this port should be limited. Intended to be used within the docker network for services that integrate with Frigate and do not support authentication. |
|
||||||
|
|
||||||
|
## Onboarding
|
||||||
|
|
||||||
On startup, an admin user and password are generated and printed in the logs. It is recommended to set a new password for the admin account after logging in for the first time under Settings > Users.
|
On startup, an admin user and password are generated and printed in the logs. It is recommended to set a new password for the admin account after logging in for the first time under Settings > Users.
|
||||||
|
|
||||||
#### Resetting admin password
|
## Resetting admin password
|
||||||
|
|
||||||
In the event that you are locked out of your instance, you can tell Frigate to reset the admin password and print it in the logs on next startup using the `reset_admin_password` setting in your config file.
|
In the event that you are locked out of your instance, you can tell Frigate to reset the admin password and print it in the logs on next startup using the `reset_admin_password` setting in your config file.
|
||||||
|
|
||||||
#### Login failure rate limiting
|
## Login failure rate limiting
|
||||||
|
|
||||||
In order to limit the risk of brute force attacks, rate limiting is available for login failures. This is implemented with Flask-Limiter, and the string notation for valid values is available in [the documentation](https://flask-limiter.readthedocs.io/en/stable/configuration.html#rate-limit-string-notation).
|
In order to limit the risk of brute force attacks, rate limiting is available for login failures. This is implemented with SlowApi, and the string notation for valid values is available in [the documentation](https://limits.readthedocs.io/en/stable/quickstart.html#examples).
|
||||||
|
|
||||||
For example, `1/second;5/minute;20/hour` will rate limit the login endpoint when failures occur more than:
|
For example, `1/second;5/minute;20/hour` will rate limit the login endpoint when failures occur more than:
|
||||||
|
|
||||||
@@ -46,22 +42,60 @@ If you are running a reverse proxy in the same docker compose file as Frigate, h
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
auth:
|
auth:
|
||||||
mode: native
|
|
||||||
failed_login_rate_limit: "1/second;5/minute;20/hour"
|
failed_login_rate_limit: "1/second;5/minute;20/hour"
|
||||||
trusted_proxies:
|
trusted_proxies:
|
||||||
- 172.18.0.0/16 # <---- this is the subnet for the internal docker compose network
|
- 172.18.0.0/16 # <---- this is the subnet for the internal docker compose network
|
||||||
```
|
```
|
||||||
|
|
||||||
### Proxy mode
|
## JWT Token Secret
|
||||||
|
|
||||||
Proxy mode is designed to complement common upstream authentication proxies such as Authelia, Authentik, oauth2_proxy, or traefik-forward-auth.
|
The JWT token secret needs to be kept secure. Anyone with this secret can generate valid JWT tokens to authenticate with Frigate. This should be a cryptographically random string of at least 64 characters.
|
||||||
|
|
||||||
#### Header mapping
|
You can generate a token using the Python secret library with the following command:
|
||||||
|
|
||||||
If your proxy supports passing a header with the authenticated username, you can use the `header_map` config to specify the header name so it is passed to Frigate. For example, the following will map the `X-Forwarded-User` value. Header names are not case sensitive.
|
```shell
|
||||||
|
python3 -c 'import secrets; print(secrets.token_hex(64))'
|
||||||
|
```
|
||||||
|
|
||||||
|
Frigate looks for a JWT token secret in the following order:
|
||||||
|
|
||||||
|
1. An environment variable named `FRIGATE_JWT_SECRET`
|
||||||
|
2. A docker secret named `FRIGATE_JWT_SECRET` in `/run/secrets/`
|
||||||
|
3. A `jwt_secret` option from the Home Assistant Addon options
|
||||||
|
4. A `.jwt_secret` file in the config directory
|
||||||
|
|
||||||
|
If no secret is found on startup, Frigate generates one and stores it in a `.jwt_secret` file in the config directory.
|
||||||
|
|
||||||
|
Changing the secret will invalidate current tokens.
|
||||||
|
|
||||||
|
## Proxy configuration
|
||||||
|
|
||||||
|
Frigate can be configured to leverage features of common upstream authentication proxies such as Authelia, Authentik, oauth2_proxy, or traefik-forward-auth.
|
||||||
|
|
||||||
|
If you are leveraging the authentication of an upstream proxy, you likely want to disable Frigate's authentication. Optionally, if communication between the reverse proxy and Frigate is over an untrusted network, you should set an `auth_secret` in the `proxy` config and configure the proxy to send the secret value as a header named `X-Proxy-Secret`. Assuming this is an untrusted network, you will also want to [configure a real TLS certificate](tls.md) to ensure the traffic can't simply be sniffed to steal the secret.
|
||||||
|
|
||||||
|
Here is an example of how to disable Frigate's authentication and also ensure the requests come only from your known proxy.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
auth:
|
auth:
|
||||||
|
enabled: False
|
||||||
|
|
||||||
|
proxy:
|
||||||
|
auth_secret: <some random long string>
|
||||||
|
```
|
||||||
|
|
||||||
|
You can use the following code to generate a random secret.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
python3 -c 'import secrets; print(secrets.token_hex(64))'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Header mapping
|
||||||
|
|
||||||
|
If you have disabled Frigate's authentication and your proxy supports passing a header with the authenticated username, you can use the `header_map` config to specify the header name so it is passed to Frigate. For example, the following will map the `X-Forwarded-User` value. Header names are not case sensitive.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
proxy:
|
||||||
...
|
...
|
||||||
header_map:
|
header_map:
|
||||||
user: x-forwarded-user
|
user: x-forwarded-user
|
||||||
@@ -89,10 +123,10 @@ If you would like to add more options, you can overwrite the default file with a
|
|||||||
|
|
||||||
Future versions of Frigate may leverage group and role headers for authorization in Frigate as well.
|
Future versions of Frigate may leverage group and role headers for authorization in Frigate as well.
|
||||||
|
|
||||||
#### Login page redirection
|
### Login page redirection
|
||||||
|
|
||||||
Frigate gracefully performs login page redirection that should work with most authentication proxies. If your reverse proxy returns a `Location` header on `401`, `302`, or `307` unauthorized responses, Frigate's frontend will automatically detect it and redirect to that URL.
|
Frigate gracefully performs login page redirection that should work with most authentication proxies. If your reverse proxy returns a `Location` header on `401`, `302`, or `307` unauthorized responses, Frigate's frontend will automatically detect it and redirect to that URL.
|
||||||
|
|
||||||
#### Custom logout url
|
### Custom logout url
|
||||||
|
|
||||||
If your reverse proxy has a dedicated logout url, you can specify using the `logout_url` config option. This will update the link for the `Logout` link in the UI.
|
If your reverse proxy has a dedicated logout url, you can specify using the `logout_url` config option. This will update the link for the `Logout` link in the UI.
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ cameras:
|
|||||||
...
|
...
|
||||||
onvif:
|
onvif:
|
||||||
# Required: host of the camera being connected to.
|
# Required: host of the camera being connected to.
|
||||||
|
# NOTE: HTTP is assumed by default; HTTPS is supported if you specify the scheme, ex: "https://0.0.0.0".
|
||||||
host: 0.0.0.0
|
host: 0.0.0.0
|
||||||
# Optional: ONVIF port for device (default: shown below).
|
# Optional: ONVIF port for device (default: shown below).
|
||||||
port: 8000
|
port: 8000
|
||||||
@@ -49,6 +50,8 @@ cameras:
|
|||||||
user: admin
|
user: admin
|
||||||
# Optional: password for login.
|
# Optional: password for login.
|
||||||
password: admin
|
password: admin
|
||||||
|
# Optional: Skip TLS verification from the ONVIF server (default: shown below)
|
||||||
|
tls_insecure: False
|
||||||
# Optional: PTZ camera object autotracking. Keeps a moving object in
|
# Optional: PTZ camera object autotracking. Keeps a moving object in
|
||||||
# the center of the frame by automatically moving the PTZ camera.
|
# the center of the frame by automatically moving the PTZ camera.
|
||||||
autotracking:
|
autotracking:
|
||||||
|
|||||||
@@ -9,6 +9,12 @@ This page makes use of presets of FFmpeg args. For more information on presets,
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
:::note
|
||||||
|
|
||||||
|
Many cameras support encoding options which greatly affect the live view experience, see the [Live view](/configuration/live) page for more info.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
## MJPEG Cameras
|
## MJPEG Cameras
|
||||||
|
|
||||||
Note that mjpeg cameras require encoding the video into h264 for recording, and restream roles. This will use significantly more CPU than if the cameras supported h264 feeds directly. It is recommended to use the restream role to create an h264 restream and then use that as the source for ffmpeg.
|
Note that mjpeg cameras require encoding the video into h264 for recording, and restream roles. This will use significantly more CPU than if the cameras supported h264 feeds directly. It is recommended to use the restream role to create an h264 restream and then use that as the source for ffmpeg.
|
||||||
@@ -150,7 +156,9 @@ cameras:
|
|||||||
|
|
||||||
#### Reolink Doorbell
|
#### Reolink Doorbell
|
||||||
|
|
||||||
The reolink doorbell supports 2-way audio via go2rtc and other applications. It is important that the http-flv stream is still used for stability, a secondary rtsp stream can be added that will be using for the two way audio only.
|
The reolink doorbell supports two way audio via go2rtc and other applications. It is important that the http-flv stream is still used for stability, a secondary rtsp stream can be added that will be using for the two way audio only.
|
||||||
|
|
||||||
|
Ensure HTTP is enabled in the camera's advanced network settings. To use two way talk with Frigate, see the [Live view documentation](/configuration/live#two-way-talk).
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
go2rtc:
|
go2rtc:
|
||||||
@@ -187,4 +195,4 @@ ffmpeg:
|
|||||||
|
|
||||||
### TP-Link VIGI Cameras
|
### TP-Link VIGI Cameras
|
||||||
|
|
||||||
TP-Link VIGI cameras need some adjustments to the main stream settings on the camera itself to avoid issues. The stream needs to be configured as `H264` with `Smart Coding` set to `off`. Without these settings you may have problems when trying to watch recorded events. For example Firefox will stop playback after a few seconds and show the following error message: `The media playback was aborted due to a corruption problem or because the media used features your browser did not support.`.
|
TP-Link VIGI cameras need some adjustments to the main stream settings on the camera itself to avoid issues. The stream needs to be configured as `H264` with `Smart Coding` set to `off`. Without these settings you may have problems when trying to watch recorded footage. For example Firefox will stop playback after a few seconds and show the following error message: `The media playback was aborted due to a corruption problem or because the media used features your browser did not support.`.
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ title: Camera Configuration
|
|||||||
|
|
||||||
Several inputs can be configured for each camera and the role of each input can be mixed and matched based on your needs. This allows you to use a lower resolution stream for object detection, but create recordings from a higher resolution stream, or vice versa.
|
Several inputs can be configured for each camera and the role of each input can be mixed and matched based on your needs. This allows you to use a lower resolution stream for object detection, but create recordings from a higher resolution stream, or vice versa.
|
||||||
|
|
||||||
A camera is enabled by default but can be temporarily disabled by using `enabled: False`. Existing events and recordings can still be accessed. Live streams, recording and detecting are not working. Camera specific configurations will be used.
|
A camera is enabled by default but can be temporarily disabled by using `enabled: False`. Existing tracked objects and recordings can still be accessed. Live streams, recording and detecting are not working. Camera specific configurations will be used.
|
||||||
|
|
||||||
Each role can only be assigned to one input per camera. The options for roles are as follows:
|
Each role can only be assigned to one input per camera. The options for roles are as follows:
|
||||||
|
|
||||||
@@ -46,6 +46,14 @@ cameras:
|
|||||||
side: ...
|
side: ...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
:::note
|
||||||
|
|
||||||
|
If you only define one stream in your `inputs` and do not assign a `detect` role to it, Frigate will automatically assign it the `detect` role. Frigate will always decode a stream to support motion detection, Birdseye, the API image endpoints, and other features, even if you have disabled object detection with `enabled: False` in your config's `detect` section.
|
||||||
|
|
||||||
|
If you plan to use Frigate for recording only, it is still recommended to define a `detect` role for a low resolution stream to minimize resource usage from the required stream decoding.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
For camera model specific settings check the [camera specific](camera_specific.md) infos.
|
For camera model specific settings check the [camera specific](camera_specific.md) infos.
|
||||||
|
|
||||||
## Setting up camera PTZ controls
|
## Setting up camera PTZ controls
|
||||||
@@ -71,33 +79,41 @@ cameras:
|
|||||||
|
|
||||||
If the ONVIF connection is successful, PTZ controls will be available in the camera's WebUI.
|
If the ONVIF connection is successful, PTZ controls will be available in the camera's WebUI.
|
||||||
|
|
||||||
|
:::tip
|
||||||
|
|
||||||
|
If your ONVIF camera does not require authentication credentials, you may still need to specify an empty string for `user` and `password`, eg: `user: ""` and `password: ""`.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
An ONVIF-capable camera that supports relative movement within the field of view (FOV) can also be configured to automatically track moving objects and keep them in the center of the frame. For autotracking setup, see the [autotracking](autotracking.md) docs.
|
An ONVIF-capable camera that supports relative movement within the field of view (FOV) can also be configured to automatically track moving objects and keep them in the center of the frame. For autotracking setup, see the [autotracking](autotracking.md) docs.
|
||||||
|
|
||||||
## ONVIF PTZ camera recommendations
|
## ONVIF PTZ camera recommendations
|
||||||
|
|
||||||
This list of working and non-working PTZ cameras is based on user feedback.
|
This list of working and non-working PTZ cameras is based on user feedback.
|
||||||
|
|
||||||
| Brand or specific camera | PTZ Controls | Autotracking | Notes |
|
| Brand or specific camera | PTZ Controls | Autotracking | Notes |
|
||||||
| ------------------------ | :----------: | :----------: | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ---------------------------- | :----------: | :----------: | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| Amcrest | ✅ | ✅ | ⛔️ Generally, Amcrest should work, but some older models (like the common IP2M-841) don't support auto tracking |
|
| Amcrest | ✅ | ✅ | ⛔️ Generally, Amcrest should work, but some older models (like the common IP2M-841) don't support autotracking |
|
||||||
| Amcrest ASH21 | ❌ | ❌ | No ONVIF support |
|
| Amcrest ASH21 | ✅ | ❌ | ONVIF service port: 80 |
|
||||||
| Ctronics PTZ | ✅ | ❌ | |
|
| Amcrest IP4M-S2112EW-AI | ✅ | ❌ | FOV relative movement not supported. |
|
||||||
| Dahua | ✅ | ✅ | |
|
| Amcrest IP5M-1190EW | ✅ | ❌ | ONVIF Port: 80. FOV relative movement not supported. |
|
||||||
| Foscam R5 | ✅ | ❌ | |
|
| Ctronics PTZ | ✅ | ❌ | |
|
||||||
| Hanwha XNP-6550RH | ✅ | ❌ | |
|
| Dahua | ✅ | ✅ | |
|
||||||
| Hikvision | ✅ | ❌ | Incomplete ONVIF support (MoveStatus won't update even on latest firmware) - reported with HWP-N4215IH-DE and DS-2DE3304W-DE, but likely others |
|
| Dahua DH-SD2A500HB | ✅ | ❌ | |
|
||||||
| Reolink 511WA | ✅ | ❌ | Zoom only |
|
| Foscam R5 | ✅ | ❌ | |
|
||||||
| Reolink E1 Pro | ✅ | ❌ | |
|
| Hanwha XNP-6550RH | ✅ | ❌ | |
|
||||||
| Reolink E1 Zoom | ✅ | ❌ | |
|
| Hikvision | ✅ | ❌ | Incomplete ONVIF support (MoveStatus won't update even on latest firmware) - reported with HWP-N4215IH-DE and DS-2DE3304W-DE, but likely others |
|
||||||
| Reolink RLC-823A 16x | ✅ | ❌ | |
|
| Hikvision DS-2DE3A404IWG-E/W | ✅ | ✅ | |
|
||||||
| Sunba 405-D20X | ✅ | ❌ | |
|
| Reolink 511WA | ✅ | ❌ | Zoom only |
|
||||||
| Tapo C200 | ✅ | ❌ | Incomplete ONVIF support |
|
| Reolink E1 Pro | ✅ | ❌ | |
|
||||||
| Tapo C210 | ✅ | ❌ | Incomplete ONVIF support, ONVIF Service Port: 2020 |
|
| Reolink E1 Zoom | ✅ | ❌ | |
|
||||||
| Tapo C220 | ✅ | ❌ | Incomplete ONVIF support, ONVIF Service Port: 2020 |
|
| Reolink RLC-823A 16x | ✅ | ❌ | |
|
||||||
| Tapo C225 | ✅ | ❌ | Incomplete ONVIF support, ONVIF Service Port: 2020 |
|
| Speco O8P32X | ✅ | ❌ | |
|
||||||
| Tapo C520WS | ✅ | ❌ | Incomplete ONVIF support, ONVIF Service Port: 2020 |
|
| Sunba 405-D20X | ✅ | ❌ | Incomplete ONVIF support reported on original, and 4k models. All models are suspected incompatable. |
|
||||||
| Uniview IPC672LR-AX4DUPK | ✅ | ❌ | Firmware says FOV relative movement is supported, but camera doesn't actually move when sending ONVIF commands |
|
| Tapo | ✅ | ❌ | Many models supported, ONVIF Service Port: 2020 |
|
||||||
| Vikylin PTZ-2804X-I2 | ❌ | ❌ | Incomplete ONVIF support |
|
| Uniview IPC672LR-AX4DUPK | ✅ | ❌ | Firmware says FOV relative movement is supported, but camera doesn't actually move when sending ONVIF commands |
|
||||||
|
| Uniview IPC6612SR-X33-VG | ✅ | ✅ | Leave `calibrate_on_startup` as `False`. A user has reported that zooming with `absolute` is working. |
|
||||||
|
| Vikylin PTZ-2804X-I2 | ❌ | ❌ | Incomplete ONVIF support |
|
||||||
|
|
||||||
## Setting up camera groups
|
## Setting up camera groups
|
||||||
|
|
||||||
@@ -115,6 +131,6 @@ camera_groups:
|
|||||||
cameras:
|
cameras:
|
||||||
- driveway_cam
|
- driveway_cam
|
||||||
- garage_cam
|
- garage_cam
|
||||||
icon: car
|
icon: LuCar
|
||||||
order: 0
|
order: 0
|
||||||
```
|
```
|
||||||
|
|||||||
205
docs/docs/configuration/genai.md
Normal file
205
docs/docs/configuration/genai.md
Normal file
@@ -0,0 +1,205 @@
|
|||||||
|
---
|
||||||
|
id: genai
|
||||||
|
title: Generative AI
|
||||||
|
---
|
||||||
|
|
||||||
|
Generative AI can be used to automatically generate descriptive text based on the thumbnails of your tracked objects. This helps with [Semantic Search](/configuration/semantic_search) in Frigate to provide more context about your tracked objects. Descriptions are accessed via the _Explore_ view in the Frigate UI by clicking on a tracked object's thumbnail.
|
||||||
|
|
||||||
|
Requests for a description are sent off automatically to your AI provider at the end of the tracked object's lifecycle. Descriptions can also be regenerated manually via the Frigate UI.
|
||||||
|
|
||||||
|
:::info
|
||||||
|
|
||||||
|
Semantic Search must be enabled to use Generative AI.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Generative AI can be enabled for all cameras or only for specific cameras. There are currently 3 providers available to integrate with Frigate.
|
||||||
|
|
||||||
|
If the provider you choose requires an API key, you may either directly paste it in your configuration, or store it in an environment variable prefixed with `FRIGATE_`.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
genai:
|
||||||
|
enabled: True
|
||||||
|
provider: gemini
|
||||||
|
api_key: "{FRIGATE_GEMINI_API_KEY}"
|
||||||
|
model: gemini-1.5-flash
|
||||||
|
|
||||||
|
cameras:
|
||||||
|
front_camera: ...
|
||||||
|
indoor_camera:
|
||||||
|
genai: # <- disable GenAI for your indoor camera
|
||||||
|
enabled: False
|
||||||
|
```
|
||||||
|
|
||||||
|
## Ollama
|
||||||
|
|
||||||
|
:::warning
|
||||||
|
|
||||||
|
Using Ollama on CPU is not recommended, high inference times make using Generative AI impractical.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
[Ollama](https://ollama.com/) allows you to self-host large language models and keep everything running locally. It provides a nice API over [llama.cpp](https://github.com/ggerganov/llama.cpp). It is highly recommended to host this server on a machine with an Nvidia graphics card, or on a Apple silicon Mac for best performance.
|
||||||
|
|
||||||
|
Most of the 7b parameter 4-bit vision models will fit inside 8GB of VRAM. There is also a [Docker container](https://hub.docker.com/r/ollama/ollama) available.
|
||||||
|
|
||||||
|
Parallel requests also come with some caveats. You will need to set `OLLAMA_NUM_PARALLEL=1` and choose a `OLLAMA_MAX_QUEUE` and `OLLAMA_MAX_LOADED_MODELS` values that are appropriate for your hardware and preferences. See the [Ollama documentation](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-does-ollama-handle-concurrent-requests).
|
||||||
|
|
||||||
|
### Supported Models
|
||||||
|
|
||||||
|
You must use a vision capable model with Frigate. Current model variants can be found [in their model library](https://ollama.com/library). At the time of writing, this includes `llava`, `llava-llama3`, `llava-phi3`, and `moondream`. Note that Frigate will not automatically download the model you specify in your config, you must download the model to your local instance of Ollama first i.e. by running `ollama pull llava:7b` on your Ollama server/Docker container. Note that the model specified in Frigate's config must match the downloaded model tag.
|
||||||
|
|
||||||
|
:::note
|
||||||
|
|
||||||
|
You should have at least 8 GB of RAM available (or VRAM if running on GPU) to run the 7B models, 16 GB to run the 13B models, and 32 GB to run the 33B models.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
genai:
|
||||||
|
enabled: True
|
||||||
|
provider: ollama
|
||||||
|
base_url: http://localhost:11434
|
||||||
|
model: llava:7b
|
||||||
|
```
|
||||||
|
|
||||||
|
## Google Gemini
|
||||||
|
|
||||||
|
Google Gemini has a free tier allowing [15 queries per minute](https://ai.google.dev/pricing) to the API, which is more than sufficient for standard Frigate usage.
|
||||||
|
|
||||||
|
### Supported Models
|
||||||
|
|
||||||
|
You must use a vision capable model with Frigate. Current model variants can be found [in their documentation](https://ai.google.dev/gemini-api/docs/models/gemini). At the time of writing, this includes `gemini-1.5-pro` and `gemini-1.5-flash`.
|
||||||
|
|
||||||
|
### Get API Key
|
||||||
|
|
||||||
|
To start using Gemini, you must first get an API key from [Google AI Studio](https://aistudio.google.com).
|
||||||
|
|
||||||
|
1. Accept the Terms of Service
|
||||||
|
2. Click "Get API Key" from the right hand navigation
|
||||||
|
3. Click "Create API key in new project"
|
||||||
|
4. Copy the API key for use in your config
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
genai:
|
||||||
|
enabled: True
|
||||||
|
provider: gemini
|
||||||
|
api_key: "{FRIGATE_GEMINI_API_KEY}"
|
||||||
|
model: gemini-1.5-flash
|
||||||
|
```
|
||||||
|
|
||||||
|
## OpenAI
|
||||||
|
|
||||||
|
OpenAI does not have a free tier for their API. With the release of gpt-4o, pricing has been reduced and each generation should cost fractions of a cent if you choose to go this route.
|
||||||
|
|
||||||
|
### Supported Models
|
||||||
|
|
||||||
|
You must use a vision capable model with Frigate. Current model variants can be found [in their documentation](https://platform.openai.com/docs/models). At the time of writing, this includes `gpt-4o` and `gpt-4-turbo`.
|
||||||
|
|
||||||
|
### Get API Key
|
||||||
|
|
||||||
|
To start using OpenAI, you must first [create an API key](https://platform.openai.com/api-keys) and [configure billing](https://platform.openai.com/settings/organization/billing/overview).
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
genai:
|
||||||
|
enabled: True
|
||||||
|
provider: openai
|
||||||
|
api_key: "{FRIGATE_OPENAI_API_KEY}"
|
||||||
|
model: gpt-4o
|
||||||
|
```
|
||||||
|
|
||||||
|
## Azure OpenAI
|
||||||
|
|
||||||
|
Microsoft offers several vision models through Azure OpenAI. A subscription is required.
|
||||||
|
|
||||||
|
### Supported Models
|
||||||
|
|
||||||
|
You must use a vision capable model with Frigate. Current model variants can be found [in their documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models). At the time of writing, this includes `gpt-4o` and `gpt-4-turbo`.
|
||||||
|
|
||||||
|
### Create Resource and Get API Key
|
||||||
|
|
||||||
|
To start using Azure OpenAI, you must first [create a resource](https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal#create-a-resource). You'll need your API key and resource URL, which must include the `api-version` parameter (see the example below). The model field is not required in your configuration as the model is part of the deployment name you chose when deploying the resource.
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
genai:
|
||||||
|
enabled: True
|
||||||
|
provider: azure_openai
|
||||||
|
base_url: https://example-endpoint.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2023-03-15-preview
|
||||||
|
api_key: "{FRIGATE_OPENAI_API_KEY}"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage and Best Practices
|
||||||
|
|
||||||
|
Frigate's thumbnail search excels at identifying specific details about tracked objects – for example, using an "image caption" approach to find a "person wearing a yellow vest," "a white dog running across the lawn," or "a red car on a residential street." To enhance this further, Frigate’s default prompts are designed to ask your AI provider about the intent behind the object's actions, rather than just describing its appearance.
|
||||||
|
|
||||||
|
While generating simple descriptions of detected objects is useful, understanding intent provides a deeper layer of insight. Instead of just recognizing "what" is in a scene, Frigate’s default prompts aim to infer "why" it might be there or "what" it could do next. Descriptions tell you what’s happening, but intent gives context. For instance, a person walking toward a door might seem like a visitor, but if they’re moving quickly after hours, you can infer a potential break-in attempt. Detecting a person loitering near a door at night can trigger an alert sooner than simply noting "a person standing by the door," helping you respond based on the situation’s context.
|
||||||
|
|
||||||
|
### Using GenAI for notifications
|
||||||
|
|
||||||
|
Frigate provides an [MQTT topic](/integrations/mqtt), `frigate/tracked_object_update`, that is updated with a JSON payload containing `event_id` and `description` when your AI provider returns a description for a tracked object. This description could be used directly in notifications, such as sending alerts to your phone or making audio announcements. If additional details from the tracked object are needed, you can query the [HTTP API](/integrations/api/event-events-event-id-get) using the `event_id`, eg: `http://frigate_ip:5000/api/events/<event_id>`.
|
||||||
|
|
||||||
|
## Custom Prompts
|
||||||
|
|
||||||
|
Frigate sends multiple frames from the tracked object along with a prompt to your Generative AI provider asking it to generate a description. The default prompt is as follows:
|
||||||
|
|
||||||
|
```
|
||||||
|
Analyze the sequence of images containing the {label}. Focus on the likely intent or behavior of the {label} based on its actions and movement, rather than describing its appearance or the surroundings. Consider what the {label} is doing, why, and what it might do next.
|
||||||
|
```
|
||||||
|
|
||||||
|
:::tip
|
||||||
|
|
||||||
|
Prompts can use variable replacements like `{label}`, `{sub_label}`, and `{camera}` to substitute information from the tracked object as part of the prompt.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
You are also able to define custom prompts in your configuration.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
genai:
|
||||||
|
enabled: True
|
||||||
|
provider: ollama
|
||||||
|
base_url: http://localhost:11434
|
||||||
|
model: llava
|
||||||
|
prompt: "Analyze the {label} in these images from the {camera} security camera. Focus on the actions, behavior, and potential intent of the {label}, rather than just describing its appearance."
|
||||||
|
object_prompts:
|
||||||
|
person: "Examine the main person in these images. What are they doing and what might their actions suggest about their intent (e.g., approaching a door, leaving an area, standing still)? Do not describe the surroundings or static details."
|
||||||
|
car: "Observe the primary vehicle in these images. Focus on its movement, direction, or purpose (e.g., parking, approaching, circling). If it's a delivery vehicle, mention the company."
|
||||||
|
```
|
||||||
|
|
||||||
|
Prompts can also be overriden at the camera level to provide a more detailed prompt to the model about your specific camera, if you desire. By default, descriptions will be generated for all tracked objects and all zones. But you can also optionally specify `objects` and `required_zones` to only generate descriptions for certain tracked objects or zones.
|
||||||
|
|
||||||
|
Optionally, you can generate the description using a snapshot (if enabled) by setting `use_snapshot` to `True`. By default, this is set to `False`, which sends the uncompressed images from the `detect` stream collected over the object's lifetime to the model. Once the object lifecycle ends, only a single compressed and cropped thumbnail is saved with the tracked object. Using a snapshot might be useful when you want to _regenerate_ a tracked object's description as it will provide the AI with a higher-quality image (typically downscaled by the AI itself) than the cropped/compressed thumbnail. Using a snapshot otherwise has a trade-off in that only a single image is sent to your provider, which will limit the model's ability to determine object movement or direction.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
cameras:
|
||||||
|
front_door:
|
||||||
|
genai:
|
||||||
|
use_snapshot: True
|
||||||
|
prompt: "Analyze the {label} in these images from the {camera} security camera at the front door. Focus on the actions and potential intent of the {label}."
|
||||||
|
object_prompts:
|
||||||
|
person: "Examine the person in these images. What are they doing, and how might their actions suggest their purpose (e.g., delivering something, approaching, leaving)? If they are carrying or interacting with a package, include details about its source or destination."
|
||||||
|
cat: "Observe the cat in these images. Focus on its movement and intent (e.g., wandering, hunting, interacting with objects). If the cat is near the flower pots or engaging in any specific actions, mention it."
|
||||||
|
objects:
|
||||||
|
- person
|
||||||
|
- cat
|
||||||
|
required_zones:
|
||||||
|
- steps
|
||||||
|
```
|
||||||
|
|
||||||
|
### Experiment with prompts
|
||||||
|
|
||||||
|
Many providers also have a public facing chat interface for their models. Download a couple of different thumbnails or snapshots from Frigate and try new things in the playground to get descriptions to your liking before updating the prompt in Frigate.
|
||||||
|
|
||||||
|
- OpenAI - [ChatGPT](https://chatgpt.com)
|
||||||
|
- Gemini - [Google AI Studio](https://aistudio.google.com)
|
||||||
|
- Ollama - [Open WebUI](https://docs.openwebui.com/)
|
||||||
@@ -13,7 +13,7 @@ Depending on your system, these parameters may not be compatible. More informati
|
|||||||
|
|
||||||
## Raspberry Pi 3/4
|
## Raspberry Pi 3/4
|
||||||
|
|
||||||
Ensure you increase the allocated RAM for your GPU to at least 128 (`raspi-config` > Performance Options > GPU Memory).
|
Ensure you increase the allocated RAM for your GPU to at least 128 (`raspi-config` > Performance Options > GPU Memory).
|
||||||
If you are using the HA addon, you may need to use the full access variant and turn off `Protection mode` for hardware acceleration.
|
If you are using the HA addon, you may need to use the full access variant and turn off `Protection mode` for hardware acceleration.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -65,24 +65,37 @@ Or map in all the `/dev/video*` devices.
|
|||||||
|
|
||||||
## Intel-based CPUs
|
## Intel-based CPUs
|
||||||
|
|
||||||
|
:::info
|
||||||
|
|
||||||
|
**Recommended hwaccel Preset**
|
||||||
|
|
||||||
|
| CPU Generation | Intel Driver | Recommended Preset | Notes |
|
||||||
|
| -------------- | ------------ | ------------------ | ----------------------------------- |
|
||||||
|
| gen1 - gen7 | i965 | preset-vaapi | qsv is not supported |
|
||||||
|
| gen8 - gen12 | iHD | preset-vaapi | preset-intel-qsv-* can also be used |
|
||||||
|
| gen13+ | iHD / Xe | preset-intel-qsv-* | |
|
||||||
|
| Intel Arc GPU | iHD / Xe | preset-intel-qsv-* | |
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
:::note
|
||||||
|
|
||||||
|
The default driver is `iHD`. You may need to change the driver to `i965` by adding the following environment variable `LIBVA_DRIVER_NAME=i965` to your docker-compose file or [in the `frigate.yaml` for HA OS users](advanced.md#environment_vars).
|
||||||
|
|
||||||
|
See [The Intel Docs](https://www.intel.com/content/www/us/en/support/articles/000005505/processors.html) to figure out what generation your CPU is.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
### Via VAAPI
|
### Via VAAPI
|
||||||
|
|
||||||
VAAPI supports automatic profile selection so it will work automatically with both H.264 and H.265 streams. VAAPI is recommended for all generations of Intel-based CPUs if QSV does not work.
|
VAAPI supports automatic profile selection so it will work automatically with both H.264 and H.265 streams.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
hwaccel_args: preset-vaapi
|
hwaccel_args: preset-vaapi
|
||||||
```
|
```
|
||||||
|
|
||||||
:::note
|
### Via Quicksync
|
||||||
|
|
||||||
With some of the processors, like the J4125, the default driver `iHD` doesn't seem to work correctly for hardware acceleration. You may need to change the driver to `i965` by adding the following environment variable `LIBVA_DRIVER_NAME=i965` to your docker-compose file or [in the `frigate.yaml` for HA OS users](advanced.md#environment_vars).
|
|
||||||
|
|
||||||
:::
|
|
||||||
|
|
||||||
### Via Quicksync (>=10th Generation only)
|
|
||||||
|
|
||||||
QSV must be set specifically based on the video encoding of the stream.
|
|
||||||
|
|
||||||
#### H.264 streams
|
#### H.264 streams
|
||||||
|
|
||||||
@@ -218,28 +231,11 @@ docker run -d \
|
|||||||
|
|
||||||
### Setup Decoder
|
### Setup Decoder
|
||||||
|
|
||||||
The decoder you need to pass in the `hwaccel_args` will depend on the input video.
|
Using `preset-nvidia` ffmpeg will automatically select the necessary profile for the incoming video, and will log an error if the profile is not supported by your GPU.
|
||||||
|
|
||||||
A list of supported codecs (you can use `ffmpeg -decoders | grep cuvid` in the container to get the ones your card supports)
|
|
||||||
|
|
||||||
```
|
|
||||||
V..... h263_cuvid Nvidia CUVID H263 decoder (codec h263)
|
|
||||||
V..... h264_cuvid Nvidia CUVID H264 decoder (codec h264)
|
|
||||||
V..... hevc_cuvid Nvidia CUVID HEVC decoder (codec hevc)
|
|
||||||
V..... mjpeg_cuvid Nvidia CUVID MJPEG decoder (codec mjpeg)
|
|
||||||
V..... mpeg1_cuvid Nvidia CUVID MPEG1VIDEO decoder (codec mpeg1video)
|
|
||||||
V..... mpeg2_cuvid Nvidia CUVID MPEG2VIDEO decoder (codec mpeg2video)
|
|
||||||
V..... mpeg4_cuvid Nvidia CUVID MPEG4 decoder (codec mpeg4)
|
|
||||||
V..... vc1_cuvid Nvidia CUVID VC1 decoder (codec vc1)
|
|
||||||
V..... vp8_cuvid Nvidia CUVID VP8 decoder (codec vp8)
|
|
||||||
V..... vp9_cuvid Nvidia CUVID VP9 decoder (codec vp9)
|
|
||||||
```
|
|
||||||
|
|
||||||
For example, for H264 video, you'll select `preset-nvidia-h264`.
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
hwaccel_args: preset-nvidia-h264
|
hwaccel_args: preset-nvidia
|
||||||
```
|
```
|
||||||
|
|
||||||
If everything is working correctly, you should see a significant improvement in performance.
|
If everything is working correctly, you should see a significant improvement in performance.
|
||||||
@@ -362,43 +358,15 @@ that NVDEC/NVDEC1 are in use.
|
|||||||
|
|
||||||
## Rockchip platform
|
## Rockchip platform
|
||||||
|
|
||||||
Hardware accelerated video de-/encoding is supported on all Rockchip SoCs using [Nyanmisaka's FFmpeg Fork](https://github.com/nyanmisaka/ffmpeg-rockchip) based on [Rockchip's mpp library](https://github.com/rockchip-linux/mpp).
|
Hardware accelerated video de-/encoding is supported on all Rockchip SoCs using [Nyanmisaka's FFmpeg 6.1 Fork](https://github.com/nyanmisaka/ffmpeg-rockchip) based on [Rockchip's mpp library](https://github.com/rockchip-linux/mpp).
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
Make sure that you use a linux distribution that comes with the rockchip BSP kernel 5.10 or 6.1 and rkvdec2 driver. To check, enter the following commands:
|
Make sure to follow the [Rockchip specific installation instructions](/frigate/installation#rockchip-platform).
|
||||||
|
|
||||||
```
|
|
||||||
$ uname -r
|
|
||||||
5.10.xxx-rockchip # or 6.1.xxx; the -rockchip suffix is important
|
|
||||||
$ ls /dev/dri
|
|
||||||
by-path card0 card1 renderD128 renderD129 # should list renderD128
|
|
||||||
```
|
|
||||||
|
|
||||||
I recommend [Joshua Riek's Ubuntu for Rockchip](https://github.com/Joshua-Riek/ubuntu-rockchip), if your board is supported.
|
|
||||||
|
|
||||||
### Setup
|
|
||||||
|
|
||||||
Follow Frigate's default installation instructions, but use a docker image with `-rk` suffix for example `ghcr.io/blakeblackshear/frigate:stable-rk`.
|
|
||||||
|
|
||||||
Next, you need to grant docker permissions to access your hardware:
|
|
||||||
- During the configuration process, you should run docker in privileged mode to avoid any errors due to insufficient permissions. To do so, add `privileged: true` to your `docker-compose.yml` file or the `--privileged` flag to your docker run command.
|
|
||||||
- After everything works, you should only grant necessary permissions to increase security. Add the lines below to your `docker-compose.yml` file or the following options to your docker run command: `--security-opt systempaths=unconfined --security-opt apparmor=unconfined --device /dev/dri:/dev/dri --device /dev/dma_heap:/dev/dma_heap --device /dev/rga:/dev/rga --device /dev/mpp_service:/dev/mpp_service`:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
security_opt:
|
|
||||||
- apparmor=unconfined
|
|
||||||
- systempaths=unconfined
|
|
||||||
devices:
|
|
||||||
- /dev/dri:/dev/dri
|
|
||||||
- /dev/dma_heap:/dev/dma_heap
|
|
||||||
- /dev/rga:/dev/rga
|
|
||||||
- /dev/mpp_service:/dev/mpp_service
|
|
||||||
```
|
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
Add one of the following FFmpeg presets to your `config.yaml` to enable hardware video processing:
|
Add one of the following FFmpeg presets to your `config.yml` to enable hardware video processing:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# if you try to decode a h264 encoded stream
|
# if you try to decode a h264 encoded stream
|
||||||
|
|||||||
@@ -56,6 +56,11 @@ go2rtc:
|
|||||||
password: "{FRIGATE_GO2RTC_RTSP_PASSWORD}"
|
password: "{FRIGATE_GO2RTC_RTSP_PASSWORD}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
genai:
|
||||||
|
api_key: "{FRIGATE_GENAI_API_KEY}"
|
||||||
|
```
|
||||||
|
|
||||||
## Common configuration examples
|
## Common configuration examples
|
||||||
|
|
||||||
Here are some common starter configuration examples. Refer to the [reference config](./reference.md) for detailed information about all the config values.
|
Here are some common starter configuration examples. Refer to the [reference config](./reference.md) for detailed information about all the config values.
|
||||||
@@ -67,7 +72,7 @@ Here are some common starter configuration examples. Refer to the [reference con
|
|||||||
- Hardware acceleration for decoding video
|
- Hardware acceleration for decoding video
|
||||||
- USB Coral detector
|
- USB Coral detector
|
||||||
- Save all video with any detectable motion for 7 days regardless of whether any objects were detected or not
|
- Save all video with any detectable motion for 7 days regardless of whether any objects were detected or not
|
||||||
- Continue to keep all video if it was during any event for 30 days
|
- Continue to keep all video if it qualified as an alert or detection for 30 days
|
||||||
- Save snapshots for 30 days
|
- Save snapshots for 30 days
|
||||||
- Motion mask for the camera timestamp
|
- Motion mask for the camera timestamp
|
||||||
|
|
||||||
@@ -90,10 +95,12 @@ record:
|
|||||||
retain:
|
retain:
|
||||||
days: 7
|
days: 7
|
||||||
mode: motion
|
mode: motion
|
||||||
events:
|
alerts:
|
||||||
retain:
|
retain:
|
||||||
default: 30
|
days: 30
|
||||||
mode: motion
|
detections:
|
||||||
|
retain:
|
||||||
|
days: 30
|
||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
enabled: True
|
enabled: True
|
||||||
@@ -123,7 +130,7 @@ cameras:
|
|||||||
- VAAPI hardware acceleration for decoding video
|
- VAAPI hardware acceleration for decoding video
|
||||||
- USB Coral detector
|
- USB Coral detector
|
||||||
- Save all video with any detectable motion for 7 days regardless of whether any objects were detected or not
|
- Save all video with any detectable motion for 7 days regardless of whether any objects were detected or not
|
||||||
- Continue to keep all video if it was during any event for 30 days
|
- Continue to keep all video if it qualified as an alert or detection for 30 days
|
||||||
- Save snapshots for 30 days
|
- Save snapshots for 30 days
|
||||||
- Motion mask for the camera timestamp
|
- Motion mask for the camera timestamp
|
||||||
|
|
||||||
@@ -144,10 +151,12 @@ record:
|
|||||||
retain:
|
retain:
|
||||||
days: 7
|
days: 7
|
||||||
mode: motion
|
mode: motion
|
||||||
events:
|
alerts:
|
||||||
retain:
|
retain:
|
||||||
default: 30
|
days: 30
|
||||||
mode: motion
|
detections:
|
||||||
|
retain:
|
||||||
|
days: 30
|
||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
enabled: True
|
enabled: True
|
||||||
@@ -177,7 +186,7 @@ cameras:
|
|||||||
- VAAPI hardware acceleration for decoding video
|
- VAAPI hardware acceleration for decoding video
|
||||||
- OpenVino detector
|
- OpenVino detector
|
||||||
- Save all video with any detectable motion for 7 days regardless of whether any objects were detected or not
|
- Save all video with any detectable motion for 7 days regardless of whether any objects were detected or not
|
||||||
- Continue to keep all video if it was during any event for 30 days
|
- Continue to keep all video if it qualified as an alert or detection for 30 days
|
||||||
- Save snapshots for 30 days
|
- Save snapshots for 30 days
|
||||||
- Motion mask for the camera timestamp
|
- Motion mask for the camera timestamp
|
||||||
|
|
||||||
@@ -194,14 +203,13 @@ detectors:
|
|||||||
ov:
|
ov:
|
||||||
type: openvino
|
type: openvino
|
||||||
device: AUTO
|
device: AUTO
|
||||||
model:
|
|
||||||
path: /openvino-model/ssdlite_mobilenet_v2.xml
|
|
||||||
|
|
||||||
model:
|
model:
|
||||||
width: 300
|
width: 300
|
||||||
height: 300
|
height: 300
|
||||||
input_tensor: nhwc
|
input_tensor: nhwc
|
||||||
input_pixel_format: bgr
|
input_pixel_format: bgr
|
||||||
|
path: /openvino-model/ssdlite_mobilenet_v2.xml
|
||||||
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
|
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
|
||||||
|
|
||||||
record:
|
record:
|
||||||
@@ -209,10 +217,12 @@ record:
|
|||||||
retain:
|
retain:
|
||||||
days: 7
|
days: 7
|
||||||
mode: motion
|
mode: motion
|
||||||
events:
|
alerts:
|
||||||
retain:
|
retain:
|
||||||
default: 30
|
days: 30
|
||||||
mode: motion
|
detections:
|
||||||
|
retain:
|
||||||
|
days: 30
|
||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
enabled: True
|
enabled: True
|
||||||
|
|||||||
@@ -7,17 +7,29 @@ Frigate intelligently displays your camera streams on the Live view dashboard. Y
|
|||||||
|
|
||||||
## Live View technologies
|
## Live View technologies
|
||||||
|
|
||||||
Frigate intelligently uses three different streaming technologies to display your camera streams. The highest quality and fluency of the Live view requires the bundled `go2rtc` to be configured as shown in the [step by step guide](/guides/configuring_go2rtc).
|
Frigate intelligently uses three different streaming technologies to display your camera streams on the dashboard and the single camera view, switching between available modes based on network bandwidth, player errors, or required features like two-way talk. The highest quality and fluency of the Live view requires the bundled `go2rtc` to be configured as shown in the [step by step guide](/guides/configuring_go2rtc).
|
||||||
|
|
||||||
| Source | Latency | Frame Rate | Resolution | Audio | Requires go2rtc | Other Limitations |
|
The jsmpeg live view will use more browser and client GPU resources. Using go2rtc is highly recommended and will provide a superior experience.
|
||||||
| ------ | ------- | ------------------------------------- | -------------- | ---------------------------- | --------------- | ------------------------------------------------ |
|
|
||||||
| jsmpeg | low | same as `detect -> fps`, capped at 10 | same as detect | no | no | none |
|
| Source | Frame Rate | Resolution | Audio | Requires go2rtc | Notes |
|
||||||
| mse | low | native | native | yes (depends on audio codec) | yes | iPhone requires iOS 17.1+, Firefox is h.264 only |
|
| ------ | ------------------------------------- | ---------- | ---------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| webrtc | lowest | native | native | yes (depends on audio codec) | yes | requires extra config, doesn't support h.265 |
|
| jsmpeg | same as `detect -> fps`, capped at 10 | 720p | no | no | Resolution is configurable, but go2rtc is recommended if you want higher resolutions and better frame rates. jsmpeg is Frigate's default without go2rtc configured. |
|
||||||
|
| mse | native | native | yes (depends on audio codec) | yes | iPhone requires iOS 17.1+, Firefox is h.264 only. This is Frigate's default when go2rtc is configured. |
|
||||||
|
| webrtc | native | native | yes (depends on audio codec) | yes | Requires extra configuration, doesn't support h.265. Frigate attempts to use WebRTC when MSE fails or when using a camera's two-way talk feature. |
|
||||||
|
|
||||||
|
### Camera Settings Recommendations
|
||||||
|
|
||||||
|
If you are using go2rtc, you should adjust the following settings in your camera's firmware for the best experience with Live view:
|
||||||
|
|
||||||
|
- Video codec: **H.264** - provides the most compatible video codec with all Live view technologies and browsers. Avoid any kind of "smart codec" or "+" codec like _H.264+_ or _H.265+_. as these non-standard codecs remove keyframes (see below).
|
||||||
|
- Audio codec: **AAC** - provides the most compatible audio codec with all Live view technologies and browsers that support audio.
|
||||||
|
- I-frame interval (sometimes called the keyframe interval, the interframe space, or the GOP length): match your camera's frame rate, or choose "1x" (for interframe space on Reolink cameras). For example, if your stream outputs 20fps, your i-frame interval should be 20 (or 1x on Reolink). Values higher than the frame rate will cause the stream to take longer to begin playback. See [this page](https://gardinal.net/understanding-the-keyframe-interval/) for more on keyframes. For many users this may not be an issue, but it should be noted that that a 1x i-frame interval will cause more storage utilization if you are using the stream for the `record` role as well.
|
||||||
|
|
||||||
|
The default video and audio codec on your camera may not always be compatible with your browser, which is why setting them to H.264 and AAC is recommended. See the [go2rtc docs](https://github.com/AlexxIT/go2rtc?tab=readme-ov-file#codecs-madness) for codec support information.
|
||||||
|
|
||||||
### Audio Support
|
### Audio Support
|
||||||
|
|
||||||
MSE Requires AAC audio, WebRTC requires PCMU/PCMA, or opus audio. If you want to support both MSE and WebRTC then your restream config needs to make sure both are enabled.
|
MSE Requires PCMA/PCMU or AAC audio, WebRTC requires PCMA/PCMU or opus audio. If you want to support both MSE and WebRTC then your restream config needs to make sure both are enabled.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
go2rtc:
|
go2rtc:
|
||||||
@@ -30,6 +42,15 @@ go2rtc:
|
|||||||
- "ffmpeg:http_cam#audio=opus" # <- copy of the stream which transcodes audio to the missing codec (usually will be opus)
|
- "ffmpeg:http_cam#audio=opus" # <- copy of the stream which transcodes audio to the missing codec (usually will be opus)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If your camera does not have audio and you are having problems with Live view, you should have go2rtc send video only:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
go2rtc:
|
||||||
|
streams:
|
||||||
|
no_audio_camera:
|
||||||
|
- ffmpeg:rtsp://192.168.1.5:554/live0#video=copy
|
||||||
|
```
|
||||||
|
|
||||||
### Setting Stream For Live UI
|
### Setting Stream For Live UI
|
||||||
|
|
||||||
There may be some cameras that you would prefer to use the sub stream for live view, but the main stream for recording. This can be done via `live -> stream_name`.
|
There may be some cameras that you would prefer to use the sub stream for live view, but the main stream for recording. This can be done via `live -> stream_name`.
|
||||||
@@ -117,3 +138,13 @@ services:
|
|||||||
:::
|
:::
|
||||||
|
|
||||||
See [go2rtc WebRTC docs](https://github.com/AlexxIT/go2rtc/tree/v1.8.3#module-webrtc) for more information about this.
|
See [go2rtc WebRTC docs](https://github.com/AlexxIT/go2rtc/tree/v1.8.3#module-webrtc) for more information about this.
|
||||||
|
|
||||||
|
### Two way talk
|
||||||
|
|
||||||
|
For devices that support two way talk, Frigate can be configured to use the feature from the camera's Live view in the Web UI. You should:
|
||||||
|
|
||||||
|
- Set up go2rtc with [WebRTC](#webrtc-extra-configuration).
|
||||||
|
- Ensure you access Frigate via https (may require [opening port 8971](/frigate/installation/#ports)).
|
||||||
|
- For the Home Assistant Frigate card, [follow the docs](https://github.com/dermotduffy/frigate-hass-card?tab=readme-ov-file#using-2-way-audio) for the correct source.
|
||||||
|
|
||||||
|
To use the Reolink Doorbell with two way talk, you should use the [recommended Reolink configuration](/configuration/camera_specific#reolink-doorbell)
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ It is, but the definition of "unnecessary" varies. I want to ignore areas of mot
|
|||||||
|
|
||||||
> For me, giving my masks ANY padding results in a lot of people detection I'm not interested in. I live in the city and catch a lot of the sidewalk on my camera. People walk by my front door all the time and the margin between the sidewalk and actually walking onto my stoop is very thin, so I basically have everything but the exact contours of my stoop masked out. This results in very tidy detections but this info keeps throwing me off. Am I just overthinking it?
|
> For me, giving my masks ANY padding results in a lot of people detection I'm not interested in. I live in the city and catch a lot of the sidewalk on my camera. People walk by my front door all the time and the margin between the sidewalk and actually walking onto my stoop is very thin, so I basically have everything but the exact contours of my stoop masked out. This results in very tidy detections but this info keeps throwing me off. Am I just overthinking it?
|
||||||
|
|
||||||
This is what `required_zones` are for. You should define a zone (remember this is evaluated based on the bottom center of the bounding box) and make it required to save snapshots and clips (now events in 0.9.0). You can also use this in your conditions for a notification.
|
This is what `required_zones` are for. You should define a zone (remember this is evaluated based on the bottom center of the bounding box) and make it required to save snapshots and clips (previously events in 0.9.0 to 0.13.0 and review items in 0.14.0 and later). You can also use this in your conditions for a notification.
|
||||||
|
|
||||||
> Maybe my specific situation just warrants this. I've just been having a hard time understanding the relevance of this information - it seems to be that it's exactly what would be expected when "masking out" an area of ANY image.
|
> Maybe my specific situation just warrants this. I've just been having a hard time understanding the relevance of this information - it seems to be that it's exactly what would be expected when "masking out" an area of ANY image.
|
||||||
|
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ Once motion is detected, it tries to group up nearby areas of motion together in
|
|||||||
|
|
||||||
The default motion settings should work well for the majority of cameras, however there are cases where tuning motion detection can lead to better and more optimal results. Each camera has its own environment with different variables that affect motion, this means that the same motion settings will not fit all of your cameras.
|
The default motion settings should work well for the majority of cameras, however there are cases where tuning motion detection can lead to better and more optimal results. Each camera has its own environment with different variables that affect motion, this means that the same motion settings will not fit all of your cameras.
|
||||||
|
|
||||||
Before tuning motion it is important to understand the goal. In an optimal configuration, motion from people and cars would be detected, but not grass moving, lighting changes, timestamps, etc. If your motion detection is too sensitive, you will experience higher CPU loads and greater false positives from the increased rate of object detection. If it is not sensitive enough, you will miss events.
|
Before tuning motion it is important to understand the goal. In an optimal configuration, motion from people and cars would be detected, but not grass moving, lighting changes, timestamps, etc. If your motion detection is too sensitive, you will experience higher CPU loads and greater false positives from the increased rate of object detection. If it is not sensitive enough, you will miss objects that you want to track.
|
||||||
|
|
||||||
## Create Motion Masks
|
## Create Motion Masks
|
||||||
|
|
||||||
First, mask areas with regular motion not caused by the objects you want to detect. The best way to find candidates for motion masks is by watching the debug stream with motion boxes enabled. Good use cases for motion masks are timestamps or tree limbs and large bushes that regularly move due to wind. When possible, avoid creating motion masks that would block motion detection for objects you want to track **even if they are in locations where you don't want events**. Motion masks should not be used to avoid detecting objects in specific areas. More details can be found [in the masks docs.](/configuration/masks.md).
|
First, mask areas with regular motion not caused by the objects you want to detect. The best way to find candidates for motion masks is by watching the debug stream with motion boxes enabled. Good use cases for motion masks are timestamps or tree limbs and large bushes that regularly move due to wind. When possible, avoid creating motion masks that would block motion detection for objects you want to track **even if they are in locations where you don't want alerts or detections**. Motion masks should not be used to avoid detecting objects in specific areas. More details can be found [in the masks docs.](/configuration/masks.md).
|
||||||
|
|
||||||
## Prepare For Testing
|
## Prepare For Testing
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ Now that things are set up, find a time to tune that represents normal circumsta
|
|||||||
|
|
||||||
:::note
|
:::note
|
||||||
|
|
||||||
Remember that motion detection is just used to determine when object detection should be used. You should aim to have motion detection sensitive enough that you won't miss events from objects you want to detect with object detection. The goal is to prevent object detection from running constantly for every small pixel change in the image. Windy days are still going to result in lots of motion being detected.
|
Remember that motion detection is just used to determine when object detection should be used. You should aim to have motion detection sensitive enough that you won't miss objects you want to detect with object detection. The goal is to prevent object detection from running constantly for every small pixel change in the image. Windy days are still going to result in lots of motion being detected.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
@@ -92,9 +92,15 @@ motion:
|
|||||||
lightning_threshold: 0.8
|
lightning_threshold: 0.8
|
||||||
```
|
```
|
||||||
|
|
||||||
:::tip
|
:::warning
|
||||||
|
|
||||||
Some cameras like doorbell cameras may have missed detections when someone walks directly in front of the camera and the lightning_threshold causes motion detection to be re-calibrated. In this case, it may be desirable to increase the `lightning_threshold` to ensure these events are not missed.
|
Some cameras like doorbell cameras may have missed detections when someone walks directly in front of the camera and the lightning_threshold causes motion detection to be re-calibrated. In this case, it may be desirable to increase the `lightning_threshold` to ensure these objects are not missed.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
:::note
|
||||||
|
|
||||||
|
Lightning threshold does not stop motion based recordings from being saved.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
|||||||
42
docs/docs/configuration/notifications.md
Normal file
42
docs/docs/configuration/notifications.md
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
id: notifications
|
||||||
|
title: Notifications
|
||||||
|
---
|
||||||
|
|
||||||
|
# Notifications
|
||||||
|
|
||||||
|
Frigate offers native notifications using the [WebPush Protocol](https://web.dev/articles/push-notifications-web-push-protocol) which uses the [VAPID spec](https://tools.ietf.org/html/draft-thomson-webpush-vapid) to deliver notifications to web apps using encryption.
|
||||||
|
|
||||||
|
## Setting up Notifications
|
||||||
|
|
||||||
|
In order to use notifications the following requirements must be met:
|
||||||
|
|
||||||
|
- Frigate must be accessed via a secure https connection
|
||||||
|
- A supported browser must be used. Currently Chrome, Firefox, and Safari are known to be supported.
|
||||||
|
- In order for notifications to be usable externally, Frigate must be accessible externally
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
To configure notifications, go to the Frigate WebUI -> Settings -> Notifications and enable, then fill out the fields and save.
|
||||||
|
|
||||||
|
### Registration
|
||||||
|
|
||||||
|
Once notifications are enabled, press the `Register for Notifications` button on all devices that you would like to receive notifications on. This will register the background worker. After this Frigate must be restarted and then notifications will begin to be sent.
|
||||||
|
|
||||||
|
## Supported Notifications
|
||||||
|
|
||||||
|
Currently notifications are only supported for review alerts. More notifications will be supported in the future.
|
||||||
|
|
||||||
|
:::note
|
||||||
|
|
||||||
|
Currently, only Chrome supports images in notifications. Safari and Firefox will only show a title and message in the notification.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
## Reduce Notification Latency
|
||||||
|
|
||||||
|
Different platforms handle notifications differently, some settings changes may be required to get optimal notification delivery.
|
||||||
|
|
||||||
|
### Android
|
||||||
|
|
||||||
|
Most Android phones have battery optimization settings. To get reliable Notification delivery the browser (Chrome, Firefox) should have battery optimizations disabled. If Frigate is running as a PWA then the Frigate app should have battery optimizations disabled as well.
|
||||||
@@ -3,37 +3,39 @@ id: object_detectors
|
|||||||
title: Object Detectors
|
title: Object Detectors
|
||||||
---
|
---
|
||||||
|
|
||||||
# Officially Supported Detectors
|
# Supported Hardware
|
||||||
|
|
||||||
Frigate provides the following builtin detector types: `cpu`, `edgetpu`, `openvino`, `tensorrt`, and `rknn`. By default, Frigate will use a single CPU detector. Other detectors may require additional configuration as described below. When using multiple detectors they will run in dedicated processes, but pull from a common queue of detection requests from across all cameras.
|
:::info
|
||||||
|
|
||||||
## CPU Detector (not recommended)
|
Frigate supports multiple different detectors that work on different types of hardware:
|
||||||
|
|
||||||
The CPU detector type runs a TensorFlow Lite model utilizing the CPU without hardware acceleration. It is recommended to use a hardware accelerated detector type instead for better performance. To configure a CPU based detector, set the `"type"` attribute to `"cpu"`.
|
**Most Hardware**
|
||||||
|
- [Coral EdgeTPU](#edge-tpu-detector): The Google Coral EdgeTPU is available in USB and m.2 format allowing for a wide range of compatibility with devices.
|
||||||
|
- [Hailo](#hailo-8l): The Hailo8 AI Acceleration module is available in m.2 format with a HAT for RPi devices, offering a wide range of compatibility with devices.
|
||||||
|
|
||||||
:::tip
|
**AMD**
|
||||||
|
- [ROCm](#amdrocm-gpu-detector): ROCm can run on AMD Discrete GPUs to provide efficient object detection.
|
||||||
|
- [ONNX](#onnx): ROCm will automatically be detected and used as a detector in the `-rocm` Frigate image when a supported ONNX model is configured.
|
||||||
|
|
||||||
If you do not have GPU or Edge TPU hardware, using the [OpenVINO Detector](#openvino-detector) is often more efficient than using the CPU detector.
|
**Intel**
|
||||||
|
- [OpenVino](#openvino-detector): OpenVino can run on Intel Arc GPUs, Intel integrated GPUs, and Intel CPUs to provide efficient object detection.
|
||||||
|
- [ONNX](#onnx): OpenVINO will automatically be detected and used as a detector in the default Frigate image when a supported ONNX model is configured.
|
||||||
|
|
||||||
|
**Nvidia**
|
||||||
|
- [TensortRT](#nvidia-tensorrt-detector): TensorRT can run on Nvidia GPUs and Jetson devices, using one of many default models.
|
||||||
|
- [ONNX](#onnx): TensorRT will automatically be detected and used as a detector in the `-tensorrt` or `-tensorrt-jp(4/5)` Frigate images when a supported ONNX model is configured.
|
||||||
|
|
||||||
|
**Rockchip**
|
||||||
|
- [RKNN](#rockchip-platform): RKNN models can run on Rockchip devices with included NPUs.
|
||||||
|
|
||||||
|
**For Testing**
|
||||||
|
- [CPU Detector (not recommended for actual use](#cpu-detector-not-recommended): Use a CPU to run tflite model, this is not recommended and in most cases OpenVINO can be used in CPU mode with better results.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
The number of threads used by the interpreter can be specified using the `"num_threads"` attribute, and defaults to `3.`
|
# Officially Supported Detectors
|
||||||
|
|
||||||
A TensorFlow Lite model is provided in the container at `/cpu_model.tflite` and is used by this detector type by default. To provide your own model, bind mount the file into the container and provide the path with `model.path`.
|
Frigate provides the following builtin detector types: `cpu`, `edgetpu`, `hailo8l`, `onnx`, `openvino`, `rknn`, `rocm`, and `tensorrt`. By default, Frigate will use a single CPU detector. Other detectors may require additional configuration as described below. When using multiple detectors they will run in dedicated processes, but pull from a common queue of detection requests from across all cameras.
|
||||||
|
|
||||||
```yaml
|
|
||||||
detectors:
|
|
||||||
cpu1:
|
|
||||||
type: cpu
|
|
||||||
num_threads: 3
|
|
||||||
model:
|
|
||||||
path: "/custom_model.tflite"
|
|
||||||
cpu2:
|
|
||||||
type: cpu
|
|
||||||
num_threads: 3
|
|
||||||
```
|
|
||||||
|
|
||||||
When using CPU detectors, you can add one CPU detector per camera. Adding more detectors than the number of cameras should not improve performance.
|
|
||||||
|
|
||||||
## Edge TPU Detector
|
## Edge TPU Detector
|
||||||
|
|
||||||
@@ -81,6 +83,15 @@ detectors:
|
|||||||
device: ""
|
device: ""
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Single PCIE/M.2 Coral
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
detectors:
|
||||||
|
coral:
|
||||||
|
type: edgetpu
|
||||||
|
device: pci
|
||||||
|
```
|
||||||
|
|
||||||
### Multiple PCIE/M.2 Corals
|
### Multiple PCIE/M.2 Corals
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -109,76 +120,84 @@ detectors:
|
|||||||
|
|
||||||
The OpenVINO detector type runs an OpenVINO IR model on AMD and Intel CPUs, Intel GPUs and Intel VPU hardware. To configure an OpenVINO detector, set the `"type"` attribute to `"openvino"`.
|
The OpenVINO detector type runs an OpenVINO IR model on AMD and Intel CPUs, Intel GPUs and Intel VPU hardware. To configure an OpenVINO detector, set the `"type"` attribute to `"openvino"`.
|
||||||
|
|
||||||
The OpenVINO device to be used is specified using the `"device"` attribute according to the naming conventions in the [Device Documentation](https://docs.openvino.ai/latest/openvino_docs_OV_UG_Working_with_devices.html). Other supported devices could be `AUTO`, `CPU`, `GPU`, `MYRIAD`, etc. If not specified, the default OpenVINO device will be selected by the `AUTO` plugin.
|
The OpenVINO device to be used is specified using the `"device"` attribute according to the naming conventions in the [Device Documentation](https://docs.openvino.ai/2024/openvino-workflow/running-inference/inference-devices-and-modes.html). The most common devices are `CPU` and `GPU`. Currently, there is a known issue with using `AUTO`. For backwards compatibility, Frigate will attempt to use `GPU` if `AUTO` is set in your configuration.
|
||||||
|
|
||||||
OpenVINO is supported on 6th Gen Intel platforms (Skylake) and newer. It will also run on AMD CPUs despite having no official support for it. A supported Intel platform is required to use the `GPU` device with OpenVINO. The `MYRIAD` device may be run on any platform, including Arm devices. For detailed system requirements, see [OpenVINO System Requirements](https://www.intel.com/content/www/us/en/developer/tools/openvino-toolkit/system-requirements.html)
|
OpenVINO is supported on 6th Gen Intel platforms (Skylake) and newer. It will also run on AMD CPUs despite having no official support for it. A supported Intel platform is required to use the `GPU` device with OpenVINO. For detailed system requirements, see [OpenVINO System Requirements](https://docs.openvino.ai/2024/about-openvino/release-notes-openvino/system-requirements.html)
|
||||||
|
|
||||||
An OpenVINO model is provided in the container at `/openvino-model/ssdlite_mobilenet_v2.xml` and is used by this detector type by default. The model comes from Intel's Open Model Zoo [SSDLite MobileNet V2](https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/public/ssdlite_mobilenet_v2) and is converted to an FP16 precision IR model. Use the model configuration shown below when using the OpenVINO detector with the default model.
|
:::tip
|
||||||
|
|
||||||
|
When using many cameras one detector may not be enough to keep up. Multiple detectors can be defined assuming GPU resources are available. An example configuration would be:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
detectors:
|
||||||
|
ov_0:
|
||||||
|
type: openvino
|
||||||
|
device: GPU
|
||||||
|
ov_1:
|
||||||
|
type: openvino
|
||||||
|
device: GPU
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
### Supported Models
|
||||||
|
|
||||||
|
#### SSDLite MobileNet v2
|
||||||
|
|
||||||
|
An OpenVINO model is provided in the container at `/openvino-model/ssdlite_mobilenet_v2.xml` and is used by this detector type by default. The model comes from Intel's Open Model Zoo [SSDLite MobileNet V2](https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/public/ssdlite_mobilenet_v2) and is converted to an FP16 precision IR model.
|
||||||
|
|
||||||
|
Use the model configuration shown below when using the OpenVINO detector with the default OpenVINO model:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
detectors:
|
detectors:
|
||||||
ov:
|
ov:
|
||||||
type: openvino
|
type: openvino
|
||||||
device: AUTO
|
device: GPU
|
||||||
model:
|
|
||||||
path: /openvino-model/ssdlite_mobilenet_v2.xml
|
|
||||||
|
|
||||||
model:
|
model:
|
||||||
width: 300
|
width: 300
|
||||||
height: 300
|
height: 300
|
||||||
input_tensor: nhwc
|
input_tensor: nhwc
|
||||||
input_pixel_format: bgr
|
input_pixel_format: bgr
|
||||||
|
path: /openvino-model/ssdlite_mobilenet_v2.xml
|
||||||
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
|
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
This detector also supports YOLOX. Other YOLO variants are not officially supported/tested. Frigate does not come with any yolo models preloaded, so you will need to supply your own models. This detector has been verified to work with the [yolox_tiny](https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/public/yolox-tiny) model from Intel's Open Model Zoo. You can follow [these instructions](https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/public/yolox-tiny#download-a-model-and-convert-it-into-openvino-ir-format) to retrieve the OpenVINO-compatible `yolox_tiny` model. Make sure that the model input dimensions match the `width` and `height` parameters, and `model_type` is set accordingly. See [Full Configuration Reference](/configuration/reference.md) for a list of possible `model_type` options. Below is an example of how `yolox_tiny` can be used in Frigate:
|
#### YOLOX
|
||||||
|
|
||||||
|
This detector also supports YOLOX. Frigate does not come with any YOLOX models preloaded, so you will need to supply your own models.
|
||||||
|
|
||||||
|
#### YOLO-NAS
|
||||||
|
|
||||||
|
[YOLO-NAS](https://github.com/Deci-AI/super-gradients/blob/master/YOLONAS.md) models are supported, but not included by default. You can build and download a compatible model with pre-trained weights using [this notebook](https://github.com/blakeblackshear/frigate/blob/dev/notebooks/YOLO_NAS_Pretrained_Export.ipynb) [](https://colab.research.google.com/github/blakeblackshear/frigate/blob/dev/notebooks/YOLO_NAS_Pretrained_Export.ipynb).
|
||||||
|
|
||||||
|
:::warning
|
||||||
|
|
||||||
|
The pre-trained YOLO-NAS weights from DeciAI are subject to their license and can't be used commercially. For more information, see: https://docs.deci.ai/super-gradients/latest/LICENSE.YOLONAS.html
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
The input image size in this notebook is set to 320x320. This results in lower CPU usage and faster inference times without impacting performance in most cases due to the way Frigate crops video frames to areas of interest before running detection. The notebook and config can be updated to 640x640 if desired.
|
||||||
|
|
||||||
|
After placing the downloaded onnx model in your config folder, you can use the following configuration:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
detectors:
|
detectors:
|
||||||
ov:
|
ov:
|
||||||
type: openvino
|
type: openvino
|
||||||
device: AUTO
|
device: GPU
|
||||||
model:
|
|
||||||
path: /path/to/yolox_tiny.xml
|
|
||||||
|
|
||||||
model:
|
model:
|
||||||
width: 416
|
model_type: yolonas
|
||||||
height: 416
|
width: 320 # <--- should match whatever was set in notebook
|
||||||
|
height: 320 # <--- should match whatever was set in notebook
|
||||||
input_tensor: nchw
|
input_tensor: nchw
|
||||||
input_pixel_format: bgr
|
input_pixel_format: bgr
|
||||||
model_type: yolox
|
path: /config/yolo_nas_s.onnx
|
||||||
labelmap_path: /path/to/coco_80cl.txt
|
labelmap_path: /labelmap/coco-80.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
### Intel NCS2 VPU and Myriad X Setup
|
Note that the labelmap uses a subset of the complete COCO label set that has only 80 objects.
|
||||||
|
|
||||||
Intel produces a neural net inference acceleration chip called Myriad X. This chip was sold in their Neural Compute Stick 2 (NCS2) which has been discontinued. If intending to use the MYRIAD device for acceleration, additional setup is required to pass through the USB device. The host needs a udev rule installed to handle the NCS2 device.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo usermod -a -G users "$(whoami)"
|
|
||||||
cat <<EOF > 97-myriad-usbboot.rules
|
|
||||||
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
|
|
||||||
EOF
|
|
||||||
sudo cp 97-myriad-usbboot.rules /etc/udev/rules.d/
|
|
||||||
sudo udevadm control --reload-rules
|
|
||||||
sudo udevadm trigger
|
|
||||||
```
|
|
||||||
|
|
||||||
Additionally, the Frigate docker container needs to run with the following configuration:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
--device-cgroup-rule='c 189:\* rmw' -v /dev/bus/usb:/dev/bus/usb
|
|
||||||
```
|
|
||||||
|
|
||||||
or in your compose file:
|
|
||||||
|
|
||||||
```yml
|
|
||||||
device_cgroup_rules:
|
|
||||||
- "c 189:* rmw"
|
|
||||||
volumes:
|
|
||||||
- /dev/bus/usb:/dev/bus/usb
|
|
||||||
```
|
|
||||||
|
|
||||||
## NVidia TensorRT Detector
|
## NVidia TensorRT Detector
|
||||||
|
|
||||||
@@ -206,7 +225,7 @@ The model used for TensorRT must be preprocessed on the same hardware platform t
|
|||||||
|
|
||||||
The Frigate image will generate model files during startup if the specified model is not found. Processed models are stored in the `/config/model_cache` folder. Typically the `/config` path is mapped to a directory on the host already and the `model_cache` does not need to be mapped separately unless the user wants to store it in a different location on the host.
|
The Frigate image will generate model files during startup if the specified model is not found. Processed models are stored in the `/config/model_cache` folder. Typically the `/config` path is mapped to a directory on the host already and the `model_cache` does not need to be mapped separately unless the user wants to store it in a different location on the host.
|
||||||
|
|
||||||
By default, the `yolov7-320` model will be generated, but this can be overridden by specifying the `YOLO_MODELS` environment variable in Docker. One or more models may be listed in a comma-separated format, and each one will be generated. To select no model generation, set the variable to an empty string, `YOLO_MODELS=""`. Models will only be generated if the corresponding `{model}.trt` file is not present in the `model_cache` folder, so you can force a model to be regenerated by deleting it from your Frigate data folder.
|
By default, no models will be generated, but this can be overridden by specifying the `YOLO_MODELS` environment variable in Docker. One or more models may be listed in a comma-separated format, and each one will be generated. Models will only be generated if the corresponding `{model}.trt` file is not present in the `model_cache` folder, so you can force a model to be regenerated by deleting it from your Frigate data folder.
|
||||||
|
|
||||||
If you have a Jetson device with DLAs (Xavier or Orin), you can generate a model that will run on the DLA by appending `-dla` to your model name, e.g. specify `YOLO_MODELS=yolov7-320-dla`. The model will run on DLA0 (Frigate does not currently support DLA1). DLA-incompatible layers will fall back to running on the GPU.
|
If you have a Jetson device with DLAs (Xavier or Orin), you can generate a model that will run on the DLA by appending `-dla` to your model name, e.g. specify `YOLO_MODELS=yolov7-320-dla`. The model will run on DLA0 (Frigate does not currently support DLA1). DLA-incompatible layers will fall back to running on the GPU.
|
||||||
|
|
||||||
@@ -237,6 +256,7 @@ yolov4x-mish-640
|
|||||||
yolov7-tiny-288
|
yolov7-tiny-288
|
||||||
yolov7-tiny-416
|
yolov7-tiny-416
|
||||||
yolov7-640
|
yolov7-640
|
||||||
|
yolov7-416
|
||||||
yolov7-320
|
yolov7-320
|
||||||
yolov7x-640
|
yolov7x-640
|
||||||
yolov7x-320
|
yolov7x-320
|
||||||
@@ -247,7 +267,7 @@ An example `docker-compose.yml` fragment that converts the `yolov4-608` and `yol
|
|||||||
```yml
|
```yml
|
||||||
frigate:
|
frigate:
|
||||||
environment:
|
environment:
|
||||||
- YOLO_MODELS=yolov4-608,yolov7x-640
|
- YOLO_MODELS=yolov7-320,yolov7x-640
|
||||||
- USE_FP16=false
|
- USE_FP16=false
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -265,6 +285,8 @@ The TensorRT detector can be selected by specifying `tensorrt` as the model type
|
|||||||
|
|
||||||
The TensorRT detector uses `.trt` model files that are located in `/config/model_cache/tensorrt` by default. These model path and dimensions used will depend on which model you have generated.
|
The TensorRT detector uses `.trt` model files that are located in `/config/model_cache/tensorrt` by default. These model path and dimensions used will depend on which model you have generated.
|
||||||
|
|
||||||
|
Use the config below to work with generated TRT models:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
detectors:
|
detectors:
|
||||||
tensorrt:
|
tensorrt:
|
||||||
@@ -279,6 +301,221 @@ model:
|
|||||||
height: 320
|
height: 320
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## AMD/ROCm GPU detector
|
||||||
|
|
||||||
|
### Setup
|
||||||
|
|
||||||
|
The `rocm` detector supports running YOLO-NAS models on AMD GPUs. Use a frigate docker image with `-rocm` suffix, for example `ghcr.io/blakeblackshear/frigate:stable-rocm`.
|
||||||
|
|
||||||
|
### Docker settings for GPU access
|
||||||
|
|
||||||
|
ROCm needs access to the `/dev/kfd` and `/dev/dri` devices. When docker or frigate is not run under root then also `video` (and possibly `render` and `ssl/_ssl`) groups should be added.
|
||||||
|
|
||||||
|
When running docker directly the following flags should be added for device access:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker run --device=/dev/kfd --device=/dev/dri \
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
When using docker compose:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
frigate:
|
||||||
|
---
|
||||||
|
devices:
|
||||||
|
- /dev/dri
|
||||||
|
- /dev/kfd
|
||||||
|
```
|
||||||
|
|
||||||
|
For reference on recommended settings see [running ROCm/pytorch in Docker](https://rocm.docs.amd.com/projects/install-on-linux/en/develop/how-to/3rd-party/pytorch-install.html#using-docker-with-pytorch-pre-installed).
|
||||||
|
|
||||||
|
### Docker settings for overriding the GPU chipset
|
||||||
|
|
||||||
|
Your GPU might work just fine without any special configuration but in many cases they need manual settings. AMD/ROCm software stack comes with a limited set of GPU drivers and for newer or missing models you will have to override the chipset version to an older/generic version to get things working.
|
||||||
|
|
||||||
|
Also AMD/ROCm does not "officially" support integrated GPUs. It still does work with most of them just fine but requires special settings. One has to configure the `HSA_OVERRIDE_GFX_VERSION` environment variable. See the [ROCm bug report](https://github.com/ROCm/ROCm/issues/1743) for context and examples.
|
||||||
|
|
||||||
|
For the rocm frigate build there is some automatic detection:
|
||||||
|
|
||||||
|
- gfx90c -> 9.0.0
|
||||||
|
- gfx1031 -> 10.3.0
|
||||||
|
- gfx1103 -> 11.0.0
|
||||||
|
|
||||||
|
If you have something else you might need to override the `HSA_OVERRIDE_GFX_VERSION` at Docker launch. Suppose the version you want is `9.0.0`, then you should configure it from command line as:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker run -e HSA_OVERRIDE_GFX_VERSION=9.0.0 \
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
When using docker compose:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
frigate:
|
||||||
|
...
|
||||||
|
environment:
|
||||||
|
HSA_OVERRIDE_GFX_VERSION: "9.0.0"
|
||||||
|
```
|
||||||
|
|
||||||
|
Figuring out what version you need can be complicated as you can't tell the chipset name and driver from the AMD brand name.
|
||||||
|
|
||||||
|
- first make sure that rocm environment is running properly by running `/opt/rocm/bin/rocminfo` in the frigate container -- it should list both the CPU and the GPU with their properties
|
||||||
|
- find the chipset version you have (gfxNNN) from the output of the `rocminfo` (see below)
|
||||||
|
- use a search engine to query what `HSA_OVERRIDE_GFX_VERSION` you need for the given gfx name ("gfxNNN ROCm HSA_OVERRIDE_GFX_VERSION")
|
||||||
|
- override the `HSA_OVERRIDE_GFX_VERSION` with relevant value
|
||||||
|
- if things are not working check the frigate docker logs
|
||||||
|
|
||||||
|
#### Figuring out if AMD/ROCm is working and found your GPU
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker exec -it frigate /opt/rocm/bin/rocminfo
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Figuring out your AMD GPU chipset version:
|
||||||
|
|
||||||
|
We unset the `HSA_OVERRIDE_GFX_VERSION` to prevent an existing override from messing up the result:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker exec -it frigate /bin/bash -c '(unset HSA_OVERRIDE_GFX_VERSION && /opt/rocm/bin/rocminfo |grep gfx)'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Models
|
||||||
|
|
||||||
|
There is no default model provided, the following formats are supported:
|
||||||
|
|
||||||
|
#### YOLO-NAS
|
||||||
|
|
||||||
|
[YOLO-NAS](https://github.com/Deci-AI/super-gradients/blob/master/YOLONAS.md) models are supported, but not included by default. You can build and download a compatible model with pre-trained weights using [this notebook](https://github.com/frigate/blob/dev/notebooks/YOLO_NAS_Pretrained_Export.ipynb) [](https://colab.research.google.com/github/blakeblackshear/frigate/blob/dev/notebooks/YOLO_NAS_Pretrained_Export.ipynb).
|
||||||
|
|
||||||
|
:::warning
|
||||||
|
|
||||||
|
The pre-trained YOLO-NAS weights from DeciAI are subject to their license and can't be used commercially. For more information, see: https://docs.deci.ai/super-gradients/latest/LICENSE.YOLONAS.html
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
The input image size in this notebook is set to 320x320. This results in lower CPU usage and faster inference times without impacting performance in most cases due to the way Frigate crops video frames to areas of interest before running detection. The notebook and config can be updated to 640x640 if desired.
|
||||||
|
|
||||||
|
After placing the downloaded onnx model in your config folder, you can use the following configuration:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
detectors:
|
||||||
|
rocm:
|
||||||
|
type: rocm
|
||||||
|
|
||||||
|
model:
|
||||||
|
model_type: yolonas
|
||||||
|
width: 320 # <--- should match whatever was set in notebook
|
||||||
|
height: 320 # <--- should match whatever was set in notebook
|
||||||
|
input_pixel_format: bgr
|
||||||
|
path: /config/yolo_nas_s.onnx
|
||||||
|
labelmap_path: /labelmap/coco-80.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that the labelmap uses a subset of the complete COCO label set that has only 80 objects.
|
||||||
|
|
||||||
|
## ONNX
|
||||||
|
|
||||||
|
ONNX is an open format for building machine learning models, Frigate supports running ONNX models on CPU, OpenVINO, and TensorRT. On startup Frigate will automatically try to use a GPU if one is available.
|
||||||
|
|
||||||
|
:::info
|
||||||
|
|
||||||
|
If the correct build is used for your GPU then the GPU will be detected and used automatically.
|
||||||
|
|
||||||
|
- **AMD**
|
||||||
|
|
||||||
|
- ROCm will automatically be detected and used with the ONNX detector in the `-rocm` Frigate image.
|
||||||
|
|
||||||
|
- **Intel**
|
||||||
|
|
||||||
|
- OpenVINO will automatically be detected and used with the ONNX detector in the default Frigate image.
|
||||||
|
|
||||||
|
- **Nvidia**
|
||||||
|
- Nvidia GPUs will automatically be detected and used with the ONNX detector in the `-tensorrt` Frigate image.
|
||||||
|
- Jetson devices will automatically be detected and used with the ONNX detector in the `-tensorrt-jp(4/5)` Frigate image.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
:::tip
|
||||||
|
|
||||||
|
When using many cameras one detector may not be enough to keep up. Multiple detectors can be defined assuming GPU resources are available. An example configuration would be:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
detectors:
|
||||||
|
onnx_0:
|
||||||
|
type: onnx
|
||||||
|
onnx_1:
|
||||||
|
type: onnx
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
### Supported Models
|
||||||
|
|
||||||
|
There is no default model provided, the following formats are supported:
|
||||||
|
|
||||||
|
#### YOLO-NAS
|
||||||
|
|
||||||
|
[YOLO-NAS](https://github.com/Deci-AI/super-gradients/blob/master/YOLONAS.md) models are supported, but not included by default. You can build and download a compatible model with pre-trained weights using [this notebook](https://github.com/frigate/blob/dev/notebooks/YOLO_NAS_Pretrained_Export.ipynb) [](https://colab.research.google.com/github/blakeblackshear/frigate/blob/dev/notebooks/YOLO_NAS_Pretrained_Export.ipynb).
|
||||||
|
|
||||||
|
:::warning
|
||||||
|
|
||||||
|
The pre-trained YOLO-NAS weights from DeciAI are subject to their license and can't be used commercially. For more information, see: https://docs.deci.ai/super-gradients/latest/LICENSE.YOLONAS.html
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
The input image size in this notebook is set to 320x320. This results in lower CPU usage and faster inference times without impacting performance in most cases due to the way Frigate crops video frames to areas of interest before running detection. The notebook and config can be updated to 640x640 if desired.
|
||||||
|
|
||||||
|
After placing the downloaded onnx model in your config folder, you can use the following configuration:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
detectors:
|
||||||
|
onnx:
|
||||||
|
type: onnx
|
||||||
|
|
||||||
|
model:
|
||||||
|
model_type: yolonas
|
||||||
|
width: 320 # <--- should match whatever was set in notebook
|
||||||
|
height: 320 # <--- should match whatever was set in notebook
|
||||||
|
input_pixel_format: bgr
|
||||||
|
input_tensor: nchw
|
||||||
|
path: /config/yolo_nas_s.onnx
|
||||||
|
labelmap_path: /labelmap/coco-80.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that the labelmap uses a subset of the complete COCO label set that has only 80 objects.
|
||||||
|
|
||||||
|
## CPU Detector (not recommended)
|
||||||
|
|
||||||
|
The CPU detector type runs a TensorFlow Lite model utilizing the CPU without hardware acceleration. It is recommended to use a hardware accelerated detector type instead for better performance. To configure a CPU based detector, set the `"type"` attribute to `"cpu"`.
|
||||||
|
|
||||||
|
:::danger
|
||||||
|
|
||||||
|
The CPU detector is not recommended for general use. If you do not have GPU or Edge TPU hardware, using the [OpenVINO Detector](#openvino-detector) in CPU mode is often more efficient than using the CPU detector.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
The number of threads used by the interpreter can be specified using the `"num_threads"` attribute, and defaults to `3.`
|
||||||
|
|
||||||
|
A TensorFlow Lite model is provided in the container at `/cpu_model.tflite` and is used by this detector type by default. To provide your own model, bind mount the file into the container and provide the path with `model.path`.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
detectors:
|
||||||
|
cpu1:
|
||||||
|
type: cpu
|
||||||
|
num_threads: 3
|
||||||
|
cpu2:
|
||||||
|
type: cpu
|
||||||
|
num_threads: 3
|
||||||
|
|
||||||
|
model:
|
||||||
|
path: "/custom_model.tflite"
|
||||||
|
```
|
||||||
|
|
||||||
|
When using CPU detectors, you can add one CPU detector per camera. Adding more detectors than the number of cameras should not improve performance.
|
||||||
|
|
||||||
## Deepstack / CodeProject.AI Server Detector
|
## Deepstack / CodeProject.AI Server Detector
|
||||||
|
|
||||||
The Deepstack / CodeProject.AI Server detector for Frigate allows you to integrate Deepstack and CodeProject.AI object detection capabilities into Frigate. CodeProject.AI and DeepStack are open-source AI platforms that can be run on various devices such as the Raspberry Pi, Nvidia Jetson, and other compatible hardware. It is important to note that the integration is performed over the network, so the inference times may not be as fast as native Frigate detectors, but it still provides an efficient and reliable solution for object detection and tracking.
|
The Deepstack / CodeProject.AI Server detector for Frigate allows you to integrate Deepstack and CodeProject.AI object detection capabilities into Frigate. CodeProject.AI and DeepStack are open-source AI platforms that can be run on various devices such as the Raspberry Pi, Nvidia Jetson, and other compatible hardware. It is important to note that the integration is performed over the network, so the inference times may not be as fast as native Frigate detectors, but it still provides an efficient and reliable solution for object detection and tracking.
|
||||||
@@ -313,39 +550,11 @@ Hardware accelerated object detection is supported on the following SoCs:
|
|||||||
- RK3576
|
- RK3576
|
||||||
- RK3588
|
- RK3588
|
||||||
|
|
||||||
This implementation uses the [Rockchip's RKNN-Toolkit2](https://github.com/airockchip/rknn-toolkit2/) Currently, only [Yolo-NAS](https://github.com/Deci-AI/super-gradients/blob/master/YOLONAS.md) is supported as object detection model.
|
This implementation uses the [Rockchip's RKNN-Toolkit2](https://github.com/airockchip/rknn-toolkit2/), version v2.0.0.beta0. Currently, only [Yolo-NAS](https://github.com/Deci-AI/super-gradients/blob/master/YOLONAS.md) is supported as object detection model.
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
Make sure that you use a linux distribution that comes with the rockchip BSP kernel 5.10 or 6.1 and rknpu driver. To check, enter the following commands:
|
Make sure to follow the [Rockchip specific installation instrucitions](/frigate/installation#rockchip-platform).
|
||||||
|
|
||||||
```
|
|
||||||
$ uname -r
|
|
||||||
5.10.xxx-rockchip # or 6.1.xxx; the -rockchip suffix is important
|
|
||||||
$ ls /dev/dri
|
|
||||||
by-path card0 card1 renderD128 renderD129 # should list renderD129
|
|
||||||
$ sudo cat /sys/kernel/debug/rknpu/version
|
|
||||||
RKNPU driver: v0.9.2 # or later version
|
|
||||||
```
|
|
||||||
|
|
||||||
I recommend [Joshua Riek's Ubuntu for Rockchip](https://github.com/Joshua-Riek/ubuntu-rockchip), if your board is supported.
|
|
||||||
|
|
||||||
### Setup
|
|
||||||
|
|
||||||
Follow Frigate's default installation instructions, but use a docker image with `-rk` suffix for example `ghcr.io/blakeblackshear/frigate:stable-rk`.
|
|
||||||
|
|
||||||
Next, you need to grant docker permissions to access your hardware:
|
|
||||||
|
|
||||||
- During the configuration process, you should run docker in privileged mode to avoid any errors due to insufficient permissions. To do so, add `privileged: true` to your `docker-compose.yml` file or the `--privileged` flag to your docker run command.
|
|
||||||
- After everything works, you should only grant necessary permissions to increase security. Add the lines below to your `docker-compose.yml` file or the following options to your docker run command: `--security-opt systempaths=unconfined --security-opt apparmor=unconfined --device /dev/dri:/dev/dri`:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
security_opt:
|
|
||||||
- apparmor=unconfined
|
|
||||||
- systempaths=unconfined
|
|
||||||
devices:
|
|
||||||
- /dev/dri:/dev/dri
|
|
||||||
```
|
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
@@ -376,13 +585,21 @@ model: # required
|
|||||||
input_pixel_format: bgr # required
|
input_pixel_format: bgr # required
|
||||||
# shape of detection frame
|
# shape of detection frame
|
||||||
input_tensor: nhwc
|
input_tensor: nhwc
|
||||||
|
# needs to be adjusted to model, see below
|
||||||
|
labelmap_path: /labelmap.txt # required
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The correct labelmap must be loaded for each model. If you use a custom model (see notes below), you must make sure to provide the correct labelmap. The table below lists the correct paths for the bundled models:
|
||||||
|
|
||||||
|
| `path` | `labelmap_path` |
|
||||||
|
| --------------------- | --------------------- |
|
||||||
|
| deci-fp16-yolonas\_\* | /labelmap/coco-80.txt |
|
||||||
|
|
||||||
### Choosing a model
|
### Choosing a model
|
||||||
|
|
||||||
:::warning
|
:::warning
|
||||||
|
|
||||||
yolo-nas models use weights from DeciAI. These weights are subject to their license and can't be used commercially. For more information, see: https://docs.deci.ai/super-gradients/latest/LICENSE.YOLONAS.html
|
The pre-trained YOLO-NAS weights from DeciAI are subject to their license and can't be used commercially. For more information, see: https://docs.deci.ai/super-gradients/latest/LICENSE.YOLONAS.html
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
@@ -405,6 +622,28 @@ $ cat /sys/kernel/debug/rknpu/load
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
- By default the rknn detector uses the yolonas_s model (`model: path: default-fp16-yolonas_s`). This model comes with the image, so no further steps than those mentioned above are necessary and no download happens.
|
- All models are automatically downloaded and stored in the folder `config/model_cache/rknn_cache`. After upgrading Frigate, you should remove older models to free up space.
|
||||||
- The other choices are automatically downloaded and stored in the folder `config/model_cache/rknn_cache`. After upgrading Frigate, you should remove older models to free up space.
|
- You can also provide your own `.rknn` model. You should not save your own models in the `rknn_cache` folder, store them directly in the `model_cache` folder or another subfolder. To convert a model to `.rknn` format see the `rknn-toolkit2` (requires a x86 machine). Note, that there is only post-processing for the supported models.
|
||||||
- Finally, you can also provide your own `.rknn` model. You should not save your own models in the `rknn_cache` folder, store them directly in the `model_cache` folder or another subfolder. To convert a model to `.rknn` format see the `rknn-toolkit2` (requires a x86 machine). Note, that there is only post-processing for the supported models.
|
|
||||||
|
## Hailo-8l
|
||||||
|
|
||||||
|
This detector is available for use with Hailo-8 AI Acceleration Module.
|
||||||
|
|
||||||
|
See the [installation docs](../frigate/installation.md#hailo-8l) for information on configuring the hailo8.
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
detectors:
|
||||||
|
hailo8l:
|
||||||
|
type: hailo8l
|
||||||
|
device: PCIe
|
||||||
|
|
||||||
|
model:
|
||||||
|
width: 300
|
||||||
|
height: 300
|
||||||
|
input_tensor: nhwc
|
||||||
|
input_pixel_format: bgr
|
||||||
|
model_type: ssd
|
||||||
|
path: /config/model_cache/h8l_cache/ssd_mobilenet_v1.hef
|
||||||
|
```
|
||||||
|
|||||||
@@ -20,15 +20,13 @@ For object filters in your configuration, any single detection below `min_score`
|
|||||||
|
|
||||||
In frame 2, the score is below the `min_score` value, so Frigate ignores it and it becomes a 0.0. The computed score is the median of the score history (padding to at least 3 values), and only when that computed score crosses the `threshold` is the object marked as a true positive. That happens in frame 4 in the example.
|
In frame 2, the score is below the `min_score` value, so Frigate ignores it and it becomes a 0.0. The computed score is the median of the score history (padding to at least 3 values), and only when that computed score crosses the `threshold` is the object marked as a true positive. That happens in frame 4 in the example.
|
||||||
|
|
||||||
show image of snapshot vs event with differing scores
|
|
||||||
|
|
||||||
### Minimum Score
|
### Minimum Score
|
||||||
|
|
||||||
Any detection below `min_score` will be immediately thrown out and never tracked because it is considered a false positive. If `min_score` is too low then false positives may be detected and tracked which can confuse the object tracker and may lead to wasted resources. If `min_score` is too high then lower scoring true positives like objects that are further away or partially occluded may be thrown out which can also confuse the tracker and cause valid events to be lost or disjointed.
|
Any detection below `min_score` will be immediately thrown out and never tracked because it is considered a false positive. If `min_score` is too low then false positives may be detected and tracked which can confuse the object tracker and may lead to wasted resources. If `min_score` is too high then lower scoring true positives like objects that are further away or partially occluded may be thrown out which can also confuse the tracker and cause valid tracked objects to be lost or disjointed.
|
||||||
|
|
||||||
### Threshold
|
### Threshold
|
||||||
|
|
||||||
`threshold` is used to determine that the object is a true positive. Once an object is detected with a score >= `threshold` object is considered a true positive. If `threshold` is too low then some higher scoring false positives may create an event. If `threshold` is too high then true positive events may be missed due to the object never scoring high enough.
|
`threshold` is used to determine that the object is a true positive. Once an object is detected with a score >= `threshold` object is considered a true positive. If `threshold` is too low then some higher scoring false positives may create an tracked object. If `threshold` is too high then true positive tracked objects may be missed due to the object never scoring high enough.
|
||||||
|
|
||||||
## Object Shape
|
## Object Shape
|
||||||
|
|
||||||
@@ -36,7 +34,7 @@ False positives can also be reduced by filtering a detection based on its shape.
|
|||||||
|
|
||||||
### Object Area
|
### Object Area
|
||||||
|
|
||||||
`min_area` and `max_area` filter on the area of an objects bounding box in pixels and can be used to reduce false positives that are outside the range of expected sizes. For example when a leaf is detected as a dog or when a large tree is detected as a person, these can be reduced by adding a `min_area` / `max_area` filter. The recordings timeline can be used to determine the area of the bounding box in that frame by selecting a timeline item then mousing over or tapping the red box.
|
`min_area` and `max_area` filter on the area of an objects bounding box in pixels and can be used to reduce false positives that are outside the range of expected sizes. For example when a leaf is detected as a dog or when a large tree is detected as a person, these can be reduced by adding a `min_area` / `max_area` filter.
|
||||||
|
|
||||||
### Object Proportions
|
### Object Proportions
|
||||||
|
|
||||||
@@ -52,7 +50,7 @@ Conceptually, a ratio of 1 is a square, 0.5 is a "tall skinny" box, and 2 is a "
|
|||||||
|
|
||||||
### Zones
|
### Zones
|
||||||
|
|
||||||
[Required zones](/configuration/zones.md) can be a great tool to reduce false positives that may be detected in the sky or other areas that are not of interest. The required zones will only create events for objects that enter the zone.
|
[Required zones](/configuration/zones.md) can be a great tool to reduce false positives that may be detected in the sky or other areas that are not of interest. The required zones will only create tracked objects for objects that enter the zone.
|
||||||
|
|
||||||
### Object Masks
|
### Object Masks
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ title: Available Objects
|
|||||||
|
|
||||||
import labels from "../../../labelmap.txt";
|
import labels from "../../../labelmap.txt";
|
||||||
|
|
||||||
Frigate includes the object models listed below from the Google Coral test data.
|
Frigate includes the object labels listed below from the Google Coral test data.
|
||||||
|
|
||||||
Please note:
|
Please note:
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user