Skip to main content

tileupscale

CI Release PyPI License: MIT

Local AI image upscale. Chains Real-ESRGAN passes (via spandrel) to reach any target scale, with feather-blended overlapping tiles so large outputs have no seams. Runs on CPU or an NVIDIA GPU; nothing leaves your machine except the one-time model download.

Homepage: tileupscale.dev

tileupscale hero

Before/after: 160px source upscaled 4x

PyPI distribution tileupscale. Import and command stay upscale. Not related to other projects named "upscaler" on GitHub or PyPI.

Install

pip install tileupscale
pip install "tileupscale[server]"   # web UI + job API
pip install "tileupscale[mcp]"      # MCP tools for agents
# or: pipx install tileupscale

The pip install pulls PyTorch (large, slow first install). A PyTorch-free build exists only as the Windows desktop app (ONNX Runtime); see docs/develop.md.

From a clone:

pip install -e .
pip install -e ".[server,mcp]"
# tip without cloning: pip install "git+https://github.com/wwylon/upscale.git"

First win

upscale upscale input.png output.png --scale 4 --cpu

Use --target-size 8000 for a target long edge instead of a factor, drop --cpu to use the GPU, and --fast for the quick SPAN model. Models download on first use and are hash-verified.

upscale models list              # built-in models
upscale suggest input.png        # heuristic model pick
upscale serve                    # local web UI at http://127.0.0.1:8787/en/
upscale mcp                      # MCP tools over stdio

Equivalent module form: python -m upscale upscale ...

Highlights

  • Exact scale (--scale) or target long edge (--target-size); extra passes only when needed
  • Tile size chosen from free VRAM; very large frames spill to disk between passes
  • Swappable models: Real-ESRGAN family, HAT, SPAN, community weights, or your own .pth
  • Large outputs saved as BigTIFF; alpha preserved
  • Web UI in several languages; Windows desktop build uses ONNX Runtime (no PyTorch)
  • No telemetry

Library

from upscale import UpscaleConfig, execute

execute(UpscaleConfig(input="in.png", output="out.png", scale=4, cpu=True))

Documentation

Tests

Local gate (also in CONTRIBUTING.md / publish.manifest.yaml):

uv sync --locked --extra dev --extra server --extra mcp
uv run ruff check upscale tests
uv run mypy --follow-imports=silent upscale/schema.py upscale/job_prep.py upscale/config.py upscale/naming.py upscale/api
uv run pytest -q
uv run python scripts/cpu_smoke.py

GitHub Actions are disabled to save minutes; run the gate locally (or workflow_dispatch if re-enabled) before publish.

MIT licensed. See CONTRIBUTING.md and SECURITY.md.

Verify

uv run pytest -q

Or: python -m manager verify upscale --tier prereq. Contract: project.manifest.yaml.

Metadata

Release files for tileupscale 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tileupscale 0.6.0
File Size Uploaded Provenance Actions
tileupscale-0.6.0.tar.gz 130.0 kB Without provenance Details for tileupscale-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tileupscale 0.6.0
File Interpreter ABI Platform Actions
tileupscale-0.6.0-py3-none-any.whl Python 3 none any Details for tileupscale-0.6.0-py3-none-any.whl

Total release size: 247.2 kB

Release files / tileupscale-0.6.0.tar.gz

Download URL tileupscale-0.6.0.tar.gz
Size 130.0 kB
Tags Source
SHA-256 checksum
How to use checksums
99bdeeed7595bd23fb3a83e29703bde37d99a94396cc32d3e73d1606ea4c43b7
BLAKE2b-256 checksum
How to use checksums
3ff0f1e8098a29f446009edf1def49f6ba46c7d49acc0be7e9443c4a5ced93bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release files / tileupscale-0.6.0-py3-none-any.whl

Download URL tileupscale-0.6.0-py3-none-any.whl
Size 117.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e9b0ffa25ab4a8bdd610c74ffe06133ef4c2512caf60ba6c196bea38653fefb
BLAKE2b-256 checksum
How to use checksums
769473ad50d7ba6cc902da6f633e04778f4a612948f28b526d2372ffb02a3965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Security for tileupscale 0.6.0

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.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page