![]() |
Represents the classification results for a given classifier head.
mp.tasks.components.containers.Classifications(
categories: List[mp.tasks.components.containers.Category
],
head_index: int,
head_name: Optional[str] = None
)
Methods
create_from_pb2
@classmethod
create_from_pb2( pb2_obj: _ClassificationsProto ) -> 'Classifications'
Creates a Classifications
object from the given protobuf object.
to_pb2
to_pb2() -> _ClassificationsProto
Generates a Classifications protobuf object.
__eq__
__eq__(
other
)
Class Variables | |
---|---|
head_name |
None
|