Image upscaler for anime.
Project description
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')
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 hugging face, which is provided by 7eu7d7.
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.0.1.tar.gz
(13.7 kB
view hashes)
Built Distribution
Close
Hashes for cdc_upscaler-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a741983981618a10e0b5ca028d7cdca088010adaffd010daba0b2004a972fdac |
|
MD5 | df3dc9f4e4ca122958e4ee709e9a25c1 |
|
BLAKE2b-256 | 8d0da2a0cdda5e18decde0a96e07ded39ed0efec0900071f68bd90269886d486 |