SAVRN
Search Contact SAVRN

Open-weight model · Zero shot image classification

clip-vit-base-patch32

by OpenAI openai/clip-vit-base-patch32

Disclaimer: The model card is taken and modified from the official CLIP repository, it can be found here. The CLIP model was developed by researchers at OpenAI to learn about what contributes to robustness in computer vision tasks.

Parameters
Context77
Weights1.8 GB
License
AccessOpen weights
Monthly Downloads21.8M

Model Card

Disclaimer: The model card is taken and modified from the official CLIP repository, it can be found here. The CLIP model was developed by researchers at OpenAI to learn about what contributes to robustness in computer vision tasks. The model was also developed to test the ability of models to generalize to arbitrary image classification tasks in a zero-shot manner. It was not developed for general model deployment - to deploy models like CLIP, researchers will first need to carefully study their capabilities in relation to the specific context they’re being deployed within. January 2021 The model uses a ViT-B/32 Transformer architecture as an image encoder and uses a masked self-attention…

Excerpt from the card by OpenAI.

Configuration

Architecture
CLIPModel
Context length (tokens)
77
Layers
12
Hidden size
512
Feed-forward size
2,048
Attention heads
8
Vocabulary size
49,408
Model type
clip

Identity and Version

Repository
openai/clip-vit-base-patch32
Publisher
OpenAI
Task
Zero shot image classification
Modality
Other
Library
transformers
Parameters
Not stated by the source
Languages
tf, jax
Revision
3d74acf9a28c67741b2f4f2ea7635f0aaf6f0268
First published
2022-03-02
Last updated
2024-02-29

Files and Weights

12 files, 1.8 GB in total. The weights are 3 files totalling 1.8 GB in bin, h5, msgpack.

Weights3 files · 1.8 GB
Configuration3 files · 4.9 KB
Tokenizer4 files · 3.6 MB
Documentation1 file · 7.9 KB
Repository1 file · 690 B
Every file
FileTypeSizeSHA-256
flax_model.msgpackWeights605.1 MB 2a2994d89beb
pytorch_model.binWeights605.2 MB a63082132ba4
tf_model.h5Weights605.6 MB 0d7e64ea2c49
config.jsonConfiguration4.2 KB
preprocessor_config.jsonConfiguration316 B
special_tokens_map.jsonConfiguration389 B
README.mdDocumentation7.9 KB
.gitattributesRepository690 B
merges.txtTokenizer524.7 KB
tokenizer.jsonTokenizer2.2 MB
tokenizer_config.jsonTokenizer592 B
vocab.jsonTokenizer862.3 KB

License and Download

License
Not stated by the source
Access
Open weights, no gate
Download size
1.8 GB
Download from OpenAI

Released by OpenAI through its official repository on Hugging Face.

Built From

Memory Requirements

PrecisionWeights in memory
As published1.8 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About clip-vit-base-patch32

What is clip-vit-base-patch32's context length?

77 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Zero shot image classification

clip-vit-large-patch14-336

OpenAI

This model was trained from scratch on an unknown dataset. It achieves the following results on the evaluation set: The following hyperparameters were used during training: - trainingprecision: float32 - Transformers 4.21.3 - TensorFlow 2.8.2 - Tokenizers 0.12.1

Open weights 77 tokens transformers

Model · Zero shot image classification

clip-vit-base-patch16

OpenAI

Disclaimer: The model card is taken and modified from the official CLIP repository, it can be found here. The CLIP model was developed by researchers at OpenAI to learn about what contributes to robustness in computer vision tasks. The model was also developed to test the ability of models to generalize to arbitrary image classification tasks in a zero-shot manner. It was not developed for general model deployment - to deploy models like CLIP, researchers will first need to carefully study their capabilities in relation to the specific context they’re being deployed within. January 2021 The base model uses a ViT-B/16 Transformer architecture as an image encoder and uses a masked…

Open weights 77 tokens transformers

Model · Zero shot image classification

CLIP-convnext_base_w-laion2B-s13B-b82K-augreg

LAION eV

A series of CLIP ConvNeXt-Base (w/ wide embed dim) models trained on subsets LAION-5B (https://laion.ai/blog/laion-5b/) using OpenCLIP (https://github.com/mlfoundations/openclip). Explore an alternative to ViT and ResNet (w/ AttentionPooling) CLIP models that scales well with model size and image resolution First known ConvNeXt CLIP models trained at scale in the range of CLIP ViT-B/16 and RN50x4 models First released model weights exploring increase of augmentation + regularization for image tower via adding (greater scale range of RRC, random erasing, stochastic depth) The models utilize the timm ConvNeXt-Base model (convnextbase) as the image tower, and the same text tower as the RN50x4…

Open weights mit open_clip

Model · Zero shot image classification

DermLIP_ViT-B-16

Siyuan Yan

DermLIP is a vision-language model for dermatology, trained on the Derm1M dataset—the largest dermatological image-text corpus to date. python import openclip from PIL import Image import torch model,, preprocess = openclip.createmodelandtransforms( 'hf-hub:redlessone/DermLIPViT-B-16' model.eval() tokenizer = openclip.gettokenizer('hf-hub:redlessone/DermLIPViT-B-16') image = preprocess(Image.open("yourskinimage.png")).unsqueeze(0) PADCLASSNAMES = [ "nevus", "basal cell carcinoma", "actinic keratosis", "seborrheic keratosis", "squamous cell carcinoma", "melanoma" template = lambda c: f'This is a skin image of {c}' text = tokenizer([template(c) for c in PADCLASSNAMES]) with torch.nograd()…

Open weights cc-by-4.0 transformers

Model · Zero shot image classification

DermFM-Zero

Siyuan Yan

DermFM-Zero is a dermatology vision–language foundation model. It pairs a PanDerm ViT-L/16 vision encoder with native-resolution input (NaViT patch-and-pack) and a PubMedBERT-256 text encoder pretrained on a Derm1M knowledge tree (KEP), aligned on 517,455 public dermatology image–text pairs with multi-aspect knowledge contrastive learning (MAKE) and knowledge distillation. It performs zero-shot diagnosis and cross-modal retrieval, serves as a backbone for multimodal fine-tuning and VQA, and yields interpretable concepts through sparse autoencoders. Across extensive benchmarks and three multinational reader studies, DermFM-Zero achieves state-of-the-art zero-shot performance while improving…

Open weights cc-by-nc-nd-4.0 transformers

Model · Zero shot image classification

CLIP-ViT-B-32-laion2B-s34B-b79K

LAION eV

A CLIP ViT-B/32 model trained with the LAION-2B English subset of LAION-5B (https://laion.ai/blog/laion-5b/) using OpenCLIP (https://github.com/mlfoundations/openclip). Model training done by Romain Beaumont on the stability.ai cluster. As per the original OpenAI CLIP model card, this model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification. We also hope it can be used for interdisciplinary studies of the potential impact of such model. The OpenAI CLIP paper includes a discussion of potential downstream impacts to provide an example for this sort of analysis.…

Open weights mit 151M parameters 77 tokens open_clip