Skip to main content

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.

Metadata

Release files for cdc-upscaler 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdc-upscaler 0.2.0
File Size Uploaded
cdc_upscaler-0.2.0.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cdc-upscaler 0.2.0
File Interpreter ABI Platform
cdc_upscaler-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / cdc_upscaler-0.2.0.tar.gz

Download URL cdc_upscaler-0.2.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2809aa8ac24fd2ccfa6d33e0ae858cef1c9e03084a89ba4974bce3e797f590c2
BLAKE2b-256 checksum
How to use checksums
37820d272a56c05237fe94802f9723cff467f42cab3b7164b3a057742943c91a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / cdc_upscaler-0.2.0-py3-none-any.whl

Download URL cdc_upscaler-0.2.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
855bbb89be74a269ac8dfdfb8c5f574a375609fff8b3400b9af49f9c0f7ae134
BLAKE2b-256 checksum
How to use checksums
1837d44ace5653d63d75708de092591191377d0a69d0586ad25e75a368ba549c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page