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

AltCLIP model for use with Autodistill.

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

Science Score: 23.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
    Links to: arxiv.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.7%) to scientific vocabulary

Keywords

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

Repository

AltCLIP model for use with Autodistill.

Basic Info
  • Host: GitHub
  • Owner: autodistill
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Homepage: https://docs.autodistill.com
  • Size: 18.6 KB
Statistics
  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
altclip autodistill clip computer-vision
Created over 2 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

Autodistill AltCLIP Module

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

AltCLIP is a multi-modal vision model. With AltCLIP, you can compare the similarity between text and images, or the similarlity between two images. AltCLIP was trained on multi-lingual text-image pairs, which means it can be used for zero-shot classification with text prompts in different languages. Read the AltCLIP paper for more information.

The Autodistill AltCLIP module enables you to use AltCLIP for zero-shot classification.

Read the full Autodistill documentation.

Read the CLIP Autodistill documentation.

Installation

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

bash pip3 install autodistill-altclip

Quickstart

```python from autodistill_altclip import AltCLIP from autodistill.detection import CaptionOntology

define an ontology to map class names to our AltCLIP 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 results

then, load the model

base_model = AltCLIP( ontology=CaptionOntology( { "person": "person", "a forklift": "forklift" } ) )

results = base_model.predict("construction.jpg")

print(results) ```

License

The AltCLIP model is licensed under an Apache 2.0 license. See the model README for more information.

🏆 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

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 8
  • Total Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
James Gallagher j****g@j****g 8
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year 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
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 28 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 2
pypi.org: autodistill-altclip

AltCLIP model for use with Autodistill.

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 28 Last month
Rankings
Dependent packages count: 9.6%
Average: 38.8%
Dependent repos count: 68.0%
Maintainers (2)
Last synced: 10 months ago

Dependencies

setup.py pypi
  • Pillow *
  • autodistill *
  • numpy *
  • supervision *
  • torch *
  • transformers *