https://github.com/autodistill/autodistill-metaclip

MetaCLIP module for use with Autodistill.

https://github.com/autodistill/autodistill-metaclip

Science Score: 36.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
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.1%) to scientific vocabulary

Keywords

clip computer-vision metaclip
Last synced: 9 months ago · JSON representation

Repository

MetaCLIP module for use with Autodistill.

Basic Info
Statistics
  • Stars: 21
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
clip computer-vision metaclip
Created over 2 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

Autodistill MetaCLIP Module

This repository contains the code supporting the MetaCLIP base model for use with Autodistill.

MetaCLIP, developed by Meta AI Research, is a computer vision model trained using pairs of images and text. The model was described in the Demystifying CLIP Data paper. You can use MetaCLIP with autodistill for image classification.

Read the full Autodistill documentation.

Read the MetaCLIP Autodistill documentation.

Installation

To use MetaCLIP with autodistill, you need to install the following dependency:

bash pip3 install autodistill-metaclip

Quickstart

get predictions

```python from autodistill_metaclip import MetaCLIP

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

results = base_model.predict("./image.png") print(results) ```

calculate and compare embeddings

```python from autodistill_metaclip import MetaCLIP

base_model = MetaCLIP(None)

text = basemodel.embedtext("coffee") image = basemodel.embedimage("coffeeshop.jpg")

print(base_model.compare(text, image)) ```

License

This project was licensed under a Creative Commons Attribution-NonCommercial 4.0 International.

🏆 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: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total 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
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
  • shashi-netra (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 58 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 4
  • Total maintainers: 1
pypi.org: autodistill-metaclip

MetaCLIP base model for use with Autodistill.

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 58 Last month
Rankings
Dependent packages count: 9.4%
Average: 38.7%
Dependent repos count: 68.1%
Maintainers (1)
Last synced: 10 months ago