koharu README

The project's README from github.com/koharu-rs/koharu. As one markdown file: README.md.

Koharu

ML-powered manga translator, written in Rust.

GitHub Downloads (all assets, all releases)

koharu-rs%2Fkoharu | Trendshift

Getting Started · Docs · Bug reports · Discord

日本語 | 简体中文

Koharu introduces a local-first workflow for manga translation, utilizing the power of ML to automate the process. It combines the capabilities of object detection, OCR, inpainting, and LLMs to create a seamless translation experience.

[!NOTE] Koharu runs its vision models and LLMs locally on your machine to keep your data private and secure.


screenshot

[!NOTE] Join our Discord server for support and discussion.

Features

Hardware Acceleration

Koharu supports CUDA and ROCm / HIP on Windows and Linux, Metal on Apple silicon, and Vulkan on Windows and Linux. Keep your graphics driver current; a full CUDA or ROCm SDK installation is not required. See Runtime and hardware requirements for model-specific guidance.

CUDA

CUDA 13.3 requires an NVIDIA Turing-class or newer GPU and an R610 or newer driver. Check NVIDIA's official CUDA toolkit, driver, and architecture matrix and install the latest NVIDIA driver.

ROCm / HIP

ROCm 10.0 support depends on the exact AMD GPU, operating system, and driver combination. Check AMD's official ROCm 10.0.0 compatibility matrix and install a compatible AMD driver.

Metal

Metal is available on Apple silicon Macs.

Vulkan

Vulkan is available on Windows and Linux as an alternative to CUDA and ROCm / HIP.

WebGPU

The editor canvas uses WebGPU and requires a current graphics driver even when inference runs on the CPU.

CPU

CPU inference is available for supported workloads but is substantially slower.

Machine Learning Models

Koharu uses separate models for detection, OCR, inpainting, and translation. Vision and inpainting and translation and generation have separate model settings.

Computer Vision Models

Detection, OCR, and inpainting models are selected separately.

Detection and Layout

The detection model finds text regions, speech bubbles, and segmentation masks.

OCR

OCR reads source text from detected regions.

Inpainting

Inpainting reconstructs the image behind source text before the translation is rendered.

Large Language Models

Translation can use a local language model or a remote API.

General-Purpose Local Models

Uncensored Local Models

Cloud Providers

Hosted LLM providers: OpenAI, Gemini, Claude, Grok, MiniMax, DeepSeek, and OpenRouter.

Machine Translation Providers

Machine-translation providers: DeepL, Google Cloud Translation, and Caiyun.

OpenAI-Compatible Providers

OpenAI-compatible endpoints are also supported.

Installation

Download release builds from the releases page. Installation requirements and first launch vary by operating system.

Builds are available for Windows, macOS, and Linux.

WinGet

Install on Windows with winget:

winget install koharu

Homebrew

Install on macOS with Homebrew:

brew install --cask koharu

Troubleshooting

Startup, runtime, model, and provider errors are covered in Troubleshooting. Set RUST_LOG to debug or trace for verbose logs:

# macOS / Linux
RUST_LOG=debug koharu
# Windows (PowerShell)
$env:RUST_LOG="debug"; koharu.exe

Development

Platform dependencies and validation commands for local builds are listed in Development Setup.

Prerequisites

Install dependencies

bun install

Development

bun dev

Build

bun run build

The executable is written to target/release.

Sponsorship

If Koharu is useful in your workflow, consider sponsoring the project.

sponsors

Contributors ❤️

Thanks to all the contributors who have helped make Koharu better!

License

Copyright 2025-2026 Mayo Takanashi and Koharu contributors.

Koharu is dual-licensed under the MIT License or the Apache License, Version 2.0, at your option.

koharu (koharu-rs/koharu)

Searching Database…

6.4K ·GitHub
这是什么?Koharu 是一款用 Rust 编写的、基于机器学习的漫画翻译工具,它结合了目标检测、OCR、图像修复和大语言模型,能够自动翻译漫画页面,并且所有处理都在本地完成。
它是命令行工具还是完整的桌面应用?它是一个桌面图形界面应用,带有基于 WebGPU 的画布,可以手动清理、放置文字和排版页面,既不是库也不是命令行工具。
我怎么把它跑起来?从 releases 页面下载适用于 Windows、macOS 或 Linux 的预编译版本,或者在 Windows 上用 WinGet、macOS 上用 Homebrew 安装。
硬件加速或性能方面有什么坑吗?用 CPU 推理也可以,但据称会慢很多;GPU 加速则取决于具体的硬件和驱动组合——CUDA 需要 Turing 架构或更新的 NVIDIA 显卡,ROCm 支持情况因 AMD 显卡、操作系统和驱动而异。即使推理本身在 CPU 上运行,编辑器画布通过 WebGPU 工作时也需要较新的显卡驱动。
我的漫画数据会不会传到我的电脑外面?不会。默认情况下视觉模型和大语言模型都在本地运行,你的漫画页面不会离开你的电脑,不过你也可以选择启用云端大语言模型或机器翻译服务。
我可以往项目里导入哪些文件格式?Koharu 支持位图图片、压缩包和 PDF,并支持多格式项目的页面排序管理。
翻译之后原来的日文文字怎么处理?生成式图像修复模型(比如 FLUX.2 Klein 或 LaMa)会先抹掉原文并重建下面的画面,然后再把翻译好的文字渲染上去。
我能把翻好的成果导出去继续编辑吗?可以,Koharu 支持导出保留图层的 PSD 文件,你既可以把结果拼合后交付,也可以在其他软件里继续编辑各个图层。
功能介绍里提到的基于 agent 的工作流是什么?它可以让一个 agent 自动检查、编辑并驱动整个项目中的检测、OCR、翻译和图像修复流程,而不用你手动一步步操作。
Creator
koharu-rs
Size
98.8 MB
Stars
6.4K
Age
1y
Commits · 90 Days