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
-
- Download
DAT_light_x2.pth
model weight from Google Drive. We highly recommend utilizingDAT_light_x*.pth
models due to their lightweight design and exceptional speed.
- Download
-
- 🎉 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
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
pillow_dat-0.1.3.tar.gz
(16.6 kB
view details)
Built Distribution
File details
Details for the file pillow_dat-0.1.3.tar.gz
.
File metadata
- Download URL: pillow_dat-0.1.3.tar.gz
- Upload date:
- Size: 16.6 kB
- 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 | 454fde5b9df253262aee8449bcd1f636dee6b6426bf3020886a236c5dcd5f67e |
|
MD5 | dadadedce43aa2668c93d3213fd2ad71 |
|
BLAKE2b-256 | 2b600f46b1d2f782fc346e93a72fbc93ae9b92fe0d009ec7b036ee10d824d367 |
File details
Details for the file pillow_dat-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pillow_dat-0.1.3-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- 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 | c8d0d7ad456da27e6a15d7f65733aa693ef5a5db4cf10a4da7a93cd3507a6b0b |
|
MD5 | 800c8483d694ae718a28524e0383100b |
|
BLAKE2b-256 | e6663aa5571d849eb2de95c49ccbb5df35de134ed46aef934f5aeecf14341a17 |