cdc-upscaler

Image upscaler for anime.


Keywords
Image, upscaler, for, anime
License
Apache-2.0
Install
pip install cdc-upscaler==0.2.0

Documentation

CDC Image Upscaler

PyPI PyPI - Python Version Open In Colab Loc Comments

Code Test Package Release codecov

GitHub Org's stars GitHub stars GitHub forks GitHub commit activity GitHub issues GitHub pulls Contributors GitHub license

Wrapped tools based on xiezw5/Component-Divide-and-Conquer-for-Real-World-Image-Super-Resolution.

First you need to install this with pip:

pip install cdc_upscaler

Here is a simple example:

import logging
import os

from PIL import Image

from cdc_upscaler import image_upscale

if __name__ == '__main__':
    logging.basicConfig(level=logging.INFO)
    original_image = Image.open('images/your input image.png')

    # any scale is supported, such as 1.5, 2, even 6 (which may take some more time)
    upscaled_image = image_upscale(original_image, scale=4)
    os.makedirs('output', exist_ok=True)
    upscaled_image.save('output/result.png')
# original 4x
1 angelina.png angelina_x4.png
2 angelina_elite2.png angelina_elite2_x4.png

This pretrained model is hosted on 7eu7d7/CDC_anime, which is provided by 7eu7d7. The onnx model used is hosted on narugo/CDC_anime_onnx.