torch_frame.config.ImageEmbedder
- class ImageEmbedder[source]
Bases:
ABCParent class for the
image_embedderofImageEmbedderConfig. This class first retrieves images based on given paths stored in the data frame and then embeds retrieved images into tensor. Users are responsible for implementingforward_embed()which takes a list of images and returns embeddings tensor. User can also overrideforward_retrieve()which takes the paths to images and return a list ofPIL.Image.Image.