nemo_curator.models.clip
Module Contents
Classes
Data
API
Bases: ModelInterface
A model that chains CLIPImageEmbeddings and AestheticScorer models.
_aesthetic_model
_clip_model
model_id_names
Get the model ID names.
Call the CLIPAestheticScorer model.
Parameters:
images
The images to score.
Returns: torch.Tensor
The scores.
classmethod
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.
device
dtype
model_id_names
Get the model ID names.
Call the CLIPImageEmbeddings model.
Parameters:
images
The images to embed.
Returns: torch.Tensor
The embeddings.
classmethod
Download the weights for the CLIPImageEmbeddings model on the node.
Set up the CLIPImageEmbeddings model.