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

    1. Download DAT_light_x2.pth model weight from Google Drive. We highly recommend utilizing DAT_light_x*.pth models due to their lightweight design and exceptional speed.
    1. 🎉 Then you are all set to upscale your images:
from PIL.Image import open
from PIL_DAT.Image import upscale

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

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.2.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

pillow_dat-0.1.2-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pillow_dat-0.1.2.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • 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.2.tar.gz
Algorithm Hash digest
SHA256 4491613800bf3c0fc2d7a6cd2a0325d65a3ff24add533fbf5eb2d0b44b4c67b6
MD5 0e92a866fb952a0222e0398deb81cd56
BLAKE2b-256 4587ba52265c68bf75785d42ec89cd4c5b117aacf9c6b23c748ca504cddca41c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pillow_dat-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8137c464fa312cb2ed03d2f35488b4bab35a96f06de2c7db4d25ba809902c4a4
MD5 0a5295523c94f4ae8e9ef5e6b2482ba1
BLAKE2b-256 aaa7133b5d9f11189323bbafbcef02a5721cb277d74da297605da96d0c0718db

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