This is the Image & Text model
CLIP
, which maps text and images to a shared vector space. For applications of the models, have a look in our documentation
SBERT.net - Image Search
Usage
After installing
sentence-transformers
(
pip install sentence-transformers
), the usage of this model is easy:
from sentence_transformers import SentenceTransformer, util
from PIL import Image
#Load CLIP model
model = SentenceTransformer('clip-ViT-L-14')
#Encode an image:
img_emb = model.encode(Image.open('two_dogs_in_snow.jpg'))
#Encode text descriptions
text_emb = model.encode(['Two dogs in the snow', 'A cat on a table', 'A picture of London at night'])
#Compute cosine similarities
cos_scores = util.cos_sim(img_emb, text_emb)
print(cos_scores)
See our
SBERT.net - Image Search
documentation for more examples how the model can be used for image search, zero-shot image classification, image clustering and image deduplication.
Performance
In the following table we find the zero-shot ImageNet validation set accuracy:
More Information About clip-ViT-L-14 huggingface.co Model
clip-ViT-L-14 huggingface.co
clip-ViT-L-14 huggingface.co is an AI model on huggingface.co that provides clip-ViT-L-14's model effect (), which can be used instantly with this OrcaDB clip-ViT-L-14 model. huggingface.co supports a free trial of the clip-ViT-L-14 model, and also provides paid use of the clip-ViT-L-14. Support call clip-ViT-L-14 model through api, including Node.js, Python, http.
clip-ViT-L-14 huggingface.co is an online trial and call api platform, which integrates clip-ViT-L-14's modeling effects, including api services, and provides a free online trial of clip-ViT-L-14, you can try clip-ViT-L-14 online for free by clicking the link below.
OrcaDB clip-ViT-L-14 online free url in huggingface.co:
clip-ViT-L-14 is an open source model from GitHub that offers a free installation service, and any user can find clip-ViT-L-14 on GitHub to install. At the same time, huggingface.co provides the effect of clip-ViT-L-14 install, users can directly use clip-ViT-L-14 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.