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.3.0.tar.gz
(153.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.3.0-py3-none-any.whl
(156.4 kB
view details)
File details
Details for the file resselt-1.3.0.tar.gz.
File metadata
- Download URL: resselt-1.3.0.tar.gz
- Upload date:
- Size: 153.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d0b9fdca8b8fbed91b5ca49c02a57c598cfecb1fe89ce05fd525cf1b8007ddf
|
|
| MD5 |
4aa67cb5e872e80e5919af29701fc0b4
|
|
| BLAKE2b-256 |
ddb41920e7ca3c7dd0e955c7f7175d94aac3f4c4af546776203e85effe8a5ec1
|
File details
Details for the file resselt-1.3.0-py3-none-any.whl.
File metadata
- Download URL: resselt-1.3.0-py3-none-any.whl
- Upload date:
- Size: 156.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1165b60f8402dc52d1381b369a87edd4db177deb050b0cf85e7a1f7b9748cb5f
|
|
| MD5 |
c512b8832611e509316f7d8dbf916318
|
|
| BLAKE2b-256 |
0d5bbee9feb0d2058938f9f019dc394afe1cd770c8b192530f2547ac948b2238
|