Spaces:
Running
Running
File size: 1,386 Bytes
947c08e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
version: "3.8"
services:
manga_image_translator:
build:
context: ./../../
container_name: manga_image_translator_localdev
command: --verbose --translator=offline --log-web --mode web --manga2eng --use-inpainting --host=0.0.0.0 --port=5003 # (FOR GPU) --use-gpu
# Batch Mode
#command: --mode=batch --verbose --translator=offline --target-lang=ENG --manga2eng --use-inpainting --image "/app/Manga"# (FOR GPU) --use-gpu
volumes:
- ./../../result:/app/result
- ./../../detection:/app/detection
- ./../../fonts:/app/fonts
- ./../../inpainting:/app/inpainting
- ./../../ocr:/app/ocr
- ./../../text_mask:/app/text_mask
- ./../../text_rendering:/app/text_rendering
- ./../../translators:/app/translators
- ./../../textblockdetector:/app/textblockdetector
- ./../../textline_merge:/app/textline_merge
- ./../../translate_demo.py:/app/translate_demo.py
- ./../../web_main.py:/app/web_main.py
- ./../../ui.html:/app/ui.html
- facehuggingcache:/root/.cache/huggingface/
# # For Batch Mode
# - ./../../Manga:/app/Manga
# - ./../../Manga-translated:/app/Manga-translated
ports:
- 5003:5003
ipc: host
# For GPU
#deploy:
# resources:
# reservations:
# devices:
# - capabilities: [gpu]
volumes:
facehuggingcache: |