Autodistill Segment Anything HQ Module
This repository contains the code supporting the Segment Anything base model for use with Autodistill.
SAM HQ is a zero-shot segmentation model capable of producing detailed masks, developed by ETH VIS. SAM HQ can segment an entire image into masks, or use points to segment specific parts of an object. You can use Segment Anything with Autodistill to segment objects. Segment Anything does not assign classes, so you should use SAM HQ model with a tool like Grounding DINO or GPT-4V.
Read the full Autodistill documentation.
Read the SAM HQ Autodistill documentation.
Installation
To use SAM HQ with autodistill, you need to install the following dependency:
pip3 install autodistill-sam-hq
Quickstart
from autodistill_sam_hq import HQSAM
base_model = HQSAM(None)
masks = base_model.predict("./image.jpeg")
print(masks)
License
This project is licensed under an Apache 2.0 license.
🏆 Contributing
We love your input! Please see the core Autodistill contributing guide to get started. Thank you 🙏 to all our contributors!
Release files for autodistill-sam-hq 0.1.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 | |
|---|---|---|---|
| autodistill-sam-hq-0.1.1.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autodistill_sam_hq-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / autodistill-sam-hq-0.1.1.tar.gz
| Download URL | autodistill-sam-hq-0.1.1.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afa881dd325e923472f3858c3193217b9c13415a493de7fb76a0d9985a35f83b
|
|
BLAKE2b-256 checksum How to use checksums |
695a42aefd1780f26ae994eca9e3cefff4a7158d977f5de96c1d2db6612f6ba8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / autodistill_sam_hq-0.1.1-py3-none-any.whl
| Download URL | autodistill_sam_hq-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
143005c7450087a638ebbcb290815509826e82ec0b498324e5a45b653eec2c5a
|
|
BLAKE2b-256 checksum How to use checksums |
eeda72c21fb1431467d9326115084ad0ca359540e3925c681f5365b9bc033c2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|