Face Detector container now able to be created, started and stopped from within miku-bot container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user