Skip to main content

PIL × DAT - Pillow extension for AI-based image upscaling.

Project description

iLoveData

PIL × DAT - Pillow extension for AI-based image upscaling.

License


Installation

For PyPI:

pip install pillow-dat

Get started

from PIL.Image import open
from PIL_DAT.Image import upscale

lumine_image = open("./lumine.png")
lumine_image = upscale(lumine_image, 2)
lumine_image.show()

Remark: We strongly advocate for the utilization of DAT light models owing to their streamlined design and outstanding speed performance. However, should you opt for alternative models, please note that *.pth model weights can be accessed via Google Drive.

Example

Input (lumine.png) Output Bicubic
Input (lumine.png) Output Bicubic

Contribution

Please install Miniconda.

Please install VSCode extensions:

  • Black Formatter
  • isort
  • Python
  • Pylance

To create or update the pillow-dat Python environment:

conda env create --file environment.yml
conda env update --file environment.yml --prune

To install dependencies:

poetry install

To run unit tests:

pytest

Acknowledgement

This library is founded upon the pioneering research paper, "Dual Aggregation Transformer for Image Super-Resolution".

@inproceedings{chen2023dual,
    title={Dual Aggregation Transformer for Image Super-Resolution},
    author={Chen, Zheng and Zhang, Yulun and Gu, Jinjin and Kong, Linghe and Yang, Xiaokang and Yu, Fisher},
    booktitle={ICCV},
    year={2023}
}

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

pillow_dat-0.1.4.tar.gz (7.6 MB view details)

Uploaded Source

Built Distribution

pillow_dat-0.1.4-py3-none-any.whl (7.7 MB view details)

Uploaded Python 3

File details

Details for the file pillow_dat-0.1.4.tar.gz.

File metadata

  • Download URL: pillow_dat-0.1.4.tar.gz
  • Upload date:
  • Size: 7.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Windows/11

File hashes

Hashes for pillow_dat-0.1.4.tar.gz
Algorithm Hash digest
SHA256 76aabb0e25f6ccb93816075e90585e967808a83169db20a833bf36bd393ae5f1
MD5 98707a8432437bbb5fe5456ac57fd61c
BLAKE2b-256 54d50941ad270ef61b51ecbbaf6ef6bc16248fc450be9d9b2638b4242eb9a255

See more details on using hashes here.

File details

Details for the file pillow_dat-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pillow_dat-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Windows/11

File hashes

Hashes for pillow_dat-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dc72f22691ca406151b76691ee025d41cc022b518bec08553ed761d75b14aee2
MD5 955bd8e76869809462b2266a275f91ec
BLAKE2b-256 cd4d59b28129d11667a8db2d7da7a15910814be2ac5b04ded522b8bb159ff619

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page