mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-20 20:43:01 +03:00
Add Ultralytics YOLO pose detector and update documentation.
This commit is contained in:
@@ -1,13 +1,39 @@
|
||||
#!/command/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
# Start the fake Frigate service
|
||||
# Start the Frigate service (with optional fake mode for legacy behaviour)
|
||||
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
if [ "${DEV_AUTOSTART_FRIGATE:-1}" != "1" ]; then
|
||||
# Tell S6-Overlay not to restart this service
|
||||
s6-svc -O .
|
||||
|
||||
while true; do
|
||||
echo "[INFO] The fake Frigate service is running..."
|
||||
sleep 5s
|
||||
done
|
||||
fi
|
||||
|
||||
# Tell S6-Overlay not to restart this service
|
||||
s6-svc -O .
|
||||
|
||||
while true; do
|
||||
echo "[INFO] The fake Frigate service is running..."
|
||||
sleep 5s
|
||||
done
|
||||
if [ -e /usr/local/bin/opt_in_out ]; then
|
||||
/usr/local/bin/opt_in_out --opt_out > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
set_libva_version() {
|
||||
local ffmpeg_path
|
||||
ffmpeg_path=$(python3 /usr/local/ffmpeg/get_ffmpeg_path.py)
|
||||
LIBAVFORMAT_VERSION_MAJOR=$("$ffmpeg_path" -version | grep -Po "libavformat\W+\K\d+")
|
||||
export LIBAVFORMAT_VERSION_MAJOR
|
||||
}
|
||||
|
||||
echo "[INFO] Preparing Frigate..."
|
||||
set_libva_version
|
||||
|
||||
echo "[INFO] Starting Frigate..."
|
||||
|
||||
cd /workspace/frigate || echo "[ERROR] Failed to change working directory to /workspace/frigate"
|
||||
|
||||
exec 2>&1
|
||||
exec python3 -u -m frigate
|
||||
|
||||
@@ -24,6 +24,7 @@ peewee == 3.17.*
|
||||
peewee_migrate == 1.13.*
|
||||
psutil == 7.1.*
|
||||
pydantic == 2.10.*
|
||||
ultralytics == 8.3.*
|
||||
git+https://github.com/fbcotter/py3nvml#egg=py3nvml
|
||||
pytz == 2025.*
|
||||
pyzmq == 26.2.*
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
scikit-build == 0.18.*
|
||||
nvidia-pyindex
|
||||
ultralytics == 8.3.*
|
||||
|
||||
Reference in New Issue
Block a user