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.2.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.2.0
File Size Uploaded
pixano_inference_sam-0.2.0.tar.gz 177.5 kB Details

Built distribution (wheel)

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

Total release size: 204.8 kB

Release files / pixano_inference_sam-0.2.0.tar.gz

Download URL pixano_inference_sam-0.2.0.tar.gz
Size 177.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cd898d9d3c6efd51b97083a55b7bbfd2468b803bcf3deab3f63d97eb54294c8c
BLAKE2b-256 checksum
How to use checksums
db460431fb0832207c99b1c136ce8cd9d515786771c1e16815663a3d42dab3a0
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 Oct 6, 2026.

Transparency log

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

Download URL pixano_inference_sam-0.2.0-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7afa0108c835b115935e20f10b329037348e5ac2268d1de9e29201a1a44b19f
BLAKE2b-256 checksum
How to use checksums
b2842d590d24ea1a425225a0a4de6ceab66828d70d5b1c84e33a6341f5ffd589
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 Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

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