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.2 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.dev8.tar.gz (1.5 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.dev8-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: birder_clip-0.0.2.dev8.tar.gz
  • Upload date:
  • Size: 1.5 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.dev8.tar.gz
Algorithm Hash digest
SHA256 e83f9c5c0be5db1ca091a425adfb16a7c573c9a5b561a1e90308e130738e2b13
MD5 ff0893330b53ffcb4b0d96a7c90333b5
BLAKE2b-256 ed7db83a1748489ab48ef2f45ae9330a6cdeaa125a4de182d5544a69f375015f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for birder_clip-0.0.2.dev8-py3-none-any.whl
Algorithm Hash digest
SHA256 6ecfe6af7ec223a99774078a254c73873c9ee2b87af3e527f63a3661042ce7e6
MD5 28ea2c9a1b43a543886bacbba461641a
BLAKE2b-256 f4105438e18a88742e7a78e0856ac5a6d7034c6db14610c4b4720ce7f6f274b6

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