nemo_curator.models.clip
nemo_curator.models.clip
Module Contents
Classes
Data
API
Bases: ModelInterface
A model that chains CLIPImageEmbeddings and AestheticScorer models.
Get the model ID names.
Call the CLIPAestheticScorer model.
Parameters:
The images to score.
Returns: torch.Tensor
The scores.
Download the weights for the CLIPAestheticScorer model on the node.
Set up the CLIPAestheticScorer model.
Bases: ModelInterface
Interface for generating CLIP image embeddings from input images.
Get the model ID names.
Call the CLIPImageEmbeddings model.
Parameters:
The images to embed.
Returns: torch.Tensor
The embeddings.
Download the weights for the CLIPImageEmbeddings model on the node.
Encode text(s) to normalized CLIP text embeddings.
Parameters:
List of strings to encode.
Returns: torch.Tensor
Normalized text embeddings, shape (len(texts), dim).
Set up the CLIPImageEmbeddings model.