macos-ane-video-upscaler (aneup)
aneup is a fast 2x / 4x upscaler for Apple Silicon. CoreML models run on the Apple Neural Engine; delivery encoding uses macOS VideoToolbox HEVC (hardware). Self-contained: models are bundled in this repo, no external model downloads.
Powered by PiperSR from ModelPiper — https://modelpiper.com
What's inside
video— upscale any video 2x/4x. Auto-routing picks the fastest ANE path per pass (by frame shape): exact supported shape → 1 predict/frame; near-fit sizes → reflect-padded full-frame; anything else → overlapping tiles. Handles rotation metadata, guarantees zero dropped frames, and supports frame-exact chunked rendering (parts kept for inspection).image— same engines for stills, any input size.hevc— VideoToolbox delivery encode (10-bit main10, hardware), with automatic frame-parity verification against the input.
Supported full-frame shapes (HxW): 360x640, 480x854, 720x1280, 640x360, 854x480, 1280x720. Anything within ~40% pad-waste of a supported shape uses the padding fast path; everything else tiles.
Requirements
- Apple Silicon Mac, macOS with VideoToolbox
- Python 3.10–3.13 (coremltools ships no 3.14 wheels yet)
- uv and ffmpeg (both:
brew install uv ffmpeg)
Setup
uv venv .venv --python 3.13 --seed
source .venv/bin/activate
uv pip install -e .
exFAT / FAT volumes: these filesystems don't support symlinks, so a
.venv inside the repo cannot work. Put the environment on an APFS volume
instead:
UV_PROJECT_ENVIRONMENT=~/.venvs/aneup uv sync --python 3.13
source ~/.venvs/aneup/bin/activate
(or uv venv ~/.venvs/aneup --python 3.13 --seed +
uv pip install -e . --python ~/.venvs/aneup/bin/python).
Secret/PII scanning (gitleaks)
This repo ships .gitleaks.toml and tracked hooks in .githooks/. After
cloning, activate them (one repo-local setting; global config untouched):
git config core.hooksPath .githooks
Staged content and commit messages are then scanned on every commit;
gitleaks must be on PATH (brew install gitleaks).
Usage
# video, 2x, fastest route, resumable 4-minute chunks (long jobs)
aneup video -i input.mp4 --scale 2 --chunk-minutes 4
# video, 4x (two chained 2x passes)
aneup video -i input.mp4 --scale 4
# smoke test: first 48 frames only
aneup video -i input.mp4 --limit 48
# still image
aneup image -i photo.jpg
# HEVC delivery encode (hardware, 10-bit main10, frame-parity verified)
aneup hevc -i input_2x.mp4
Routes: --route auto (default) picks exact/pad/tiled per pass; tiled
never pads; pad requires the padding path (fails if the frame doesn't
fit a supported shape).
Chunked rendering
--chunk-minutes N renders frame-exact parts named
<output-stem>_partNNN.mp4 next to the output (e.g. clip_2x_part000.mp4)
and stitches them losslessly; the master's frame count equals the sum of
parts and the parts are kept for inspection. A failed job leaves completed
parts on disk. The final hevc step re-encodes audio as one continuous
stream, so no chunk seams survive into the delivery file.
Development & releasing
make test # pytest (model-inference tests need macOS)
make build # sdist + wheel into dist/
make bump-version BUMP=patch # or VERSION=0.2.0; stamps CHANGELOG, never commits
make release BUMP=patch # bump + test + commit + tag vX.Y.Z (never pushes)
The virtualenv defaults to ~/.venvs/aneup (override: make test UVENV=~/.venvs/other). Pushing a vX.Y.Z tag triggers .github/workflows/release.yml:
version guard → tests (ubuntu + macOS) → build → PyPI publish via
Trusted Publishing (no tokens). Configure the PyPI project once with
owner / repository / workflow name release.yml / environment pypi.
Licenses
- Code: MIT (
LICENSE) - Bundled model weights: CC BY 4.0 with attribution — see
WEIGHTS-LICENSE.md(includes per-file SHA256 provenance)
Metadata
Release files for aneup 0.1.1
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 |
|---|---|---|---|---|
| aneup-0.1.1.tar.gz | 2.6 MB | With provenance | Details for aneup-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aneup-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for aneup-0.1.1-py3-none-any.whl |
Total release size: 5.2 MB
Release files / aneup-0.1.1.tar.gz
| Download URL | aneup-0.1.1.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddbefc14cca97ca44a461d9167521089c598550e8fd6876efee045f0984337a8
|
|
BLAKE2b-256 checksum How to use checksums |
1202ecbd31c2973824b1784ff5a0bf757bcf3843c3537923b9b70fc45430df3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / aneup-0.1.1-py3-none-any.whl
| Download URL | aneup-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
085a82d32bf0dd0a232c6a56673e47552de5b80b56d4e2786384bd2c477e3090
|
|
BLAKE2b-256 checksum How to use checksums |
506cf159883a2e441fe6005f51725fe05edf18530af6b634cdc585b90a5fe8d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for aneup 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for aneup-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA 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.