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

View File

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