Manju Manju
Behind the scenes

How AI Removes Text From Manga Pages (With Real Numbers)

Translating the words is the easy half. The hard half is making the original text disappear without leaving a gray smudge on the screentone. Here is how it works, and what we measured.

The problem: text sits on top of the art

In a white speech bubble, erasing text is trivial: paint it white. But a lot of manga text sits on screentone (the dotted gray patterns), on hatching, on speed lines, or straight on the drawing: narration boxes, shouts, side comments. Painting those white leaves an obvious hole. The art behind the letters has to be reinvented.

Inpainting in one paragraph

Inpainting is the task of filling a masked area of an image so that it looks like it was never there. A neural inpainting model looks at everything around the hole, the lines that enter it, the texture, the shading, and predicts what most likely continues inside. For manga, the model needs to continue lines cleanly and reproduce regular patterns like screentone, which is exactly where older models struggle.

How Manju does it

  1. Find the text. Google Lens returns the position of every line of text. Manju turns it into a mask slightly larger than the letters, so the anti-aliased edges go too.
  2. Simple backgrounds first. If the area around the text is plain white or a flat tone, a classic algorithm (Navier-Stokes) fills it instantly, no model needed. That covers most speech bubbles.
  3. A model for the rest. Text on screentone or drawings goes to a neural model, run in your browser: LaMa when your device supports WebGPU, MI-GAN otherwise.
  4. Only the hole is replaced. Every pixel outside the mask stays exactly as in the original, and black-and-white pages stay strictly gray.

What we measured

To choose the model, we took 48 zones from real manga pages (28 on screentone, 19 on drawings, 1 on a flat background), wrote Japanese text over them, and asked each model to erase it. Because we know what the zone looked like before the text, we can score how close each result is to the original (PSNR inside the erased area, higher is better):

ModelDownloadScore (dB)Better than AOT-GAN
AOT-GAN (our previous model)23 MB10.3—
Navier-Stokes (no model)011.0—
MI-GAN28 MB12.7most zones
LaMa fine-tuned on manga, quantized35 MB13.346 of 48 zones

In practice, the difference is visible: the old model left ghostly gray outlines of the erased letters on dark and patterned areas, while LaMa continues the screentone and the lines. LaMa's Fourier convolutions are good at repeating periodic patterns, which is what screentone is.

Making a 207 MB model fit in a browser

The manga-tuned LaMa weighs 207 MB. We quantized its weights (int4 for the large Fourier layers, int8 for the sensitive ones), which brings the download to 35 MB with a measured difference of 0.06 dB, invisible to the eye. It runs on WebGPU at about 1.4 seconds per 512×512 zone on a laptop. Devices without WebGPU use MI-GAN, which is small and fast on the CPU (about 0.9 seconds per zone).

Credits

These models are open source: LaMa (Suvorov et al., Apache-2.0), fine-tuned on manga by dreMaz (MIT), exported to ONNX by ogkalu, and MI-GAN by Picsart AI Research (MIT).

FAQ

How does AI remove text from manga?

An inpainting model fills the area covered by the text by predicting the art behind it from the surrounding lines, shading and screentone. Plain white bubbles don't need a model; a simple fill is enough.

What is the best inpainting model for manga?

In our test on 48 real manga zones, LaMa fine-tuned on manga scored best (13.3 dB, better than AOT-GAN in 46 of 48 zones), ahead of MI-GAN (12.7 dB) and AOT-GAN (10.3 dB).

Does the image leave my device?

The erasing runs entirely in your browser. To read the text, the image is sent from your browser to Google Lens; Manju's servers never receive it.

Try it on a page with screentone

That's where the difference shows.

Translate a page