put docker-compose back and make reindex match docs

This commit is contained in:
Jason Hunter 2024-06-11 23:49:34 -04:00
parent cd5cd8271f
commit 53c0a2a7e8
2 changed files with 9 additions and 9 deletions

View File

@ -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:

View File

@ -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,