Skip to contentSkip to content

Runtime Requirements

Who this installation is for

This guide covers installation prerequisites: Python and uv versions, CPU/NVIDIA/AMD/Apple Silicon backends, common Python packages, models, fonts, and dictionaries. See Windows portable for the Windows package menu and updates, Linux and macOS for Unix scripts, and Docker for volumes. It does not document API keys, user configuration, or translation quality.

The current source of dependency truth is pyproject.toml and uv.lock. requirements_cpu.txt, requirements_gpu.txt, requirements_amd.txt, and requirements_metal.txt are retained legacy/platform notes and must not be mixed into a current uv environment.

System requirements

ItemMinimumRecommended
OSWindows 10/11 (64-bit), Linux, or macOS 12+ (Apple Silicon)Same as minimum
RAM8 GB16 GB or more
Disk5 GB free space10 GB SSD
Python (source)3.12 (>=3.12,<3.13)3.12
NVIDIA GPUGTX 1060 or newer with 6 GB VRAM; GeForce 10-series GPUs must use CUDA 12.6, while CUDA 13.0 requires Turing (compute capability 7.5) or newerMore VRAM is better

GeForce 10-series GPUs such as the GTX 1060/1070/1080 must use the CUDA 12.6 package even when a newer driver reports CUDA 13 support. RTX 20/30/40/50-series GPUs may use CUDA 13.0 when the driver supports it; CUDA 13.0 is recommended for RTX 50-series GPUs. | AMD GPU | RX 7000/9000 series only (RDNA 3/4); ROCm is experimental. Use the CPU build on RX 5000/6000 | — |

Windows AMD users can choose the experimental AMD portable release or install through the maintenance script. Both require a supported GPU, Radeon ROCm 7.2.1, and AMD driver 26.2.2; this remains an experimental Windows path.

Pre-install checks

  1. Use Python 3.12. The project requires >=3.12,<3.13; Python 3.13+ is unsupported.
  2. Install uv, run the command for the target backend from the repository root, and select exactly one backend group.
  3. Provide network access and disk space for PyTorch, models, and (when semantic line breaking is enabled) HanLP models.
  4. Online translators still require provider credentials; credentials are outside this page.
  5. Windows users: first make sure the Microsoft Visual C++ Redistributable (vc_redist.x64.exe) is installed; otherwise the app may fail to start with errors such as missing VCRUNTIME140.dll.
TargetCommandMeaning
NVIDIA CUDA 13.0 (source-development default)uv syncDefault cuda13.0, packaging, and test groups; PyTorch uses cu130
NVIDIA CUDA 12.6uv sync --no-default-groups --group cuda12.6PyTorch uses cu126 from the same source branch
CPUuv sync --no-default-groups --group cpuCPU PyTorch and onnxruntime
Linux AMD ROCmuv sync --no-default-groups --group rocm7.2.1Uses the ROCm 7.2 index; the Windows installer uses the fixed ROCm 7.2.1 runtime
macOS Apple Siliconuv sync --no-default-groups --group metalPyPI PyTorch/MPS; CPU ONNX Runtime

Source installation steps: install Git, uv, and Python 3.12 → run git clone https://github.com/hgmzhn/manga-translator-ui.git and enter the repository root → run the matching uv sync command from the table above → launch with uv run --no-sync. uv.lock pins the resolution; use uv sync --locked when you need to verify consistency.

After syncing, launch the desktop UI with uv run --no-sync python -m desktop_qt_ui.main; --no-sync avoids resolving or installing dependencies at run time.

Installation steps

There is no separate desktop installation page. Source users select a dependency group in the terminal; the Windows installer detects the GPU and selects a variant. Installer text is printed by packaging/launch.py and scripts, not by desktop_qt_ui/locales/*.json.

After installation, desktop controls change runtime behavior but do not replace the installed backend:

  • “Use GPU” (label_use_gpu) requests GPU acceleration; it cannot turn a CPU environment into CUDA.
  • “Disable ONNX GPU Acceleration” (label_disable_onnx_gpu) only disables the ONNX Runtime GPU path.
  • “Unload Models After Translation” (label_unload_models_after_translation) controls post-task memory/VRAM release.
  • “Font” (label_font_family) scans system fonts and project fonts/; reopen the dropdown after adding a file.

What the installer does

Common runtime dependencies are [project].dependencies; hardware backends, packaging, and test tools are in [dependency-groups]. default-groups = ["cuda13.0", "packaging", "test"] makes source-development uv sync use CUDA 13.0 and install developer tooling. The installer disables default groups and selects exactly one hardware group, so it does not check the test group. conflicts marks cpu, cuda13.0, cuda12.6, rocm7.2.1, and metal as mutually exclusive. PyTorch and torchvision bind to explicit indexes per group; both CUDA groups include xformers, while Metal does not use a CUDA index.

flowchart TD
    A["Python 3.12 + uv"] --> B["Read pyproject.toml / uv.lock"]
    B --> C{"Choose one backend group"}
    C -->|cuda13.0| D["CUDA 13.0 + onnxruntime-gpu + xformers"]
    C -->|cuda12.6| E["CUDA 12.6 + onnxruntime-gpu + xformers"]
    C -->|cpu| F["CPU PyTorch + onnxruntime"]
    C -->|rocm7.2.1| G["Linux ROCm 7.2 conditional dependencies / Windows ROCm 7.2.1"]
    C -->|metal| H["macOS PyTorch MPS + CPU ONNX Runtime"]
    D --> I["Common runtime dependencies"]
    E --> I
    F --> H
    G --> H
    H --> I["Desktop / CLI / Web runtime"]

Installation and models are separate stages. manga_translator/utils/inference.py uses models/ as the model root; OCR, detection, inpainting, colorization, and upscaling modules generally create subdirectories and download/load models when first enabled. rendering/chinese_linebreak.py checks HanLP models and logs a fallback to normal wrapping when they are absent.

Environment and compatibility

  • CPU: no CUDA/ROCm; broadly compatible, but speed is limited by CPU and memory.
  • NVIDIA GPU: the current group contains torch==2.13.0, torchvision==0.28.0, onnxruntime-gpu==1.28.0, and xformers==0.0.35; the driver must support the CUDA runtime.
  • AMD ROCm: Linux x86_64 uses pytorch-rocm72; Windows AMD uses the installer to install the Radeon ROCm SDK and matching PyTorch wheels in two stages. This path is experimental.
  • Metal: Apple Silicon uses PyTorch/MPS from PyPI and does not install CUDA, onnxruntime-gpu, or xformers.

Do not append another backend to the same environment or mix onnxruntime with onnxruntime-gpu or Torch packages from different CUDA/ROCm indexes. Create a new environment, or cleanly resync one group, when changing backends.

ComponentConflict/prerequisiteHandling
pydensecrfPython 3.12 Windows/macOS/Linux x86_64 prefer platform wheels; fallback platforms may require C++ toolsLet uv select the platform source; do not copy wheels across platforms
xformersDeclared only in the GPU groupDo not copy it from the old GPU file into another group
Torch/TritonMust match one platform index; Windows AMD also requires SDK/driver compatibilityUse the lock file or installer as a set
Legacy requirementsVersions may differ from current pyproject/lockPrefer uv sync --locked for current installs

Hardware and resource prerequisites: GPU backends need matching drivers; model downloads need network and storage; fonts/ accepts .ttf, .otf, and .ttc; dict/ contains .txt dictionaries and .yaml/.json prompts. Online services also need network access, model names, addresses, and credentials.