CVPR Paper | Arxiv | Project Website | BibTex
As a popular entertainment art form, manga enriches the line drawings details with bitonal screentones. However, manga resources over the Internet usually show screentone artifacts because of inappropriate scanning/rescaling resolution. In this paper, we propose an innovative two-stage method to restore quality bitonal manga from degraded ones. Our key observation is that the aliasing induced by downsampling bitonal screentones can be utilized as informative clues to infer the original resolution and screentones. First, we predict the target resolution from the degraded manga via the Scale Estimation Network (SE-Net) with spatial voting scheme. Then, at the target resolution, we restore the region-wise bitonal screentones via the Manga Restoration Network (MR-Net) discriminatively, depending on the degradation degree. Specifically, the original screentones are directly restored in pattern-identifiable regions, and visually plausible screentones are synthesized in pattern-agnostic regions. Quantitative evaluation on synthetic data and visual assessment on real-world cases illustrate the effectiveness of our method.
Belows shows an example of our restored manga image. The image comes from the Manga109 dataset.
Download the models below and put it under release_model/
.
- Requirements:
- Install python3.6
- Install pytorch (tested on Release 1.1.0)
- Install python requirements:
pip install -r requirements.txt
- Testing:
-
Place your test images under datazip/manga1/test.
-
Prepare images filelist using flist.py.
-
Run
python scripts/flist.py --path path_to_test_set --output path_to_test_flist
. -
For example,
python scripts/flist.py --path datazip/manga1/test --output flist/manga1/test.flist
-
Modify manga.json to set path to data.
-
Run
python testreal.py -c [config_file] -n [model_name] -s [image_size]
. -
For example,
python testreal.py -c configs/manga.json -n resattencv -s 256
-
Note that the Convex interpolation refinement requires large GPU memory, you can enable it by setting (bilinear=False) in MangaRestorator to restore images. Defaultly, we set bilinear=True.
-
You can also use
python testreal.py -c [config_file] -n [model_name] -s [image_size] -sl [scale]
to specify the scale factor.
-
You are granted with the LICENSE for both academic and commercial usages.
If any part of our paper and code is helpful to your work, please generously cite with:
@inproceedings{xie2021exploiting,
author = {Minshan Xie and Menghan Xia and Tien-Tsin Wong},
title = {Exploiting Aliasing for Manga Restoration},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition},
year = {2021},
pages = {13405--13414}
}