PIL × DAT - Pillow extension for AI-based image upscaling.
Project description
PIL × DAT - Pillow extension for AI-based image upscaling.
Installation
For PyPI:
pip install pillow-dat
Get started
from PIL.Image import open
from PIL_DAT.Image import upscale
lumine_image = open(".github/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 |
---|---|---|
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pillow_dat-0.1.5.tar.gz
.
File metadata
- Download URL: pillow_dat-0.1.5.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47889d80e9970329006598a1b592ebb422c183c0b899df9a8ed03cd41141e95e |
|
MD5 | 083d545791494d9892d99ff412cb8355 |
|
BLAKE2b-256 | 9e5385c5641e0af978be406883d65b4cd53bc85e5e11fe0d44774d1f57e2d35b |
File details
Details for the file pillow_dat-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: pillow_dat-0.1.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 507ddc858765fd2dba149b24aadcd928c1ff6fb3ce7ac58eaec42a55a289696e |
|
MD5 | b73a848fe906fb81a0bbf12321b7f3d1 |
|
BLAKE2b-256 | e470d6df5ed9ff3d05057947e218f4392943e7de780cef957cee9a530a2a6722 |