Skip to main content

descriptron-sam3

SAM 3 for Descriptron: outline one or a few examples of a small structure (for example setae on a wing or genitalia), click on them, or type a word, and SAM 3 proposes every matching instance as a COCO file. The Descriptron GUI (descriptron-gui 2.5.1 and later) runs it from the dark green Find all instances (SAM 3) button and shows the instances together, one colour each, to be labelled in one step.

SAM 3 needs Python 3.12 and PyTorch >= 2.7, so install it in its own environment. pipx does that and puts the descriptron-sam3 command on your PATH, where the GUI finds it:

pipx install --python python3.12 descriptron-sam3

The SAM 3 checkpoints are gated: request access at https://huggingface.co/facebook/sam3 (SAM License), then log in once (pipx run --spec huggingface_hub hf auth login, or hf auth login in the environment). The first run downloads the checkpoint (3.3 GB). A CUDA GPU is strongly recommended.

descriptron-sam3 --images wings/ --text bristle --category seta --out setae.json
descriptron-sam3 --images wing1.tif --boxes "1200,800,1260,1100" --out setae.json
descriptron-sam3 --images wing1.tif --points "1520,4040,1" --points_mode each --tile 0 --out one_seta.json

Results are proposals to review in the GUI, not finished annotations. Examples work within the image they are drawn on; a word searches every image tile by tile. If the GUI cannot find the command, point it at the Python of the environment that has descriptron-sam3: DESCRIPTRON_SAM3_PYTHON=/path/to/python.

Licence: Apache-2.0 (see NOTICE for the CLIP vocabulary file and for SAM 3's own licence).

Metadata

Release files for descriptron-sam3 2.8.7

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

Source distribution (sdist)

Source distribution for descriptron-sam3 2.8.7
File Size Uploaded Provenance Actions
descriptron_sam3-2.8.7.tar.gz 1.4 MB Without provenance Details for descriptron_sam3-2.8.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for descriptron-sam3 2.8.7
File Interpreter ABI Platform Actions
descriptron_sam3-2.8.7-py3-none-any.whl Python 3 none any Details for descriptron_sam3-2.8.7-py3-none-any.whl

Total release size: 2.7 MB

Release files / descriptron_sam3-2.8.7.tar.gz

Download URL descriptron_sam3-2.8.7.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
ebace28b680cdc6ab5fcc72220febb62d3dfdac143b5589d7d30da5526b9ddc3
BLAKE2b-256 checksum
How to use checksums
c2a52642b51f702b40db3286ef7d5e7d8d2095c5654f7dd436d1e6c0a9405447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release files / descriptron_sam3-2.8.7-py3-none-any.whl

Download URL descriptron_sam3-2.8.7-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
451e294921cf2856308a84aa2da488f2bdca35f4b455959144b46e7eb7c896dd
BLAKE2b-256 checksum
How to use checksums
0822c435b7cbc2636ee53f61877c6cb031973e670b5f75298fc6b4cac1b865e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Security for descriptron-sam3 2.8.7

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

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