Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Task_name = map[int32]string{ 0: "TASK_UNSPECIFIED", 1: "TASK_CLASSIFICATION", 2: "TASK_DETECTION", 3: "TASK_KEYPOINT", 4: "TASK_OCR", 5: "TASK_INSTANCE_SEGMENTATION", 6: "TASK_SEMANTIC_SEGMENTATION", 7: "TASK_TEXT_TO_IMAGE", 11: "TASK_IMAGE_TO_IMAGE", 12: "TASK_EMBEDDING", 13: "TASK_SPEECH_RECOGNITION", 14: "TASK_CHAT", 15: "TASK_COMPLETION", 16: "TASK_CUSTOM", } Task_value = map[string]int32{ "TASK_UNSPECIFIED": 0, "TASK_CLASSIFICATION": 1, "TASK_DETECTION": 2, "TASK_KEYPOINT": 3, "TASK_OCR": 4, "TASK_INSTANCE_SEGMENTATION": 5, "TASK_SEMANTIC_SEGMENTATION": 6, "TASK_TEXT_TO_IMAGE": 7, "TASK_IMAGE_TO_IMAGE": 11, "TASK_EMBEDDING": 12, "TASK_SPEECH_RECOGNITION": 13, "TASK_CHAT": 14, "TASK_COMPLETION": 15, "TASK_CUSTOM": 16, } )
Enum value maps for Task.
View Source
var File_common_task_v1alpha_task_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task int32
Task enumerates the AI task that a model is designed to solve.
const ( // Unspecified. Task_TASK_UNSPECIFIED Task = 0 // Image Classification - classify images into predefined categories. Task_TASK_CLASSIFICATION Task = 1 // Object Detection - detect and localize multiple objects in images. Task_TASK_DETECTION Task = 2 // Keypoint Detection - detect and localize multiple keypoints of objects in images. Task_TASK_KEYPOINT Task = 3 // OCR (Optical Character Recognition) - detect and recognize text in images. Task_TASK_OCR Task = 4 // Instance Segmentation - detect, localize and delineate multiple objects in images. Task_TASK_INSTANCE_SEGMENTATION Task = 5 // Semantic Segmentation - classify image pixels into predefined categories. Task_TASK_SEMANTIC_SEGMENTATION Task = 6 // Text to Image - generate images from input text prompts. Task_TASK_TEXT_TO_IMAGE Task = 7 // Image to Image - generate an image from another image. Task_TASK_IMAGE_TO_IMAGE Task = 11 // Embedding - generate an embedding (a representation as coordinates) from a multimodal input. Task_TASK_EMBEDDING Task = 12 // Speech Recognition - transcribe the words in an audio input. Task_TASK_SPEECH_RECOGNITION Task = 13 // Conversational Text Generation - generate text as responses to a dialog input. Task_TASK_CHAT Task = 14 // Completion Text Generation - generate text following the input prompt. Task_TASK_COMPLETION Task = 15 // Custom - custom task type for free form input/output. Task_TASK_CUSTOM Task = 16 )
func (Task) Descriptor ¶
func (Task) Descriptor() protoreflect.EnumDescriptor
func (Task) EnumDescriptor
deprecated
func (Task) Number ¶
func (x Task) Number() protoreflect.EnumNumber
func (Task) Type ¶
func (Task) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.