Skip to main content

A Birder extension for CLIP-style image-text modeling and multimodal computer vision workflows.

Project description

Birder CLIP

Birder CLIP is an early-stage Birder extension for CLIP-style image-text models, focused on practical inference and fine-tuning workflows.

Introduction

Birder CLIP extends Birder with image-text models for zero-shot classification, image-text retrieval style workflows, caption generation and related multimodal computer vision tasks.

The project is aimed at image-text modeling rather than general vision-language model (VLM) chat or instruction-following systems. It currently includes CLIP-style components, tokenizers, model registry utilities, inference scripts and training code. Full training is supported, but for large-scale CLIP pretraining you are probably better served by OpenCLIP.

Setup

  1. Ensure your environment meets the minimum requirements:

    • Python 3.11 or newer
    • PyTorch 2.10 or newer (installed for your hardware/driver stack)
    • Birder 0.6.0 or newer
  2. Install the latest Birder CLIP version:

pip install birder-clip

Getting Started

List available image-text models:

python -m birder_clip.tools list-models --image-text

List available pretrained weights:

python -m birder_clip.tools list-models --pretrained --verbose

Run zero-shot classification on a directory of images:

python -m birder_clip.scripts.zero_shot -n laion_clip_vit_l14 --classes eagle hawk falcon --template-set default --gpu data/images

For detailed options, run:

python -m birder_clip.scripts.zero_shot --help
python -m birder_clip.tools --help

Training

Birder CLIP includes training support for image-text datasets in CSV and WebDataset formats, including CLIP, CoCa and LiT-style workflows.

Project Status and Contributions

Birder CLIP is an early alpha project. APIs, model names, checkpoints, training recipes and command-line options may change without notice.

This is currently a personal project in active development. Suggestions, bug reports and feedback are welcome through the project's issue tracker, but the project is not yet stable enough for broad external contributions.

Licenses

The code in this project is primarily licensed under Apache 2.0. See LICENSE for details.

Some model implementations, pretrained weights, tokenizers and converted artifacts may be derived from or depend on projects and datasets with their own licenses and usage restrictions.

You are responsible for ensuring compliance with all licenses and conditions of any dependent licenses.

Disclaimer

If you intend to use Birder CLIP, its pretrained weights, or any associated datasets in a commercial product, we strongly recommend seeking legal advice to ensure compliance with all relevant licenses and terms of use.

It's the user's responsibility to ensure that their use of this project, including any pretrained weights or datasets, complies with all applicable licenses and legal requirements.

Acknowledgments

Birder CLIP owes much to the work of others in computer vision, image-text representation learning and open-source machine learning.

Special thanks to the OpenCLIP project, which serves as the main reference implementation and inspiration for much of the CLIP-style modeling and training work here. The same principle as in Birder applies: this project stands on the shoulders of many open-source projects, papers and datasets. If an attribution is missing, please open an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

birder_clip-0.0.2.dev7.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

birder_clip-0.0.2.dev7-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file birder_clip-0.0.2.dev7.tar.gz.

File metadata

  • Download URL: birder_clip-0.0.2.dev7.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for birder_clip-0.0.2.dev7.tar.gz
Algorithm Hash digest
SHA256 732455088732eaf80c9dbf500068f544cafd7605a559b9468eacfbf619449b3b
MD5 172b0398e3b65f14a1ede4c557ca8df3
BLAKE2b-256 712895088ad29771e0e5ec0fde246f575abd984b527c656795b2eecdf2539279

See more details on using hashes here.

File details

Details for the file birder_clip-0.0.2.dev7-py3-none-any.whl.

File metadata

File hashes

Hashes for birder_clip-0.0.2.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 3dc70e3ac36443147264f0675bdb04038e960c28f48e859b4e60e64fb4a93145
MD5 ba44bbcfc475c2935e51675442be12fd
BLAKE2b-256 5185dd92c7e5c6d4f25144b5d40662e89cdacfe640c97911b2f5db69c47ac73f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page