LLaVA for use with Autodistill
Project description
Autodistill LLaVA Module
This repository contains the code supporting the LLaVA base model for use with Autodistill.
LLaVA is a multi-modal language model with object detection capabilities. You can use LLaVA with autodistill for object detection. Learn more about LLaVA 1.5, the most recent version of LLaVA at the time of releasing this package.
Read the full Autodistill documentation.
Read the LLaVA Autodistill documentation.
Installation
To use CLIP with autodistill, you need to install the following dependency:
pip3 install autodistill-clip
Quickstart
from autodistill_llava import LLaVA
# define an ontology to map class names to our LLaVA 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 = LLaVA(
ontology=CaptionOntology(
{
"a forklift": "forklift"
}
)
)
base_model.label("./context_images", extension=".jpeg")
License
This model 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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file autodistill-llava-0.1.0.tar.gz
.
File metadata
- Download URL: autodistill-llava-0.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccfa4651a8c8efb920518d85618381297c90a19d4a28239cae103559e137eb91 |
|
MD5 | 715ac3114565cbb967ce62977ebac4d2 |
|
BLAKE2b-256 | c9bda09288a79fae2986fdb03d371c9482b3237f87a4cce5b738f9e2789f476d |
File details
Details for the file autodistill_llava-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: autodistill_llava-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84161f8c0f6eb16567b8ab237b37b19495e762116185f88a3c2225176773d4b9 |
|
MD5 | de29a3863b3b02762b9e4c1b99893548 |
|
BLAKE2b-256 | c64f692de445291ce22e5081101a3902e1647d2c82e1a09b46ce2ef0178b9569 |