Skip to main content

pixano-inference-sam

The SAM2 models (image segmentation and video tracking) for Pixano Inference, distributed as a standalone plugin package — a first-party example of the "model store" pattern. The server discovers it automatically through the pixano_inference.models entry point.

Install

pip install pixano-inference[sam]   # or: pip install pixano-inference-sam
# the upstream SAM2 library is only on git, so install it too:
pip install "sam-2 @ git+https://github.com/facebookresearch/sam2.git"

The first command pulls in the Pixano Inference core and PyTorch; the second installs Facebook's sam-2 library (not available on PyPI).

From the repository (uv also installs the core from it):

uv pip install "pixano-inference-sam @ git+https://github.com/pixano/pixano-inference#subdirectory=packages/pixano-inference-sam"
# or, from a clone:  uv pip install ./packages/pixano-inference-sam

Models

Registered name Capability Params class Default checkpoint
Sam2ImageModel segmentation Sam2ImageParams facebook/sam2-hiera-base-plus
Sam2VideoModel tracking Sam2VideoParams facebook/sam2-hiera-large

Use

Reference the model by name in a config file (no import needed once installed):

from pixano_inference.configs import DeploymentConfig, ModelConfig
from pixano_inference_sam import Sam2ImageParams

models = [
    ModelConfig(
        name="sam2-image",
        model_class="Sam2ImageModel",
        model_params=Sam2ImageParams(path="facebook/sam2-hiera-base-plus"),
        deployment=DeploymentConfig(num_gpus=1, num_cpus=2),
    ),
]

Development

The package is self-contained, with its own lock file:

cd packages/pixano-inference-sam
uv sync          # the dev group includes the git-only sam-2 library
uv run pytest

Metadata

Release files for pixano-inference-sam 0.1.0

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

Source distribution (sdist)

Source distribution for pixano-inference-sam 0.1.0
File Size Uploaded
pixano_inference_sam-0.1.0.tar.gz 176.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pixano-inference-sam 0.1.0
File Interpreter ABI Platform
pixano_inference_sam-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 203.9 kB

Release files / pixano_inference_sam-0.1.0.tar.gz

Download URL pixano_inference_sam-0.1.0.tar.gz
Size 176.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5c09e34714e5f60a7f7d6d4eb775f135a06691e86521c9639f40803b798b1286
BLAKE2b-256 checksum
How to use checksums
ca4d3345e9ac83d550083bf1f630b5fb81c08b65098d1f1d0330697e4af6c9af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / pixano_inference_sam-0.1.0-py3-none-any.whl

Download URL pixano_inference_sam-0.1.0-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a002c10eec8e7b5bdafc1e9c05c835548aa38c7dd014883b24330e75adc176c0
BLAKE2b-256 checksum
How to use checksums
7baa68ce2fbc00588eab94fed8a41feb85759fbb376706a87f347baf30bd7b4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.0 This release

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