Autodistill EvaCLIP Module
This repository contains the code supporting the CLIP base model for use with Autodistill.
EvaCLIP, is a computer vision model trained using pairs of images and text. It can be used for classification of images.
Read the full Autodistill documentation.
Read the EvaCLIP Autodistill documentation.
Installation
To use EvaCLIP with autodistill, you need to install the following dependency:
pip3 install autodistill-evaclip
Quickstart
from autodistill_evaclip import EvaCLIP
from autodistill.detection import CaptionOntology
# define an ontology to map class names to our EvaCLIP prompt
# the ontology dictionary has the format {caption: class}
# where caption is the prompt sent to the base model, and class is the label that will
# be saved for that caption in the generated annotations
# then, load the model
base_model = EvaCLIP(
ontology=CaptionOntology(
{
"person": "person",
"a forklift": "forklift"
}
)
)
results = base_model.predict("./context_images/test.jpg")
print(results)
base_model.label("./context_images", extension=".jpeg")
License
The code in this repository is licensed under an MIT license.
🏆 Contributing
We love your input! Please see the core Autodistill contributing guide to get started. Thank you 🙏 to all our contributors!
Metadata
Release files for autodistill-eva-clip 0.1.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 |
|---|---|---|---|---|
| autodistill_eva_clip-0.1.0.tar.gz | 7.5 kB | Without provenance | Details for autodistill_eva_clip-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autodistill_eva_clip-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for autodistill_eva_clip-0.1.0-py3-none-any.whl |
Total release size: 15.2 kB
Release files / autodistill_eva_clip-0.1.0.tar.gz
| Download URL | autodistill_eva_clip-0.1.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5218108010e98c9b3b855cac0e53c9f270b3d7dacb783eb3d9e519c4789dbf33
|
|
BLAKE2b-256 checksum How to use checksums |
af76ae0a3de8882e98ec28d81433ad799cc0efcd2e9e1d2f3b65ba8f6941c879
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / autodistill_eva_clip-0.1.0-py3-none-any.whl
| Download URL | autodistill_eva_clip-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3269301b9f96d8564bd22727b380cd8248dd0f779fe4a48aaff24f2787ad808
|
|
BLAKE2b-256 checksum How to use checksums |
b116ac5366a62164fe1e252a3c800b62505ccfdd0f42b38eb1325c3ac85d7f53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for autodistill-eva-clip 0.1.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.