Skip to main content

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

Conversion (optional)

pip install openmodeldb[convert]

Enables automatic conversion between formats: pth ↔ safetensors ↔ ONNX.

Credits

  • OpenModelDB — the open model database
  • All model authors and contributors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openmodeldb-1.1.1.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openmodeldb-1.1.1-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file openmodeldb-1.1.1.tar.gz.

File metadata

  • Download URL: openmodeldb-1.1.1.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for openmodeldb-1.1.1.tar.gz
Algorithm Hash digest
SHA256 be2693a98a836bdeb2880cfb1744b1635b94e645780f183b80e2c77485e432e9
MD5 be4d2ba2bdf15182e8ea7fa50a34324c
BLAKE2b-256 86508a4c2c109bd9129d584f77d942238996ff59b6e6ccc46229b942fd3d1892

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmodeldb-1.1.1.tar.gz:

Publisher: publish.yml on matth-blt/openmodeldb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openmodeldb-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: openmodeldb-1.1.1-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

Hashes for openmodeldb-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3bdd5f3b7e17e94a07e6f4408385ebf436c2638a5432da21e1ea845005a58630
MD5 8d8f2519054cea262839d8067f9ab378
BLAKE2b-256 f05c9fba28d893779391148e348b5aaf1a4853b23cbd30e74c00d8be5cf232bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmodeldb-1.1.1-py3-none-any.whl:

Publisher: publish.yml on matth-blt/openmodeldb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page