Implements extra model architectures for spandrel
Project description
Spandrel extra architectures
This library implements various PyTorch architectures with restrictive licenses for spandrel.
If you are working on a private project or non-commercial open-source project, you are free to use this library. If you are working on a commercial or closed-source project, you may need to review the licenses of the individual architectures before using this library.
Installation
You need to install both spandrel
and spandrel_extra_arches
:
pip install spandrel spandrel_extra_arches
Basic usage
from spandrel import MAIN_REGISTRY, ModelLoader
from spandrel_extra_arches import EXTRA_REGISTRY
# add extra architectures before `ModelLoader` is used
MAIN_REGISTRY.add(*EXTRA_REGISTRY)
# load a model from disk
model = ModelLoader().load_from_file(r"path/to/model.pth")
... # use model
Model Architecture Support
For a full list of all architectures implemented in this library, see the architectures marked with "(+)" here.
License
This library is licensed under the MIT license but contains the source code of architectures with non-commercial and copyleft licenses. You may need to review the licenses of the individual architectures before using this library.
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 Distributions
Built Distribution
Hashes for spandrel_extra_arches-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7413a6c1a7a8abf8784f18adf93675530847afedc80ade84a1982e55f95ad0d2 |
|
MD5 | 163d422b2c0337ab9b33eec26ce7f4f3 |
|
BLAKE2b-256 | 9edced0d0ecbb12a0d8a98c9e2bfb212f8b4bcd2873998045da682b83629dafd |