waifu-scorer
A deep learning-based tool for scoring anime-style images, supporting multiple hardware backends and PyTorch environments.
Installation
You need Python 3.10+ and pip. It is recommended to use a virtual environment.
1. Install PyTorch for your platform
Pick the right command for your OS / hardware from the official selector: https://pytorch.org/get-started/locally/
A few common examples:
# CPU only (any OS)
pip install torch --index-url https://download.pytorch.org/whl/cpu
# NVIDIA GPU (pick the CUDA version that matches your driver)
pip install torch --index-url https://download.pytorch.org/whl/cu124
pip install torch --index-url https://download.pytorch.org/whl/cu128
# AMD GPU on Linux (ROCm)
pip install torch --index-url https://download.pytorch.org/whl/rocm6.2
# macOS (Apple Silicon, MPS backend) — just use the default PyPI wheel
pip install torch
2. Install waifu-scorer
pip install waifu-scorer
If you are using uv, you can let it pick a torch backend automatically:
uv pip install --torch-backend=auto waifu-scorer
Usage in Python
You can also use waifu-scorer directly in your Python code:
from waifu_scorer.predict import WaifuScorer
scorer = WaifuScorer()
results = scorer(["path/to/image1.jpg", "path/to/image2.png"])
for img_path, score in zip(["path/to/image1.jpg", "path/to/image2.png"], results, strict=False):
print(f"{img_path}: {score:.3f}")
Usage from Command Line
After installation, you can use the command line interface to score images:
python -m waifu_scorer path/to/image1.jpg path/to/image2.png
Options
--model: Path to a custom model file--device: Device to use--verbose: Enable verbose output
Example:
python -m waifu_scorer examples/waifu1.png --verbose
Reference
This project refers to waifuset.
For more details, see the code and documentation in the repository.
Metadata
Release files for waifu-scorer 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| waifu_scorer-0.2.2.tar.gz | 85.7 kB | Without provenance | Details for waifu_scorer-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| waifu_scorer-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for waifu_scorer-0.2.2-py3-none-any.whl |
Total release size: 98.2 kB
Release files / waifu_scorer-0.2.2.tar.gz
| Download URL | waifu_scorer-0.2.2.tar.gz |
|---|---|
| Size | 85.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b01a96973a389d01d0ff37f323b6239ea461357af63cc9455a4b4088ae55f96c
|
|
BLAKE2b-256 checksum How to use checksums |
da368bde04c9a38aa1c01c2f9912d9ffa08481c2284a9530fadc1d60444fc4b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / waifu_scorer-0.2.2-py3-none-any.whl
| Download URL | waifu_scorer-0.2.2-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81fc3f9660f5f367a6e624e0fcc842906acaa48372742206fb16fe596d76cb24
|
|
BLAKE2b-256 checksum How to use checksums |
a4aaa486149ad74bae7bf645cf717485582d611fc50a3cb7d90edda0d5ba25d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for waifu-scorer 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.