https://github.com/autodistill/autodistill-kosmos-2

Kosmos-2 base model for use with Autodistill.

https://github.com/autodistill/autodistill-kosmos-2

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 (11.7%) to scientific vocabulary

Keywords

computer-vision kosmos2 multimodal object-detection
Last synced: 7 months ago · JSON representation

Repository

Kosmos-2 base model for use with Autodistill.

Basic Info
Statistics
  • Stars: 5
  • Watchers: 3
  • Forks: 2
  • Open Issues: 3
  • Releases: 0
Topics
computer-vision kosmos2 multimodal object-detection
Created over 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme License

README.md

Autodistill Kosmos-2 Module

This repository contains the code supporting the Kosmos-2 base model for use with Autodistill.

Kosmos-2, developed by Microsoft, is a multimodal language model that you can use for zero-shot object detection. You can use Kosmos-2 with autodistill for object detection.

Read the full Autodistill documentation.

Read the Kosmos-2 Autodistill documentation.

Installation

To use Kosmos-2 with autodistill, you need to install the following dependency:

bash pip3 install autodistill-kosmos-2

Quickstart

```python from autodistillkosmos2 import Kosmos2

define an ontology to map class names to our Kosmos2 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 = Kosmos2( ontology=CaptionOntology( { "person": "person", "a forklift": "forklift" } ) )

predictions = base_model.predict("./example.png")

basemodel.label("./contextimages", extension=".jpeg") ```

License

This package is implemented using the Transformers Kosmos-2 implementation. The underlying Kosmos-2 model, developed by Microsoft, 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

Use bigger slower models to train smaller faster ones

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 3
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 14 days
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.33
  • Average comments per pull request: 3.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • shersoni610 (3)
Pull Request Authors
  • djwessel (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 25 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
pypi.org: autodistill-kosmos-2

Kosmos-2 base model for use with Autodistill.

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 25 Last month
Rankings
Dependent packages count: 9.1%
Average: 38.7%
Dependent repos count: 68.3%
Maintainers (1)
Last synced: 8 months ago