Download README.md from EIDORA/CLIP_ViTB32_Image: direct link, hf CLI and curl.
- Browser
- Download file 4.73 kB
-
https://huggingface.co/EIDORA/CLIP_ViTB32_Image/resolve/main/README.md
- Command line
-
hf download hf://EIDORA/CLIP_ViTB32_Image/README.md
-
curl -L -o README.md https://huggingface.co/EIDORA/CLIP_ViTB32_Image/resolve/main/README.md
library_name: onnx
pipeline_tag: feature-extraction
tags:
- eidora
- eidora-model-zoo
- onnx
- onnxruntime
- embeddings
- image
base_model: openai/clip-vit-base-patch32
CLIP ViT-B/32 — Image Embeddings
This is the image encoder from CLIP ViT-B/32. EIDORA returns a language-aligned image vector, but this particular package accepts images only.
Recommended Use
Use this variant to explore a visual collection with a representation learned from image–caption relationships. It can be a useful contrast to purely image-trained DINO features, particularly when semantic content matters more than low-level appearance. Image–text comparison requires a compatible text encoder and a workflow that actually supplies both sides; this package alone does not accept a text prompt.
Limitations
- This repository does not accept text input or create text embeddings.
- CLIP was trained on web image–text pairs; its associations can be biased and may not reflect specialist archival terminology.
- An embedding match is not evidence that an image has a particular identity, meaning, or provenance.
Input
What you provide: an image file. EIDORA prepares RGB pixels before ONNX inference.
| ONNX input | Type | Shape | Prepared from |
|---|---|---|---|
pixel_values |
float32 |
[batch, 3, 224, 224] |
pixels |
Output
embedding is float32 with shape [batch, 512]. The 512-dimensional embedding is L2-normalized for cosine similarity. It is a feature vector, not ImageNet probabilities or a label.
Preprocessing
- Convert to RGB. Resize the shorter edge to 224 pixels, then take a center crop of 224 × 224. Interpolation: bicubic. Resize rounding:
truncate. - Scale RGB pixel values by 0.00392156862745, then normalize by mean
[0.48145466, 0.4578275, 0.40821073]and standard deviation[0.26862954, 0.26130258, 0.27577711]. - Pass
float32pixels inNCHWlayout. The preprocessing is performed by EIDORA, not by the ONNX graph.
Model Source and Architecture
CLIP ViT-B/32 encodes a 224 × 224 image with a Vision Transformer whose patch size is 32. The projected visual representation is a 512-dimensional vector in CLIP’s shared image–text space; EIDORA L2-normalizes it.
Training Data and Checkpoint Provenance
- Upstream checkpoint:
openai/clip-vit-base-patch32. - Pinned revision:
b97b0100e55e367c057773c2a614676470b0d575.
The weights come from openai/clip-vit-base-patch32. CLIP was trained with image–text contrastive supervision on a large collection of internet image–caption pairs; the exact training corpus was not released.
Research Context
Research paper: Learning Transferable Visual Models From Natural Language Supervision
Radford and colleagues explain how natural-language supervision supports transferable visual features. That training objective makes CLIP different from conventional ImageNet CNNs, even when EIDORA uses only the image encoder.
Attribution and Licensing
The package uses license: other. The OpenAI CLIP source code is MIT-licensed, but a separate and unambiguous license for the pretrained weights is not established by the supplied EIDORA provenance. Check upstream terms before redistribution or commercial use.
References
- Research paper: Learning Transferable Visual Models From Natural Language Supervision
- Source checkpoint: openai/clip-vit-base-patch32
Suggested research citation (from the packaged configuration):
@inproceedings{radford2021learning,
title={Learning Transferable Visual Models From Natural Language Supervision},
author={Radford, Alec and Kim, Jong Wook and Hallacy, Chris and Ramesh, Aditya and Goh, Gabriel and Agarwal, Sandhini and Sastry, Girish and Askell, Amanda and Mishkin, Pamela and Clark, Jack and Krueger, Gretchen and Sutskever, Ilya},
booktitle={ICML},
year={2021}
}
Package Information
- Repository:
EIDORA/CLIP_ViTB32_Image - Package schema / version:
3/0.1.0 - Modality:
image - ONNX graph(s):
model.onnx - Configuration:
config.yaml - Declared ONNX Runtime providers:
CUDAExecutionProvider,CoreMLExecutionProvider,CPUExecutionProvider
Execution-provider availability depends on the user’s EIDORA installation, operating system and hardware. The declared providers are configuration options, not a guarantee of equal speed or identical hardware use. The config.yaml file defines the exact runtime input/output contract.