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.dev6.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.dev6-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: birder_clip-0.0.2.dev6.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.dev6.tar.gz
Algorithm Hash digest
SHA256 9338e4139a23f6d974dab31a603cbee20c71db21d7fbfd26fc35a9554393786a
MD5 39da05bd2a99d85da7b6cbb1ee6f0864
BLAKE2b-256 4cf4ad5197f339c39e7108046655121a6dec2f03361c4693d685997581525b04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for birder_clip-0.0.2.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 a7b6bb5cf75fdf07f733e2c4c3cbd61c5ef1caf17f9a87d3888c489b76090892
MD5 de29287392c93ee67f1eebb861806bf2
BLAKE2b-256 74988367afae372700f5b8ca6d43cc6b21173194b6ee702355cf2ca09bfb2009

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