CDC Image Upscaler
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 | ||
| 2 |
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.
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.2.0.tar.gz
(10.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cdc_upscaler-0.2.0.tar.gz.
File metadata
- Download URL: cdc_upscaler-0.2.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2809aa8ac24fd2ccfa6d33e0ae858cef1c9e03084a89ba4974bce3e797f590c2
|
|
| MD5 |
522f68b7268d4aab4b199c37062378ae
|
|
| BLAKE2b-256 |
37820d272a56c05237fe94802f9723cff467f42cab3b7164b3a057742943c91a
|
File details
Details for the file cdc_upscaler-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cdc_upscaler-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
855bbb89be74a269ac8dfdfb8c5f574a375609fff8b3400b9af49f9c0f7ae134
|
|
| MD5 |
16fc12f3f50d72bc78a8b73ad5d8b6c8
|
|
| BLAKE2b-256 |
1837d44ace5653d63d75708de092591191377d0a69d0586ad25e75a368ba549c
|