cdc-upscaler-0.1.1
توضیحات
Image upscaler for anime.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cdc-upscaler-0.1.1 |
| نام | cdc-upscaler |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | narugo1992 |
| ایمیل نویسنده | narugo@126.com |
| آدرس صفحه اصلی | https://github.com/narugo1992/cdc_upscaler |
| آدرس اینترنتی | https://pypi.org/project/cdc-upscaler/ |
| مجوز | Apache License, Version 2.0 |
# CDC Image Upscaler
[](https://pypi.org/project/cdc_upscaler/)

[](https://colab.research.google.com/github/narugo1992/cdc_upscaler/blob/main/examples/cdc_upscaler_example.ipynb)


[](https://github.com/narugo1992/cdc_upscaler/actions?query=workflow%3A%22Code+Test%22)
[](https://github.com/narugo1992/cdc_upscaler/actions?query=workflow%3A%22Package+Release%22)
[](https://codecov.io/gh/narugo1992/cdc_upscaler)

[](https://github.com/narugo1992/cdc_upscaler/stargazers)
[](https://github.com/narugo1992/cdc_upscaler/network)

[](https://github.com/narugo1992/cdc_upscaler/issues)
[](https://github.com/narugo1992/cdc_upscaler/pulls)
[](https://github.com/narugo1992/cdc_upscaler/graphs/contributors)
[](https://github.com/narugo1992/cdc_upscaler/blob/master/LICENSE)
Wrapped tools based
on [xiezw5/Component-Divide-and-Conquer-for-Real-World-Image-Super-Resolution](https://github.com/xiezw5/Component-Divide-and-Conquer-for-Real-World-Image-Super-Resolution).
First you need to install this with `pip`:
```shell
pip install cdc_upscaler
```
Here is a simple example:
```python
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](https://huggingface.co/7eu7d7/CDC_anime), which is provided
by [7eu7d7](https://github.com/7eu7d7). The onnx model used is hosted
on [narugo/CDC_anime_onnx](https://huggingface.co/narugo/CDC_anime_onnx/tree/main).
نیازمندی
| مقدار | نام |
|---|---|
| - | pillow |
| - | numpy |
| - | huggingface-hub |
| >=0.8.0 | hbutils |
| >=5 | coverage |
| >=4.0.3 | mock |
| ~=3.5 | flake8 |
| >=6.18.5 | testfixtures |
| ~=6.2.5 | pytest |
| ~=3.0.0 | pytest-cov |
| ~=3.6.1 | pytest-mock |
| >=1.34.0 | pytest-xdist |
| ~=10.2 | pytest-rerunfailures |
| ~=2.0.2 | pytest-timeout |
| ~=3.4.0 | pytest-benchmark |
| <2,>=1.7 | easydict |
| >=2 | testtools |
| - | pytest-image-diff |
| - | torch |
| >=0.7 | hbutils |
| - | torch |
| - | onnx |
| - | onnxoptimizer |
| - | onnxsim |
| >=7 | click |
| >=0.7 | hbutils |
| - | tqdm |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl cdc-upscaler-0.1.1:
pip install cdc-upscaler-0.1.1.whl
نصب پکیج tar.gz cdc-upscaler-0.1.1:
pip install cdc-upscaler-0.1.1.tar.gz