Face Detector container now able to be created, started and stopped from within miku-bot container

This commit is contained in:
2026-01-11 02:01:41 +02:00
parent 2d3b9d0e08
commit 353c9c9583
14 changed files with 2275 additions and 39 deletions

View File

@@ -108,6 +108,10 @@ async def _detect_face(self, image_bytes: bytes, debug: bool = False):
# 4. ALWAYS stop container to free VRAM
if face_detector_started:
await self._stop_face_detector(debug=debug)
### Automatic creation
If the `anime-face-detector` container does not exist (for example after a reboot or `docker compose down`), the bot will now attempt to create and start the container automatically via the Docker Engine API. This avoids requiring a manual `docker compose --profile tools up -d` step.
```
## Container States