https://github.com/autodistill/autodistill-gpt-4v
GPT-4V(ision) module for use with Autodistill.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.8%) to scientific vocabulary
Keywords
Repository
GPT-4V(ision) module for use with Autodistill.
Basic Info
- Host: GitHub
- Owner: autodistill
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://docs.roboflow.com
- Size: 24.4 KB
Statistics
- Stars: 26
- Watchers: 5
- Forks: 7
- Open Issues: 4
- Releases: 0
Topics
Metadata Files
README.md
Autodistill GPT-4V Module
This repository contains the code supporting the GPT-4V base model for use with Autodistill.
GPT-4V, developed by OpenAI, is a multi-modal language model. With GPT-4V, you can ask questions about images in natural language. The autodistill-gpt4v module enables you to classify images using GPT-4V.
This model uses the gpt-4-vision-preview API announced by OpenAI on November 6th, 2023.
[!NOTE]
Using this project will incur billing charges for API calls to the OpenAI GPT-4 Vision API. Refer to the OpenAI pricing page for more information and to calculate your expected pricing. This package makes one API call per image you want to label.
Read the full Autodistill documentation.
Read the GPT-4V Autodistill documentation.
Installation
To use GPT-4V with autodistill, you need to install the following dependency:
bash
pip3 install autodistill-gpt-4v
Quickstart
```python from autodistillgpt4v import GPT4V
define an ontology to map class names to our GPT-4V 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
basemodel = GPT4V( ontology=CaptionOntology( { "person": "person", "a forklift": "forklift" } ), apikey="OPENAIAPIKEY" ) basemodel.label("./contextimages", extension=".jpeg") ```
License
This project 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!
Owner
- Name: Autodistill
- Login: autodistill
- Kind: organization
- Email: autodistill@roboflow.com
- Website: https://autodistill.com
- Repositories: 1
- Profile: https://github.com/autodistill
Use bigger slower models to train smaller faster ones
GitHub Events
Total
- Watch event: 1
- Fork event: 1
Last Year
- Watch event: 1
- Fork event: 1
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 4
- Total pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: about 2 months
- Total issue authors: 3
- Total pull request authors: 3
- Average comments per issue: 0.0
- Average comments per pull request: 1.67
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- alexfilothodoros (1)
- gepdev (1)
- shersoni610 (1)
Pull Request Authors
- japha (2)
- daaniyaan (1)
- elabbarw (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 95 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 6
- Total maintainers: 1
pypi.org: autodistill-gpt-4v
GPT-4V model for use with Autodistill
- Homepage: https://github.com/autodistill/autodistill-gpt-4v
- Documentation: https://autodistill-gpt-4v.readthedocs.io/
- License: MIT License
-
Latest release: 0.1.5
published over 2 years ago
Rankings
Maintainers (1)
Dependencies
- autodistill *
- requests *
- supervision *