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
|
||||
target: devcontainer
|
||||
## Uncomment this block for nvidia gpu support
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: 1
|
||||
capabilities: [gpu]
|
||||
# deploy:
|
||||
# resources:
|
||||
# reservations:
|
||||
# devices:
|
||||
# - driver: nvidia
|
||||
# count: 1
|
||||
# capabilities: [gpu]
|
||||
environment:
|
||||
YOLO_MODELS: yolov7-320
|
||||
devices:
|
||||
|
||||
@ -59,9 +59,9 @@ def manage_embeddings(config: FrigateConfig) -> None:
|
||||
embeddings = Embeddings()
|
||||
|
||||
# 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()
|
||||
os.remove(f"{CONFIG_DIR}/.reindex_events")
|
||||
os.remove(f"{CONFIG_DIR}/.reindex")
|
||||
|
||||
maintainer = EmbeddingMaintainer(
|
||||
config,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user