1
0
mirror of https://github.com/blakeblackshear/frigate.git synced 2025-02-23 00:18:31 +01:00
Commit Graph

343 Commits

Author SHA1 Message Date
Nicolas Mowen
83ac42cbdc
Use correct path for script () 2025-01-18 21:33:13 -07:00
Nicolas Mowen
a5ce8d0d77
Fix env variable exporting () 2025-01-18 21:31:56 -06:00
Nicolas Mowen
0ee2e404da
Correctly calculate ffmpeg version based on ffmpeg path ()
* Correctly calculate ffmpeg version based on ffmpeg path

* Formatting
2025-01-18 20:30:35 -06:00
Marc Altmann
3947e79086
update FFmpeg to ensure compatibility with newer kernels () 2025-01-18 05:48:28 -07:00
Nicolas Mowen
15ffe5c254
Fix trt () 2024-12-22 11:56:04 -07:00
Nicolas Mowen
a767dad3a1
Simplify TensorRT image () 2024-12-22 12:13:29 -06:00
Nicolas Mowen
70fc5393b1
Make hailo wheels support any minor version () 2024-12-20 10:36:32 -06:00
Jan Čermák
5475672a9d
Fix extraction of Hailo userspace libs ()
The archive already has everything contained in a rootfs folder, extract
it as-is to the root folder. This also reverts changes from
33957e5360 which addressed the same issue
in a less optimal way.
2024-12-02 08:35:51 -06:00
Nicolas Mowen
33957e5360
Set hailo build library path () 2024-11-24 19:07:41 -07:00
Nicolas Mowen
66277fbb6c
Fix embeddings ()
* Fix embeddings reading frames

* Fix event update reading

* Formatting

* Pin AIO http to fix build failure

* Pin starlette
2024-11-19 12:20:04 -06:00
Austin Kirsch
c1bfc1df67
fix tensorrt model generation variable () 2024-11-10 16:23:32 -06:00
Nicolas Mowen
a68c7f4ef8
Pin all intel packages () 2024-11-09 11:08:25 -06:00
Nicolas Mowen
7c474e6827
Pin intel driver ()
* Pin intel driver

* Use slightly older version
2024-11-09 08:09:36 -07:00
Nicolas Mowen
46ed520886
Don't generate tensorrt models by default () 2024-11-08 07:37:18 -06:00
Blake Blackshear
27ef661fec
simplify hailort () 2024-11-02 07:13:28 -05:00
joshjryan
d7935abc14
Set the loglevel for OpenCV ffmpeg messages to fatal ()
* Set the loglevel for OpenCV ffmpeg messages to fatal

* Set OPENCV_FFMPEG_LOGLEVEL in Dockerfile
2024-11-01 20:01:38 -06:00
Nicolas Mowen
bb4e863e87
Fix jetson onnxruntime ()
* Fix jetson onnxruntime

* Remove comment
2024-10-30 19:16:28 -05:00
Nicolas Mowen
c7a4220d65
Jetson onnxruntime ()
* Add support for using onnx runtime with jetson

* Update docs

* Clarify
2024-10-30 08:22:28 -06:00
Blake Blackshear
d12c7809dd
Update Hailo Driver to 4.19 ()
* update to hailo driver 4.19

* update builds for 4.19
2024-10-29 18:40:24 -05:00
Dan Raper
abd22d2566
Update create_config.py () 2024-10-29 08:31:03 -06:00
Corwin
2d27e72ed9
fix: hailo driver wrong version name () 2024-10-25 06:07:01 -06:00
Nicolas Mowen
f9fba94863
Slightly downgrade onnxruntime-gpu () 2024-10-24 13:17:11 -05:00
Nicolas Mowen
f9b246dbd0
Deps updates ()
* Update nvidia deps

* Update python deps

* Update web deps
2024-10-24 08:48:14 -05:00
Nicolas Mowen
8ac4b001a2
Various fixes ()
* Fix access

* Reorganize tracked object for imports

* Separate out rockchip build

* Formatting

* Use original ffmpeg build

* Fix build

* Update default search type value
2024-10-17 11:02:27 -05:00
Nicolas Mowen
edaccd86d6
Fix build () 2024-10-16 19:26:47 -05:00
Nicolas Mowen
9f866be110
Remove line in install deps () 2024-10-16 11:40:31 -05:00
Nicolas Mowen
06f47f262f
Use config attribute map instead of hard coded () 2024-10-16 07:27:36 -06:00
Nicolas Mowen
bc3a06178b
Embedding gpu () 2024-10-09 19:46:31 -06:00
Josh Hawkins
24ac9f3e5a
Use sqlite-vec extension instead of chromadb for embeddings ()
* swap sqlite_vec for chroma in requirements

* load sqlite_vec in embeddings manager

* remove chroma and revamp Embeddings class for sqlite_vec

* manual minilm onnx inference

* remove chroma in clip model

* migrate api from chroma to sqlite_vec

* migrate event cleanup from chroma to sqlite_vec

* migrate embedding maintainer from chroma to sqlite_vec

* genai description for sqlite_vec

* load sqlite_vec in main thread db

* extend the SqliteQueueDatabase class and use peewee db.execute_sql

* search with Event type for similarity

* fix similarity search

* install and add comment about transformers

* fix normalization

* add id filter

* clean up

* clean up

* fully remove chroma and add transformers env var

* readd uvicorn for fastapi

* readd tokenizer parallelism env var

* remove chroma from docs

* remove chroma from UI

* try removing custom pysqlite3 build

* hard code limit

* optimize queries

* revert explore query

* fix query

* keep building pysqlite3

* single pass fetch and process

* remove unnecessary re-embed

* update deps

* move SqliteVecQueueDatabase to db directory

* make search thumbnail take up full size of results box

* improve typing

* improve model downloading and add status screen

* daemon downloading thread

* catch case when semantic search is disabled

* fix typing

* build sqlite_vec from source

* resolve conflict

* file permissions

* try build deps

* remove sources

* sources

* fix thread start

* include git in build

* reorder embeddings after detectors are started

* build with sqlite amalgamation

* non-platform specific

* use wget instead of curl

* remove unzip -d

* remove sqlite_vec from requirements and load the compiled version

* fix build

* avoid race in db connection

* add scale_factor and bias to description zscore normalization
2024-10-07 14:30:45 -06:00
Nicolas Mowen
9c751230a1
Include lsof in container () 2024-10-03 17:23:37 -05:00
Nicolas Mowen
e725730982
Fix shared memory frames being stuck when a camera capture crashed ()
* Fix shared memory frames being stuck when a camera capture crashed

* Update ffmpeg build
2024-10-03 09:31:07 -06:00
Nicolas Mowen
18bf7f93fa
Improve rocm handling of different models ()
* Improve rocm handling of different models

* Formatting

* Fix type check
2024-09-30 16:40:46 -05:00
Nokius
b54032bdc7
make the hailo user instalation script a bit more failsafe ()
This will checks if the firmware folder is present if not it will created it informs the user to reboot to load the firmware for the hailo8l detector.
2024-09-28 05:55:17 -06:00
Josh Hawkins
40fe3b4358
Search functionality and UI tweaks ()
* Portal tooltips

* Add ability to time_range filter chroma searches

* centering and padding consistency

* add event id back to chroma metadata

* query sqlite first and pass those ids to chroma for embeddings search

* ensure we pass timezone to the api call

* remove object lifecycle from search details for non-object events

* simplify hour calculation

* fix query without filters

* bump chroma version

* chroma 0.5.7

* fix selecting camera group in cameras filter button
2024-09-26 15:30:56 -05:00
Nicolas Mowen
20fd1db0f4
Update hailo driver to 4.18 () 2024-09-26 12:16:08 -06:00
Josh Hawkins
68465aed49
Increase healthcheck start period to 5 minutes () 2024-09-25 15:14:10 -06:00
Nicolas Mowen
fc3aac96f2
Remove incorrect () 2024-09-25 14:53:17 -05:00
Rui Alves
cffc431bf0
Frigate HTTP API using FastAPI ()
* POC: Added FastAPI with one endpoint (get /logs/service)

* POC: Revert error_log

* POC: Converted preview related endpoints to FastAPI

* POC: Converted two more endpoints to FastAPI

* POC: lint

* Convert all media endpoints to FastAPI. Added /media prefix (/media/camera && media/events && /media/preview)

* Convert all notifications API endpoints to FastAPI

* Convert first review API endpoints to FastAPI

* Convert remaining review API endpoints to FastAPI

* Convert export endpoints to FastAPI

* Fix path parameters

* Convert events endpoints to FastAPI

* Use body for multiple events endpoints

* Use body for multiple events endpoints (create and end event)

* Convert app endpoints to FastAPI

* Convert app endpoints to FastAPI

* Convert auth endpoints to FastAPI

* Removed flask app in favour of FastAPI app. Implemented FastAPI middleware to check CSRF, connect and disconnect from DB. Added middleware x-forwared-for headers

* Added starlette plugin to expose custom headers

* Use slowapi as the limiter

* Use query parameters for the frame latest endpoint

* Use query parameters for the media snapshot.jpg endpoint

* Use query parameters for the media MJPEG feed endpoint

* Revert initial nginx.conf change

* Added missing even_id for /events/search endpoint

* Removed left over comment

* Use FastAPI TestClient

* severity query parameter should be a string

* Use the same pattern for all tests

* Fix endpoint

* Revert media routers to old names. Order routes to make sure the dynamic ones from media.py are only used whenever there's no match on auth/etc

* Reverted paths for media on tsx files

* Deleted file

* Fix test_http to use TestClient

* Formatting

* Bind timeline to DB

* Fix http tests

* Replace filename with pathvalidate

* Fix latest.ext handling and disable uvicorn access logs

* Add cosntraints to api provided values

* Formatting

* Remove unused

* Remove unused

* Get rate limiter working

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
2024-09-24 07:05:30 -06:00
ofcedwards
b81a8d26e4
Disable keepalive for Safari in nginx vod location () 2024-09-23 08:02:50 -06:00
Nicolas Mowen
6bafb68d77
Remove PyYAML usages and dependency () 2024-09-22 14:08:36 -05:00
Nicolas Mowen
6f2924006c
Include radeontop in arm build () 2024-09-22 10:56:30 -05:00
Nicolas Mowen
61a4a4bc2f
Update openvino to 2024.3 () 2024-09-20 17:20:11 -05:00
Nicolas Mowen
1a51ce712c
Simplify tensorrt building ()
* Simplify tensorrt building

* Use engine context cache
2024-09-20 10:49:44 -05:00
Sean Kelly
535bf6e4b9
Update install_deps.sh fix typo () 2024-09-19 19:21:04 -06:00
Nicolas Mowen
d498fabe72
Update ffmpeg to 7 and update intel hwaccel docs ()
* Update ffmpeg to 7 and update intel hwaccel docs

* Formatting

* Redo early gen naming

* Add gamma back in

* Fix table

* Add link to intel docs

* Add hwaccel arg for disabling gamma

* Formatting

* Fix tests

* Formatting

* Fix nvidia
2024-09-19 13:29:58 -06:00
Nicolas Mowen
ddf3a687a3
Use intel apt for out of tree drivers () 2024-09-19 07:41:08 -06:00
Nicolas Mowen
4515eb4637
Rocm yolonas ()
* Implement ROCm detectors

* Cleanup tensor input

* Fixup image creation

* Add support for yolonas in onnx

* Get build working with onnx

* Update docs and simplify config

* Remove unused imports
2024-09-18 19:34:07 -05:00
Nicolas Mowen
2362d0e838
Override onnx clip loading ()
* Set caching options for hardware providers

* Always use CPU for searching

* Use new install strategy to remove onnxruntime and then install post wheels
2024-09-17 13:24:35 -06:00
Nicolas Mowen
90d7fc6bc5
Install no deps separately for wheel ()
* Install no deps separately for wheel

* Fix order

* fix arg
2024-09-17 11:04:51 -06:00
Nicolas Mowen
f7eaace7ae
Change path for rockchip ffmpeg () 2024-09-17 07:04:38 -06:00