Attention: This MediaPipe Solutions Preview is an early release. Learn more.

mp.tasks.components.containers.Embedding

Stay organized with collections Save and categorize content based on your preferences.

Embedding result for a given embedder head.

embedding The actual embedding, either floating-point or scalar-quantized.
head_index The index of the embedder head that produced this embedding. This is useful for multi-head models.
head_name The name of the embedder head, which is the corresponding tensor metadata name (if any). This is useful for multi-head models.

Methods

create_from_pb2

View source

Creates a Embedding object from the given protobuf object.

__eq__

head_index None
head_name None