Skip to main content

Image upscaler for anime.

Project description

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')
    upscaled_image = image_upscale(original_image, scale=4)
    os.makedirs('output', exist_ok=True)
    upscaled_image.save('output/result.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdc_upscaler-0.1.0.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

cdc_upscaler-0.1.0-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page