mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 14:15:22 +03:00
put docker-compose back and make reindex match docs
This commit is contained in:
parent
cd5cd8271f
commit
53c0a2a7e8
@ -15,13 +15,13 @@ services:
|
|||||||
# Use target devcontainer-trt for TensorRT dev
|
# Use target devcontainer-trt for TensorRT dev
|
||||||
target: devcontainer
|
target: devcontainer
|
||||||
## Uncomment this block for nvidia gpu support
|
## Uncomment this block for nvidia gpu support
|
||||||
deploy:
|
# deploy:
|
||||||
resources:
|
# resources:
|
||||||
reservations:
|
# reservations:
|
||||||
devices:
|
# devices:
|
||||||
- driver: nvidia
|
# - driver: nvidia
|
||||||
count: 1
|
# count: 1
|
||||||
capabilities: [gpu]
|
# capabilities: [gpu]
|
||||||
environment:
|
environment:
|
||||||
YOLO_MODELS: yolov7-320
|
YOLO_MODELS: yolov7-320
|
||||||
devices:
|
devices:
|
||||||
|
|||||||
@ -59,9 +59,9 @@ def manage_embeddings(config: FrigateConfig) -> None:
|
|||||||
embeddings = Embeddings()
|
embeddings = Embeddings()
|
||||||
|
|
||||||
# Check if we need to re-index events
|
# Check if we need to re-index events
|
||||||
if os.path.exists(f"{CONFIG_DIR}/.reindex_events"):
|
if os.path.exists(f"{CONFIG_DIR}/.reindex"):
|
||||||
embeddings.reindex()
|
embeddings.reindex()
|
||||||
os.remove(f"{CONFIG_DIR}/.reindex_events")
|
os.remove(f"{CONFIG_DIR}/.reindex")
|
||||||
|
|
||||||
maintainer = EmbeddingMaintainer(
|
maintainer = EmbeddingMaintainer(
|
||||||
config,
|
config,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user