Closed Kolyada closed 4 months ago
I used translator with batch mode and it downloads the same file each run. Is it possible to cache it anyway?
docker run --env-file=.env -v /home/translate/images:/app/images -v /home/translate/images-translated:/app/images-translated -v /home/translate/fonts:/app/fonts --ipc=host --rm zyddnys/manga-image-translator:main --mode=batch --input=/app/images --target-lang=RUS --font-path=fonts/beautiful.ttf --ocr=48px --detection-size=2560 --detector=default --manga2eng --inpainter=lama_mpe --upscale-ratio=2 --translator=deepl
-- Downloading: "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesrgan-ncnn-vulkan-20220424-ubuntu.zip"
you should add something like this to your docker command to prevent downloading model each time: -v /home/translate/model:/app/model
-v /home/translate/model:/app/model
Issue
I used translator with batch mode and it downloads the same file each run. Is it possible to cache it anyway?
Command Line Arguments
Console logs