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.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 |
|---|---|---|---|---|
| pixano_inference_sam-0.2.1.tar.gz | 178.0 kB | With provenance | Details for pixano_inference_sam-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pixano_inference_sam-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for pixano_inference_sam-0.2.1-py3-none-any.whl |
Total release size: 205.6 kB
Release files / pixano_inference_sam-0.2.1.tar.gz
| Download URL | pixano_inference_sam-0.2.1.tar.gz |
|---|---|
| Size | 178.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97b07eecfb29acbf639f85e2a49406643d923670bda84311da4220219867f63a
|
|
BLAKE2b-256 checksum How to use checksums |
c5d66a80b493330173973499eedc948030b62ada76f68bd37a003c9d020c223d
|
| 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 8, 2026.
Transparency logRelease files / pixano_inference_sam-0.2.1-py3-none-any.whl
| Download URL | pixano_inference_sam-0.2.1-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29552b3688f1184debe8679828387c2cdaedd6f055c5c3ceadc7fede8964b448
|
|
BLAKE2b-256 checksum How to use checksums |
3b1dde47ddac488f5648978323594c4a84ff5da6f6350acea59cda4f486896c0
|
| 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 8, 2026.
Transparency logSecurity for pixano-inference-sam 0.2.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pixano_inference_sam-0.2.1.tar.gz
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 8, 2026.
Transparency logA 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.