Image Super-Resolution PyTorch architectures loader
Project description
resselt
Usage
import torch
from resselt import load_from_file, load_from_state_dict
# Load model from file
model = load_from_file("spanplus_2x.pth")
# or from state dict
state_dict = torch.load("spanplus_2x.pth")
model = load_from_state_dict(state_dict)
# and after you can get model metadata: ModelMetadata(name, in_channels, out_channels, upscale)
print(model.parameters_info)
Credits
- Based on chaiNNer-org/spandrel
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
resselt-1.2.0.tar.gz
(147.5 kB
view details)
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
resselt-1.2.0-py3-none-any.whl
(145.1 kB
view details)
File details
Details for the file resselt-1.2.0.tar.gz.
File metadata
- Download URL: resselt-1.2.0.tar.gz
- Upload date:
- Size: 147.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
677d535761113b1f0eadc1006e961516e44cb6120d6c9247db594962cf043791
|
|
| MD5 |
cbb1e0d1d41474d1682d0b930d07718d
|
|
| BLAKE2b-256 |
1358bbc6115e071db43f3f75295cd7679e7e01e0e7498ea47d15051c79fca6cd
|
File details
Details for the file resselt-1.2.0-py3-none-any.whl.
File metadata
- Download URL: resselt-1.2.0-py3-none-any.whl
- Upload date:
- Size: 145.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2abd59d8e1267c4518cb02267341b75cce02278d6873987cbdb20831b09e6e92
|
|
| MD5 |
f61cbbace93525f16712cc5cbdf7f067
|
|
| BLAKE2b-256 |
9f3968676686e15525ebcdf48719177be1fbd5e34a5e4911e21428a8c1a6ecc4
|