SegSoup
Model soups were originally introduced in the paper Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. As the title suggests, they can be created by averaging the weights of multiple models fine-tuned with different hyperparameter configurations. This technique has been shown to often improve accuracy and robustness for classification models without incurring any additional inference or memory costs.
SegSoup is a library that aims to facilitate the creation of model soups for semantic segmentation independently of the underlying architecture of the segmentation model. In this way, users can try to improve the performance of traditional CNN-based models or vision transformer models using this library.
Furthermore, three "recipes" can be used for model souping:
- Uniform soup: The model soup is created by simply averaging the weights of all models.
- Weighted soup: Different weights can be assigned to each model. For example, when creating a soup from sequential checkpoints of the same training run, higher weights can be given to later and more fully trained checkpoints.
- Greedy soup: Models are sequentially added to the soup and kept only if the validation performance of the resulting soup improves.
Metadata
Release files for segsoup 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| segsoup-0.1.1.tar.gz | 8.0 kB | Without provenance | Details for segsoup-0.1.1.tar.gz |
Release files / segsoup-0.1.1.tar.gz
| Download URL | segsoup-0.1.1.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d94898012bad26f043b861e2e34c4733611dae700c2c97a1138142b23313719
|
|
BLAKE2b-256 checksum How to use checksums |
0a0cb69f8410ef8ffdc90ee51bb7937e4135603a847a48dd7c5d6b5ed9abe173
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.0
|
Security for segsoup 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.