需在 Web UI 的 Config → Translation 中配置 LLM 提供商和 API Key,否则无法翻译;气泡外文字检测需额外设置可访问 deepghs/AnimeText_yolo 的 Hugging Face token;从源码安装需按平台选择对应 PyTorch 版本,macOS 用不带 cu130 的命令。
MangaTranslator
meangrinchApache-2.0活跃维护用 AI 自动翻译漫画的桌面工具,集 OCR 识别、文字擦除修复和 LLM 翻译于一体,省去手动修图和逐句翻译的麻烦。
Manga translation app powered by AI
git clone https://github.com/meangrinch/MangaTranslator.git
cd MangaTranslator
python -m venv venv
pip install torch==2.14.1+cu130 torchvision==0.29.1+cu130 --extra-index-url https://download.pytorch.org/whl/cu130
pip install -r requirements.txtREADME 未说明具体显存要求,仅指向独立的硬件需求文档;便携包在 Windows 上无额外要求,Linux/macOS 需 Python 3.11+ 和 Git。
一键翻译漫画、韩漫、国漫的 AI 应用,自动检测文字、修复背景并排版
用 AI 自动翻译漫画的桌面工具,集 OCR 识别、文字擦除修复和 LLM 翻译于一体,省去手动修图和逐句翻译的麻烦。
核心能力
- 检测对话气泡与气泡外文字,支持 YOLO 和 SAM 2.1/3
- 用扩散模型修复气泡与背景文字,可选 LaMa、FLUX、Qwen 等
- OCR 与翻译覆盖 60+ 语言,支持云端 API 或本地 LLM
- 自定义字体排版,支持对齐、自动换行与字体包
- 支持单图、文件夹和 ZIP/CBZ 批量处理并保留目录结构
容易踩的坑
- v1.27.0最新正式版2026-10-28 · 2026-10-28 10:11 UTC
New
- feat(providers): add support for gpt-6.1-terra (2d1b368)
- feat(osb): add Koharu Text SAM-TS-L to optionally segment text glyphs (a4f887d, 511fd46, ab21a80, ce44b4c, 0e863a2)
- feat(osb): use dilated glyphs for LaMa inpainting, adding glyphs found at 2x scale inside each box (a4f887d, 0ca7a15)
- feat(osb): measure OSB tilt on SAM-TS-L glyph ink instead of color heuristics (a4f887d, ab21a80)
- feat(osb): clamp OSB inpainting to glyph masks to preserve surrounding art (fa2cbab, c38e4d1, 33f4a51, 9d446e5)
- feat(osb): keep the hue of colored glyphs on color pages using the SAM-TS-L text map (31052ad)
- feat(osb): recover OSB text the detector misses from SAM-TS-L glyphs confirmed on crops (98550ad, b5bd3b9, 50bc8b5, 9d446e5)
- feat(cleaning): erase letters touching bubble outlines and clamp colored-bubble inpainting to glyph masks using SAM-TS-L (00d6077)
- feat(cleaning)!: inpaint colored bubbles by default while OSB text removal is enabled (b60dc14, e4808c1)
- feat(ui): show parameter counts in OSB inpainting model labels (36a6949)
Changes
- fix(rendering): check rasterized glyph ink against the padded safe area so text clears inward bubble spikes (1dc5fad)
- fix(osb): stop text_free boxes inside a bubble from exempting the bubble's own text (7413bea)
- fix(osb): paint solid fills at render time so they match the angle the text is drawn at, clipped to the text box so they don't paint over panel borders (a1c78d1, dac66e2)
- fix(osb): keep the tilt of staggered vertical columns, and stop italic stroke slant and small kana from tilting upright text (dbd747a, 9f6fd0b, 2b4094e)
- fix(cleaning): keep non-text marks like blush lines inside solid bubbles instead of filling over them (8cbf311)
- fix(ui): drop the 8000px size cap from the Translator tab so tall strips like batch uploads are accepted (549b56f)
- docs: add SAM-TS-L to the hardware requirements, model credits, and troubleshooting (a4f887d, 8a7964e, 0e863a2)
- docs: remove redundant comments and module docstrings, and correct stale ones (6f58024, 96eff1d)
- chore(llm): update CLI default models and lower default reasoning and Claude effort to medium (0bf68fa)
- chore(osb): label model inpaint count as "Model" instead of "Flux" in the outside-text log (7d3a2af)
- chore(ui): increase config status message display duration to 6s (e347a09)
Full Changelog: https://github.com/meangrinch/mangatranslator/compare/v1.26.0...v1.27.0
- v1.26.02026-10-26 · 2026-10-26 07:48 UTC
查看更新说明
New
- feat: add support for kimi-k3.1-pro (6fd11f3)
- feat(osb): add Flux.3 Klein, Fibo 2.0 Edit Turbo, Qwen-Image 2.1 Turbo, and LaMa Manga inpainting methods (dcf7be5, fe97b09, cdbf557)
- feat(text)!: hyphenate at syllable breaks in 34 target languages, newly covering Russian, Ukrainian, Bulgarian, Serbian (Cyrillic), and Greek, and stop hyphenating Vietnamese (97062bb)
- feat(osb): enable luminance correction for all OSB inpainting models (a51a928)
- feat(osb): remove outdated sd.cpp builds automatically (25b93ba)
Changes
- refactor(models)!: group downloads by task, move existing folders to the new layout on first launch, and store downloads in the
--modelsdirectory (6aa29fe) - refactor(osb)!: merge sd.cpp Cache-DiT, TaylorSeer, and DBCache into one Step Skip option (fa2a7c1)
- fix(text)!: remove the Hyphen Penalty setting and
--hyphen-penaltyflag, which never changed layouts (97062bb) - fix(text): repeat the hyphen on the next line in Spanish, Portuguese, Galician, and West/South Slavic languages, never break at an apostrophe or hyphen, and keep words whole when the dictionary has no break (97062bb)
- fix(osb): release torch VRAM before sd.cpp jobs and report sd.cpp failure reasons (3ecd05e)
- docs: update models, hardware tables, and troubleshooting for the new inpainting methods (dcf7be5)
- docs(readme): order model and library credits by pipeline stage (82b0e3e)
- chore(osb): default the sd.cpp cache method to Step Skip (f77ce20)
- chore(deps): bump sd.cpp to master-1015-e41fbcf and require diffusers>=0.42.0 and sdnq>=0.2.8 (dcf7be5)
Full Changelog: https://github.com/meangrinch/mangatranslator/compare/v1.25.4...v1.26.0
- v1.25.42026-10-23 · 2026-10-23 05:56 UTC
查看更新说明
Changes
- fix(ui): send model-dependent radio choices on Reset Defaults to avoid Gradio choice errors (fc17069)
- fix(cli): default --reasoning-effort to the model's default instead of "high" (5f9601b)
- docs(ui): describe OpenRouter web search as the model's built-in search instead of Exa (0612547)
- chore: bump PyTorch to 2.14.1 and minimum Python to 3.11 (5edd861)
- style: apply ruff format to RTL range check in text_processing (1c325d0)
Full Changelog: https://github.com/meangrinch/mangatranslator/compare/v1.25.3...v1.25.4
- v1.25.32026-10-23 · 2026-10-23 02:07 UTC
查看更新说明
Changes
- fix(osb): reword Klein inpainting prompt to erase only lettering and keep surrounding art (3319729)
- refactor: move Split Long Strips to the detection settings in the UI and CLI (82a00c1)
- chore(models): remove deprecated Claude 4.5 and GPT-4o/4.1/5.1/5.4-nano models (deb7883)
- chore: drop unused mypy cache and .pt/.onnx patterns from .gitignore (ef88709)
Full Changelog: https://github.com/meangrinch/mangatranslator/compare/v1.25.2...v1.25.3
- v1.25.22026-10-18 · 2026-10-18 23:59 UTC
查看更新说明
Changes
- fix(osb): detect text color with separate B/W and color-page logic (dbb699b)
Full Changelog: https://github.com/meangrinch/mangatranslator/compare/v1.25.1...v1.25.2
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Quick Setup
1. Download
- Portable Package (Recommended): Download the portable build from Releases.
- Windows: No requirements.
- Linux / macOS: Requires Python 3.11+ and Git.
- From Source:
git clone https://github.com/meangrinch/MangaTranslator.git cd MangaTranslator python -m venv venv .\venv\Scripts\activate # or source venv/bin/activate (Linux/macOS) pip install torch==2.14.1+cu130 torchvision==0.29.1+cu130 --extra-index-url https://download.pytorch.org/whl/cu130 # or pip install torch==2.14.1 torchvision==0.29.1 (macOS) pip install -r requirements.txt
For additional information, see Installation.
2. Configure
- Provider: In the Web UI, navigate to Config → Translation to select your LLM provider (e.g., Google, OpenAI, Anthropic, DeepSeek...) and enter your API key, or use a local OpenAI-compatible endpoint (e.g., llama.cpp). Save to config to persist API keys/settings across sessions.
- Outside-Bubble Text (Optional): Navigate to Config → OSB Text and set a Hugging Face token with access to deepghs/AnimeText_yolo.
- Environment Variables: Alternatively, you can configure credentials in your environment (e.g.,
GEMINI_API_KEY,HF_TOKEN) for both Web UI and CLI usage.
For additional information, see Configuration.
3. Translate
- Web UI: Upload images to the Translator/Batch tab and click Translate.
- CLI:
python main.py --input "path/to/page.jpg" --input-language "Japanese" --output-language "English" --font-dir "fonts/Komika Hand" --provider Google --google-api-key <...> --osb-enable --osb-font-dir "fonts/Comicka" --osb-hf-token <...>
For additional examples, see CLI.
[!TIP] You can enable
Cleaning-only Modeby navigating to Config → Other in the Web UI, or pass--cleaning-onlyin the CLI, to remove text without translating (e.g., for manual scanlation).
Features
- Automation: One-click translation; no manual intervention required
- Interfaces: Web UI (Gradio) and CLI
- Processing: Single image, folder, and ZIP/CBZ archive batch processing (with directory preservation)
- Detection: Speech bubble and outside-bubble text detection (YOLO, SAM 2.1/3)
- Cleaning: Inpaint speech bubbles and background text (Fibo 2.0, FLUX.3 Image Klein, Qwen-Image 2.1, FLUX.2 Klein, FLUX.1 Kontext, LaMa, or OpenCV)
- Translation: OCR and translation supporting 60+ languages (cloud API or local LLM)
- Rendering: Custom text rendering with alignment, word wrap, and custom font packs
- Upscaling: Text region and full-page artwork upscaling (2x-AnimeSharpV4)
- Configuration: Flexible controls to adapt to diverse page layouts and fine-tune output quality
Documentation
Support the Project
MangaTranslator is open-source and free. If it saves you time or enhances your reading experience, consider supporting its development!
License & Credits
- YOLOv8m Speech Bubble Detector: kitsumed
- Manga109 Speech Bubble Detector: huyvux3005
- Manga109 YOLO: deepghs
- AnimeText YOLO: deepghs
- Comic Text and Bubble Detector RT-DETR-v2: ogkalu
- SAM 2.1: Meta AI
- SAM 3: Meta AI
- Manga OCR: kha-white
- PaddleOCR-VL-1.6: PaddlePaddle
- Koharu Text SAM-TS-L: mayocream
- LaMa Manga: mayocream
- FLUX.1 Kontext: Black Forest Labs
- FLUX.2 Klein 4B: Black Forest Labs
- FLUX.2 Klein 9B: Black Forest Labs
- FLUX.3 Image Klein: Black Forest Labs
- Fibo 2.0 Edit Turbo: Bria AI
- Qwen-Image-2.1-Turbo: Qwen
- 2x-AnimeSharpV4: Kim2091
- Nunchaku: Nunchaku AI
- SDNQ Quants: Disty0, OzzyGT, SamuelTallet
- stable-diffusion.cpp: leejet
- Unsloth Quants: Unsloth
- INT8 ConvRot Weights: Comfy-Org, ml-resources