cdc-upscaler


Namecdc-upscaler JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/narugo1992/cdc_upscaler
SummaryImage upscaler for anime.
upload_time2023-01-11 18:13:22
maintainer
docs_urlNone
authornarugo1992
requires_python>=3.7
licenseApache License, Version 2.0
keywords image upscaler for anime.
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CDC Image Upscaler

[![PyPI](https://img.shields.io/pypi/v/cdc_upscaler)](https://pypi.org/project/cdc_upscaler/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cdc_upscaler)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/narugo1992/cdc_upscaler/blob/main/examples/cdc_upscaler_example.ipynb)
![Loc](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/narugo1992/76c126fca51d24785534a1f3c8cac20d/raw/loc.json)
![Comments](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/narugo1992/76c126fca51d24785534a1f3c8cac20d/raw/comments.json)

[![Code Test](https://github.com/narugo1992/cdc_upscaler/workflows/Code%20Test/badge.svg)](https://github.com/narugo1992/cdc_upscaler/actions?query=workflow%3A%22Code+Test%22)
[![Package Release](https://github.com/narugo1992/cdc_upscaler/workflows/Package%20Release/badge.svg)](https://github.com/narugo1992/cdc_upscaler/actions?query=workflow%3A%22Package+Release%22)
[![codecov](https://codecov.io/gh/narugo1992/cdc_upscaler/branch/main/graph/badge.svg?token=XJVDP4EFAT)](https://codecov.io/gh/narugo1992/cdc_upscaler)

![GitHub Org's stars](https://img.shields.io/github/stars/narugo1992)
[![GitHub stars](https://img.shields.io/github/stars/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/network)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/narugo1992/cdc_upscaler)
[![GitHub issues](https://img.shields.io/github/issues/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/issues)
[![GitHub pulls](https://img.shields.io/github/issues-pr/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/pulls)
[![Contributors](https://img.shields.io/github/contributors/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/graphs/contributors)
[![GitHub license](https://img.shields.io/github/license/narugo1992/cdc_upscaler)](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   |        ![angelina.png](https://github.com/narugo1992/cdc_upscaler/blob/main/test/testfile/angelina.png)        |        ![angelina_x4.png](https://github.com/narugo1992/cdc_upscaler/blob/main/test/testfile/angelina_x4.png)        |
|   2   | ![angelina_elite2.png](https://github.com/narugo1992/cdc_upscaler/blob/main/test/testfile/angelina_elite2.png) | ![angelina_elite2_x4.png](https://github.com/narugo1992/cdc_upscaler/blob/main/test/testfile/angelina_elite2_x4.png) |

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).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/narugo1992/cdc_upscaler",
    "name": "cdc-upscaler",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "Image upscaler for anime.",
    "author": "narugo1992",
    "author_email": "narugo@126.com",
    "download_url": "https://files.pythonhosted.org/packages/4a/94/177a395fa55fef5d70d50f6e396a92046648edf07e925820b87843946e18/cdc_upscaler-0.1.1.tar.gz",
    "platform": null,
    "description": "# CDC Image Upscaler\n\n[![PyPI](https://img.shields.io/pypi/v/cdc_upscaler)](https://pypi.org/project/cdc_upscaler/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cdc_upscaler)\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/narugo1992/cdc_upscaler/blob/main/examples/cdc_upscaler_example.ipynb)\n![Loc](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/narugo1992/76c126fca51d24785534a1f3c8cac20d/raw/loc.json)\n![Comments](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/narugo1992/76c126fca51d24785534a1f3c8cac20d/raw/comments.json)\n\n[![Code Test](https://github.com/narugo1992/cdc_upscaler/workflows/Code%20Test/badge.svg)](https://github.com/narugo1992/cdc_upscaler/actions?query=workflow%3A%22Code+Test%22)\n[![Package Release](https://github.com/narugo1992/cdc_upscaler/workflows/Package%20Release/badge.svg)](https://github.com/narugo1992/cdc_upscaler/actions?query=workflow%3A%22Package+Release%22)\n[![codecov](https://codecov.io/gh/narugo1992/cdc_upscaler/branch/main/graph/badge.svg?token=XJVDP4EFAT)](https://codecov.io/gh/narugo1992/cdc_upscaler)\n\n![GitHub Org's stars](https://img.shields.io/github/stars/narugo1992)\n[![GitHub stars](https://img.shields.io/github/stars/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/network)\n![GitHub commit activity](https://img.shields.io/github/commit-activity/m/narugo1992/cdc_upscaler)\n[![GitHub issues](https://img.shields.io/github/issues/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/issues)\n[![GitHub pulls](https://img.shields.io/github/issues-pr/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/pulls)\n[![Contributors](https://img.shields.io/github/contributors/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/graphs/contributors)\n[![GitHub license](https://img.shields.io/github/license/narugo1992/cdc_upscaler)](https://github.com/narugo1992/cdc_upscaler/blob/master/LICENSE)\n\nWrapped tools based\non [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).\n\nFirst you need to install this with `pip`:\n\n```shell\npip install cdc_upscaler\n```\n\nHere is a simple example:\n\n```python\nimport logging\nimport os\n\nfrom PIL import Image\n\nfrom cdc_upscaler import image_upscale\n\nif __name__ == '__main__':\n    logging.basicConfig(level=logging.INFO)\n    original_image = Image.open('images/your input image.png')\n\n    # any scale is supported, such as 1.5, 2, even 6 (which may take some more time)\n    upscaled_image = image_upscale(original_image, scale=4)\n    os.makedirs('output', exist_ok=True)\n    upscaled_image.save('output/result.png')\n\n```\n\n| **#** |                                                  **original**                                                  |                                                        **4x**                                                        |\n|:-----:|:--------------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------------:|\n|   1   |        ![angelina.png](https://github.com/narugo1992/cdc_upscaler/blob/main/test/testfile/angelina.png)        |        ![angelina_x4.png](https://github.com/narugo1992/cdc_upscaler/blob/main/test/testfile/angelina_x4.png)        |\n|   2   | ![angelina_elite2.png](https://github.com/narugo1992/cdc_upscaler/blob/main/test/testfile/angelina_elite2.png) | ![angelina_elite2_x4.png](https://github.com/narugo1992/cdc_upscaler/blob/main/test/testfile/angelina_elite2_x4.png) |\n\nThis pretrained model is hosted on [7eu7d7/CDC_anime](https://huggingface.co/7eu7d7/CDC_anime), which is provided\nby [7eu7d7](https://github.com/7eu7d7). The onnx model used is hosted\non [narugo/CDC_anime_onnx](https://huggingface.co/narugo/CDC_anime_onnx/tree/main).\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Image upscaler for anime.",
    "version": "0.1.1",
    "split_keywords": [
        "image",
        "upscaler",
        "for",
        "anime."
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a76da80b2b7bd6046f2d6124c40493d32fefefc66a4f8b091f1634260950b3c",
                "md5": "e11ba989f26193d5a3593de214e84d6c",
                "sha256": "20ea7028d9e8de35b2a6dc8146ee6d5e54b0eebaa5be609ce67320cc64819c6b"
            },
            "downloads": -1,
            "filename": "cdc_upscaler-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e11ba989f26193d5a3593de214e84d6c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8427,
            "upload_time": "2023-01-11T18:13:20",
            "upload_time_iso_8601": "2023-01-11T18:13:20.848364Z",
            "url": "https://files.pythonhosted.org/packages/3a/76/da80b2b7bd6046f2d6124c40493d32fefefc66a4f8b091f1634260950b3c/cdc_upscaler-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4a94177a395fa55fef5d70d50f6e396a92046648edf07e925820b87843946e18",
                "md5": "41f5ce6ef8c5211a27cbb171293a8dba",
                "sha256": "677df0a6a99c5c1078c71cccd555b0ee0b6ba76e65d5f601f36d07f4e131491d"
            },
            "downloads": -1,
            "filename": "cdc_upscaler-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "41f5ce6ef8c5211a27cbb171293a8dba",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 9887,
            "upload_time": "2023-01-11T18:13:22",
            "upload_time_iso_8601": "2023-01-11T18:13:22.138448Z",
            "url": "https://files.pythonhosted.org/packages/4a/94/177a395fa55fef5d70d50f6e396a92046648edf07e925820b87843946e18/cdc_upscaler-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-11 18:13:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "narugo1992",
    "github_project": "cdc_upscaler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "cdc-upscaler"
}
        
Elapsed time: 0.03513s