Name | autodistill-blip JSON |
Version |
0.1.3
JSON |
| download |
home_page | |
Summary | BLIP module for use with Autodistill |
upload_time | 2023-12-06 10:42:47 |
maintainer | |
docs_url | None |
author | Roboflow |
requires_python | >=3.7 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<div align="center">
<p>
<a align="center" href="" target="_blank">
<img
width="850"
src="https://media.roboflow.com/open-source/autodistill/autodistill-banner.png?4"
>
</a>
</p>
</div>
# Autodistill BLIP Module
This repository contains the code supporting the BLIP base model for use with [Autodistill](https://github.com/autodistill/autodistill).
[BLIP](https://github.com/salesforce/LAVIS), developed by Salesforce, is a computer vision model that supports visual question answering and zero-shot classification. Autodistill supports classifying images using BLIP.
Read the full [Autodistill documentation](https://autodistill.github.io/autodistill/).
Read the [BLIP Autodistill documentation](https://autodistill.github.io/autodistill/base_models/blip/).
## Installation
To use BLIP with autodistill, you need to install the following dependency:
```bash
pip3 install autodistill-blip
```
## Quickstart
```python
from autodistill_blip import BLIP
# define an ontology to map class names to our BLIP 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 = BLIP(
ontology=CaptionOntology(
{
"person": "person",
"a forklift": "forklift"
}
)
)
base_model.label("./context_images", extension=".jpeg")
```
## License
This project is licensed under a [3-Clause BSD license](LICENSE).
## 🏆 Contributing
We love your input! Please see the core Autodistill [contributing guide](https://github.com/autodistill/autodistill/blob/main/CONTRIBUTING.md) to get started. Thank you 🙏 to all our contributors!
Raw data
{
"_id": null,
"home_page": "",
"name": "autodistill-blip",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Roboflow",
"author_email": "support@roboflow.com",
"download_url": "https://files.pythonhosted.org/packages/fb/40/2b1ea71de7cf821c0aa86528dcb2935e6034edc951ee698b0c49175ae1bc/autodistill-blip-0.1.3.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n <p>\n <a align=\"center\" href=\"\" target=\"_blank\">\n <img\n width=\"850\"\n src=\"https://media.roboflow.com/open-source/autodistill/autodistill-banner.png?4\"\n >\n </a>\n </p>\n</div>\n\n# Autodistill BLIP Module\n\nThis repository contains the code supporting the BLIP base model for use with [Autodistill](https://github.com/autodistill/autodistill).\n\n[BLIP](https://github.com/salesforce/LAVIS), developed by Salesforce, is a computer vision model that supports visual question answering and zero-shot classification. Autodistill supports classifying images using BLIP.\n\nRead the full [Autodistill documentation](https://autodistill.github.io/autodistill/).\n\nRead the [BLIP Autodistill documentation](https://autodistill.github.io/autodistill/base_models/blip/).\n\n## Installation\n\nTo use BLIP with autodistill, you need to install the following dependency:\n\n\n```bash\npip3 install autodistill-blip\n```\n\n## Quickstart\n\n```python\nfrom autodistill_blip import BLIP\n\n# define an ontology to map class names to our BLIP prompt\n# the ontology dictionary has the format {caption: class}\n# where caption is the prompt sent to the base model, and class is the label that will\n# be saved for that caption in the generated annotations\n# then, load the model\nbase_model = BLIP(\n ontology=CaptionOntology(\n {\n \"person\": \"person\",\n \"a forklift\": \"forklift\"\n }\n )\n)\nbase_model.label(\"./context_images\", extension=\".jpeg\")\n```\n\n\n## License\n\nThis project is licensed under a [3-Clause BSD license](LICENSE).\n\n## \ud83c\udfc6 Contributing\n\nWe love your input! Please see the core Autodistill [contributing guide](https://github.com/autodistill/autodistill/blob/main/CONTRIBUTING.md) to get started. Thank you \ud83d\ude4f to all our contributors!\n",
"bugtrack_url": null,
"license": "",
"summary": "BLIP module for use with Autodistill",
"version": "0.1.3",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5bea36135e9067bbe0a489c1c1f1e4c6d6a2727e63df4dc763cdb370c0afa51a",
"md5": "c1c40bbd7749f10770eb2ae386887729",
"sha256": "91e50902068508dcc2ef6ba97232c2e5460e3060186f313f22838e07bf8a30bf"
},
"downloads": -1,
"filename": "autodistill_blip-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c1c40bbd7749f10770eb2ae386887729",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 4624,
"upload_time": "2023-12-06T10:42:46",
"upload_time_iso_8601": "2023-12-06T10:42:46.242608Z",
"url": "https://files.pythonhosted.org/packages/5b/ea/36135e9067bbe0a489c1c1f1e4c6d6a2727e63df4dc763cdb370c0afa51a/autodistill_blip-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fb402b1ea71de7cf821c0aa86528dcb2935e6034edc951ee698b0c49175ae1bc",
"md5": "df36d4615202e44bb57d39b28e8cd64f",
"sha256": "d9a63e829f12bbaa5cbfb31ceb8d5099269c3fbf2a23e6387c25789b718dde69"
},
"downloads": -1,
"filename": "autodistill-blip-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "df36d4615202e44bb57d39b28e8cd64f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 4825,
"upload_time": "2023-12-06T10:42:47",
"upload_time_iso_8601": "2023-12-06T10:42:47.392383Z",
"url": "https://files.pythonhosted.org/packages/fb/40/2b1ea71de7cf821c0aa86528dcb2935e6034edc951ee698b0c49175ae1bc/autodistill-blip-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-06 10:42:47",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "autodistill-blip"
}