Skip to content
PhundrakPublic
forked from koharu-rs/koharu

About

Automated manga translation tool with LLM, written in Rust.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Koharu

LLM を使った自動漫画翻訳ツール。

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.

Koharu is built with Rust, ensuring high performance and reliability. The bundle is extremely lightweight (less than 20MB) and can be run on any machine without any dependencies.

Note

For help and support, please join our Discord server.

Preview

detection translation

The build is available for Windows, MacOS, and Linux. You can download the latest release from the releases page.

Note

Koharu is still in development and may not work perfectly. Please report any issues you encounter on the issues page.

Technology

Koharu is built using Tauri, a framework for building lightweight, secure, and fast desktop applications. The interface is built with React and Konva, written in TypeScript. The machine learning models are re-implemented in Rust, using the Ort ONNX runtime for inference. The models are optimized for performance and can run on any machine without the need for a GPU.

Guidance

To use CUDA acceleration, you need to install the CUDA toolkit 12.6 and the cuDNN 9.8.0 for CUDA 12 library.

Workflow

The workflow of translation consists of the following steps:

  • Detect the text in the manga using a text detection model.
  • Extract the detected text using an OCR model.
  • Translate the extracted text using an LLM.
  • Inpaint the translated text back into the manga using an inpainting model.

Models

Development

Prerequisites

  • Rust 1.85
  • Bun

Windows

Please install Visual Studio C++ Build tools first.

Then, install the dependencies using the following commands in PowerShell:

winget install --id=Oven-sh.Bun
winget install rustlang.rustup

rustup

Build

bun install
bun tauri dev

About

Automated manga translation tool with LLM, written in Rust.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages