Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Koharu
Automated manga translation tool with LLM, written in Rust.
Koharu introduces a new workflow for manga translation, utilizing the power of LLMs to automate the process. It combines the capabilities of object detection, OCR, inpainting, and LLMs to create a seamless translation experience.
Under the hood, Koharu uses ort and candle for high-performance inference, and uses Tauri for the GUI. All components are written in Rust, ensuring safety and speed.
[!NOTE] For help and support, please join our Discord server.
Features
- Automatic speech bubble detection
- OCR for manga text recognition
- Inpainting to remove original text from images
- LLM-powered translation
- UAX #50 compliant vertical text layout
- GPU acceleration via CUDA
GPU Acceleration
Currently, Koharu only supports NVIDIA GPUs via CUDA.
CUDA
Koharu is built with CUDA support, allowing it to leverage the power of NVIDIA GPUs for faster processing.
Koharu bundles CUDA toolkit 12 and cuDNN 9, so you don't need to install them separately. Just make sure you have the appropriate NVIDIA drivers installed on your system.
Models
Koharu relies on a mixin of ONNX models and LLM models to perform various tasks.
ONNX Models
Koharu uses several pre-trained models for different tasks:
The models will be automatically downloaded when you run Koharu for the first time.
We convert the original models to ONNX format for better performance and compatibility with Rust. The converted models are hosted on Hugging Face.
LLM Models
Koharu supports various quantized LLM models in GGUF format via candle. Currently supported models include:
[!NOTE] Please open an issue if you want support for other models.
Installation
You can download the latest release of Koharu from the releases page.
We provide pre-built binaries for Windows, for other platforms, you may need to build from source, see the Development section below.
Development
Prerequisites
Install dependencies
Build
Usage
After building, you can run the Koharu binary located in target/release/.
Related Projects
- LabelPlus - A manga annotation tool with Photoshop integration.
- LunaTranslator - Translation tool for visual novels and games.
License
Koharu is licensed under the GNU General Public License v3.0.