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.2.tar.gz
(150.3 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.2-py3-none-any.whl
(151.8 kB
view details)
File details
Details for the file resselt-1.2.2.tar.gz.
File metadata
- Download URL: resselt-1.2.2.tar.gz
- Upload date:
- Size: 150.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04025113ed41cf02dc7b65a793fd285c0aca8e461032a3fe85629fdd77a7f408
|
|
| MD5 |
3b9aea5bdc744cdb64f7179ffac058f2
|
|
| BLAKE2b-256 |
775de60b9a09ac717ebb01e6e08ac4f1f8420e88a2f5fdacb133dae2045b2a91
|
File details
Details for the file resselt-1.2.2-py3-none-any.whl.
File metadata
- Download URL: resselt-1.2.2-py3-none-any.whl
- Upload date:
- Size: 151.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e04adb2fc05b5a6124544f32f39433cc84226ec650ae57f2c89b7f4490d497ac
|
|
| MD5 |
faa9c59068bce5672b31fc89217f435f
|
|
| BLAKE2b-256 |
9d3e0445955e537e62f9aa88ec9be8f7a296568764727d20a5d5ef424e513b0f
|