Browse and download AI upscaling models from OpenModelDB
Project description
OpenModelDB
Browse and download AI upscaling models from OpenModelDB.
Install
pip install openmodeldb
CLI
openmodeldb
Select scale → pick a model → download.
Python API
from openmodeldb import OpenModelDB
db = OpenModelDB()
# <OpenModelDB: 658 models>
# List models (formatted table)
db.list(scale=4)
db.list(scale=1, architecture="compact")
# Find models (returns list[Model])
models = db.find(scale=4)
compacts = db.find(scale=1, architecture="compact")
# Search by name, author, tags or description
results = db.search("denoise")
# Download by name or Model object
db.download("4xNomos8k_atd_jpg")
db.download(models[0])
db.download(models[0], dest="./my_models/")
# Download a specific format (pth, safetensors, onnx)
db.download("4xNomos8k_atd_jpg", format="safetensors")
# Auto-conversion between pth and safetensors
# If the requested format is unavailable, downloads the other and converts
db.download("2x-HFA2kAVCCompact", format="safetensors") # only pth available → auto-convert
db.download("1x-SuperScale", format="pth") # only safetensors → auto-convert
# Download as ONNX with auto-conversion
# If no ONNX file is available, downloads .pth/.safetensors and converts automatically
db.download("4xNomos8k_atd_jpg", format="onnx")
db.download("2x-DigitalFlim-SuperUltraCompact", format="onnx", half=True) # FP16 export
# Download all available formats
db.download_all("4xNomos8k_atd_jpg")
db.download_all("4xNomos8k_atd_jpg", format="pth") # only .pth files
# Verify model integrity (compare weights against database reference)
db.test_integrity("downloads/4xNomos8k_atd_jpg.pth")
# ✓ PASS similarity=100.000000 matched=53/53 max_diff=0.00e+00 mean_diff=0.00e+00
# Silent mode (no output, for use as a library)
path = db.download("4xNomos8k_atd_jpg", quiet=True)
# Get download URL (for custom download logic)
url = db.get_url("4xNomos8k_atd_jpg")
url = db.get_url("4xNomos8k_atd_jpg", format="safetensors")
# Dict-style access
model = db["4xNomos8k_atd_jpg"]
print(model.name, model.author, model.scale, model.architecture)
# Check if a model exists
"4xNomos8k" in db # True
# Browse architectures and tags
db.architectures() # ['atd', 'compact', 'cugan', 'dat', ...]
db.tags() # ['anime', 'denoise', 'photo', ...]
# Iterate
for model in db:
print(model)
# Launch interactive CLI
db.interactive()
Dependencies
- InquirerPy — interactive prompts
- rich — progress bars and tables
- pycryptodome — Mega.nz decryption
Conversion (optional)
pip install openmodeldb[convert]
Enables automatic conversion between formats: pth ↔ safetensors ↔ ONNX.
- PyTorch — model loading and ONNX export
- safetensors — safe tensor serialization
- onnx — ONNX model format
- onnxruntime — graph optimization
- spandrel — universal model loader
Credits
- OpenModelDB — the open model database
- All model authors and contributors
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openmodeldb-1.1.0.tar.gz.
File metadata
- Download URL: openmodeldb-1.1.0.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af2c91c9b1f742530e5d1a73237f46ce285abf6e349241dbcca92475d00f6c42
|
|
| MD5 |
d9d6000833e6b28906731c5d8c1815ec
|
|
| BLAKE2b-256 |
3d5511e0a6a6bd407ea36d33328af3972952ab58a16cdfcf9dbc002dfe318cb3
|
Provenance
The following attestation bundles were made for openmodeldb-1.1.0.tar.gz:
Publisher:
publish.yml on matth-blt/openmodeldb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openmodeldb-1.1.0.tar.gz -
Subject digest:
af2c91c9b1f742530e5d1a73237f46ce285abf6e349241dbcca92475d00f6c42 - Sigstore transparency entry: 956963798
- Sigstore integration time:
-
Permalink:
matth-blt/openmodeldb@bb19e05ada0a300702aac59132a9b74548d15fc4 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/matth-blt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bb19e05ada0a300702aac59132a9b74548d15fc4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file openmodeldb-1.1.0-py3-none-any.whl.
File metadata
- Download URL: openmodeldb-1.1.0-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1303547fb595a8e54d6070461f560b18560a078e4dbcd71cf9a312a55e87d8ca
|
|
| MD5 |
d980bea17473f7296cb21e6c06c1d85c
|
|
| BLAKE2b-256 |
233e8da88f0d53f717b254e561b463a865bd798d01e9ffb7d34acc0a2aa21a1e
|
Provenance
The following attestation bundles were made for openmodeldb-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on matth-blt/openmodeldb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openmodeldb-1.1.0-py3-none-any.whl -
Subject digest:
1303547fb595a8e54d6070461f560b18560a078e4dbcd71cf9a312a55e87d8ca - Sigstore transparency entry: 956963811
- Sigstore integration time:
-
Permalink:
matth-blt/openmodeldb@bb19e05ada0a300702aac59132a9b74548d15fc4 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/matth-blt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bb19e05ada0a300702aac59132a9b74548d15fc4 -
Trigger Event:
release
-
Statement type: