ezsam (easy segment anything model)
A command line and gui tool to segment images and video via text prompts.
Input images and videos, describe the subjects or objects you want to keep, and output new images and videos with the background removed.
Check out the docs! ezsam.org
Why?
Meta's Segment Anything is a powerful tool for separating parts of images, but requires coordinate prompts—either bounding boxes or points. And manual prompt generation is tedious for large collections of still images or video.
In contrast, text-based prompts describing the object(s) in the foreground to segment can be constant. Inspired by Grounded-Segment-Anything, this project tries to package a simpler to use tool.
If you're not interested in text-based prompts with Segment Anything, check out rembg.
How does it work?
The foreground is selected using text prompts to GroundingDINO to detect objects. Image segments are generated using Segment Anything or Segment Anything HQ (SAM-HQ).
Quick start
# Ubuntu 22.04, Python 3.9 - 3.11
pip install ezsam
sudo apt install ffmpeg imagemagick
ezsam --help
ezsam-gui
For more detailed info, see the documentation site here: ezsam.org
Metadata
Release files for ezsam 0.5.0
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 |
|---|---|---|---|---|
| ezsam-0.5.0.tar.gz | 65.7 kB | Without provenance | Details for ezsam-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ezsam-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for ezsam-0.5.0-py3-none-any.whl |
Total release size: 101.5 kB
Release files / ezsam-0.5.0.tar.gz
| Download URL | ezsam-0.5.0.tar.gz |
|---|---|
| Size | 65.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d754bfef2e024e563db9d3a316a69fc262cb4ce474a6fd7ee02a2ad53364dcb
|
|
BLAKE2b-256 checksum How to use checksums |
8ed5df56f7d0c5101e1612fb08b650662f66659fb06868fea0ca4cfac95e919a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / ezsam-0.5.0-py3-none-any.whl
| Download URL | ezsam-0.5.0-py3-none-any.whl |
|---|---|
| Size | 35.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec03f96085616821f2632ee784b97ede1b65dcc340c576bfe2b9e579c1f52622
|
|
BLAKE2b-256 checksum How to use checksums |
fa1f825f904da27551ae6f1e0307a67b29423c296482a14fbabc9b87f33c4bd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for ezsam 0.5.0
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.