Skip to main content

Installation

To install the lighter-zoo package, use pip:

pip install lighter-zoo

Example Usage

# Import the SegResNet model from lighter_zoo
from lighter_zoo import SegResNet

# Create a 3D segmentation model for whole body segmentation
model = SegResNet(
    spatial_dims=3,      # 3D input volumes
    in_channels=1,       # Single channel input (e.g. CT or MRI)
    out_channels=118,    # Number of segmentation classes
    init_filters=32,     # Initial number of filters in first conv layer
    blocks_down=[1, 2, 2, 4, 4],  # Number of residual blocks in each downsampling stage
    dsdepth=4           # Depth of deep supervision
)

# Load pretrained weights from the whole body segmentation model
model.from_pretrained("project-lighter/whole_body_segmentation")

This example demonstrates how to load the SegResNet model with pre-trained weights for whole-body segmentation.

Available Models

The following models are currently available in the Lighter-Zoo:

  • SegResNet: A 3D segmentation model based on the MONAI implementation.

More models will be added in the future.

Contributing

Contributions are welcome! If you have a pre-trained model you would like to share, please submit a pull request.

License

This project is licensed under the Apache 2.0 License.

Release files for lighter-zoo 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lighter-zoo 0.1.3
File Size Uploaded
lighter_zoo-0.1.3.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lighter-zoo 0.1.3
File Interpreter ABI Platform
lighter_zoo-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / lighter_zoo-0.1.3.tar.gz

Download URL lighter_zoo-0.1.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0efb32a9a0e177d5241c0d734de56953d7cfadfc72dc11293661952477c06d3a
BLAKE2b-256 checksum
How to use checksums
38d9a23b1601ab77823afbca3e3520b18522e9df345d6d6a945bd5ddadff978c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.24

Release files / lighter_zoo-0.1.3-py3-none-any.whl

Download URL lighter_zoo-0.1.3-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0709293d99b63db83979feef84f4465fc64f016ac5f18886f583a73c76384c19
BLAKE2b-256 checksum
How to use checksums
3308860eaa61b8f0387cb9908f7de60564a97d8eef519ae610c81bbbba0988f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.24

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page