EhShoko Models - Model Suite for Manga Translation on iOS
2 min read
This is a collection of ready-to-use models for a complete manga page translation cycle directly on the device (on-device) without sending images to a server. The repository is prepared for the free, open-source iOS app EhShoko, but the weights themselves are converted from well-known open projects into Core ML format (Apple's framework for running AI models on iPhone and iPad) and GGUF. This suite will be useful for mobile reader developers, comic translators, and local AI enthusiasts on Apple devices.
Key features
- Text and speech bubble detection: Includes the
detector-v4-smodel (by ogkalu) andRTMDet(by fumetodev, 1024 px resolution), re-compiled into Core ML with 16-bit floating-point numbers (FP16). - Optical Character Recognition (OCR):
manga-ocr-base-CPT v2(based onkha-white/manga-ocr-base), split into an encoder and a single-step decoder in Core ML (FP16) format. - Page cleaning (Inpainting): Two models from the
LaMafamily (512×512 px) for painting over old text — the specializedlama_large_512pxfor manga/anime and the universalbig-lama. - Local translator:
GalTransl-v4-4B-2601by SakuraLLM, requantized from Q6_K to the lighterQ4_K_Mformat viallama.cpp.
What you can do
- Integrate into an iOS app: Use ready-made
.mlpackagebundles to create an offline comic or visual novel translator on iPhone and Mac. - Build your own scan cleaning pipeline: Combine RTMDet and LaMa to automatically find text speech bubbles and clear them out before typesetting.
- Run with llama.cpp: Connect the quantized version of GalTransl-v4-4B for local text translation without high memory requirements.
Example
The directory structure in the repository is organized using the // scheme — for example, det-v4s/1 for the detector or inp-lama-manga/1 for inpainting. The application checks the size and SHA-256 checksum before downloading the .mlpackage bundle, and when a model is updated, a new version folder is created without overwriting old files.
Read more
DetailsFormats: Core ML (
.mlpackage in FP16 and FP32 for big-lama) and GGUF (Q4_K_M).Licenses depend on the specific folder: detectors and big-lama are Apache-2.0, manga-inpainting is MIT + Apache-2.0.
Limitations: The
manga-ocr-base-CPT and GalTransl-v4-4B models are distributed under CC BY-NC-SA 4.0 — strictly for non-commercial use.









Comments