Download docker-compose.yml from MuhammadQasimShabbir3/HumanFace2ComicFaceGenerator: direct link, hf CLI and curl.
- Browser
- Download file 970 Bytes
-
https://huggingface.co/spaces/MuhammadQasimShabbir3/HumanFace2ComicFaceGenerator/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/MuhammadQasimShabbir3/HumanFace2ComicFaceGenerator/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/MuhammadQasimShabbir3/HumanFace2ComicFaceGenerator/resolve/main/docker-compose.yml
970 Bytes
| version: '3.8' | |
| services: | |
| human-to-comic: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| container_name: human-to-comic-generator | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| - TORCH_HOME=/app/.cache/torch | |
| - PYTHONUNBUFFERED=1 | |
| - GENERATOR_CHECKPOINT=/app/model_weights/generator_best.pth | |
| volumes: | |
| - ./model_weights:/app/model_weights:ro | |
| - torch_cache:/app/.cache/torch | |
| - uploads:/app/uploads | |
| runtime: nvidia | |
| deploy: | |
| resources: | |
| reservations: | |
| devices: | |
| - driver: nvidia | |
| count: 1 | |
| capabilities: [gpu] | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:7860/api/predict"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 40s | |
| volumes: | |
| torch_cache: | |
| driver: local | |
| uploads: | |
| driver: local | |
| networks: | |
| default: | |
| name: human-to-comic-network | |
| driver: bridge | |