Instructions to use sentence-transformers/clip-ViT-B-32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use sentence-transformers/clip-ViT-B-32 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("sentence-transformers/clip-ViT-B-32") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
License?
#4
by Li0ness - opened
The model card misses information about license.
Could you please add license details here?
Hey, following up on this - is sentence-transformers/clip-ViT-B-32 covered by Apache 2.0? Many thanks!
Hello!
I suspect that the license follows that of the https://github.com/openai/CLIP project and its models.
- Tom Aarsen