Metadata-Version: 2.1
Name: aesthetic-predictor
Version: 0.1.2
Summary: A python package of aesthetic quality of pictures a.k.a `aesthic-predictor`.
Home-page: https://github.com/elda27/aesthetic-predictor
License: MIT
Author: elda27
Author-email: kaz.birdstick@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: open-clip-torch (>=2.16.0,<3.0.0)
Requires-Dist: torch (>1.13.1)
Project-URL: Repository, https://github.com/elda27/aesthetic-predictor
Description-Content-Type: text/markdown

# aesthetic-predictor

[![Python](https://img.shields.io/pypi/pyversions/aesthetic-predictor.svg)](https://pypi.org/project/aesthetic-predictor/)
[![PyPI version](https://badge.fury.io/py/aesthetic-predictor.svg)](https://badge.fury.io/py/aesthetic-predictor)
[![Downloads](https://static.pepy.tech/badge/aesthetic-predictor)](https://pepy.tech/project/aesthetic-predictor)
[![License](https://img.shields.io/pypi/l/aesthetic-predictor.svg)](https://github.com/google/aesthetic_predictor/blob/main/LICENSE)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

## Abstract

A python package of aesthetic quality of pictures a.k.a `aesthic-predictor`.
See details: https://github.com/LAION-AI/aesthetic-predictor

## Installation

```python
pip install aesthetic_predictor
```

## How to use

```python
from aesthetic_predictor import predict_aesthetic
from PIL import Image
print(predict_aesthetic(Image.open("path/to/image")))
```

## Example

This report is generated by `examples/example.py`.
![](./doc/example_score.png)
[Link](https://raw.githubusercontent.com/elda27/aesthetic-predictor/main/examples/scores.html)

