Skip to main content

Library for the construction of instance segmentation model soups.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

segsoup-0.1.1.tar.gz (8.0 kB view details)

Uploaded Source

File details

Details for the file segsoup-0.1.1.tar.gz.

File metadata

  • Download URL: segsoup-0.1.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for segsoup-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5d94898012bad26f043b861e2e34c4733611dae700c2c97a1138142b23313719
MD5 c51e075bf9a8463bb331c099ec11f1f8
BLAKE2b-256 0a0cb69f8410ef8ffdc90ee51bb7937e4135603a847a48dd7c5d6b5ed9abe173

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page