Documentation ¶
Index ¶
- Constants
- Variables
- type AccuracyMetrics
- func (*AccuracyMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *AccuracyMetrics) GetAvgValue() float64
- func (x *AccuracyMetrics) GetMaxValue() float32
- func (x *AccuracyMetrics) GetMinValue() float32
- func (x *AccuracyMetrics) GetStdDeviation() float32
- func (*AccuracyMetrics) ProtoMessage()
- func (x *AccuracyMetrics) ProtoReflect() protoreflect.Message
- func (x *AccuracyMetrics) Reset()
- func (x *AccuracyMetrics) String() string
- type CroppingParams
- func (*CroppingParams) Descriptor() ([]byte, []int)deprecated
- func (x *CroppingParams) GetCroppingFraction() float32
- func (m *CroppingParams) GetParams() isCroppingParams_Params
- func (x *CroppingParams) GetSquareCropping() bool
- func (x *CroppingParams) GetTargetSize() *ImageSize
- func (*CroppingParams) ProtoMessage()
- func (x *CroppingParams) ProtoReflect() protoreflect.Message
- func (x *CroppingParams) Reset()
- func (x *CroppingParams) String() string
- type CroppingParams_CroppingFraction
- type CroppingParams_TargetSize
- type EvaluationStageConfig
- func (*EvaluationStageConfig) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluationStageConfig) GetName() string
- func (x *EvaluationStageConfig) GetSpecification() *ProcessSpecification
- func (*EvaluationStageConfig) ProtoMessage()
- func (x *EvaluationStageConfig) ProtoReflect() protoreflect.Message
- func (x *EvaluationStageConfig) Reset()
- func (x *EvaluationStageConfig) String() string
- type EvaluationStageMetrics
- func (*EvaluationStageMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluationStageMetrics) GetNumRuns() int32
- func (x *EvaluationStageMetrics) GetProcessMetrics() *ProcessMetrics
- func (*EvaluationStageMetrics) ProtoMessage()
- func (x *EvaluationStageMetrics) ProtoReflect() protoreflect.Message
- func (x *EvaluationStageMetrics) Reset()
- func (x *EvaluationStageMetrics) String() string
- type ImageClassificationMetrics
- func (*ImageClassificationMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *ImageClassificationMetrics) GetInferenceLatency() *LatencyMetrics
- func (x *ImageClassificationMetrics) GetInferenceMetrics() *TfliteInferenceMetrics
- func (x *ImageClassificationMetrics) GetPreProcessingLatency() *LatencyMetrics
- func (x *ImageClassificationMetrics) GetTopkAccuracyMetrics() *TopkAccuracyEvalMetrics
- func (*ImageClassificationMetrics) ProtoMessage()
- func (x *ImageClassificationMetrics) ProtoReflect() protoreflect.Message
- func (x *ImageClassificationMetrics) Reset()
- func (x *ImageClassificationMetrics) String() string
- type ImageClassificationParams
- func (*ImageClassificationParams) Descriptor() ([]byte, []int)deprecated
- func (x *ImageClassificationParams) GetInferenceParams() *TfliteInferenceParams
- func (x *ImageClassificationParams) GetTopkAccuracyEvalParams() *TopkAccuracyEvalParams
- func (*ImageClassificationParams) ProtoMessage()
- func (x *ImageClassificationParams) ProtoReflect() protoreflect.Message
- func (x *ImageClassificationParams) Reset()
- func (x *ImageClassificationParams) String() string
- type ImagePreprocessingParams
- func (*ImagePreprocessingParams) Descriptor() ([]byte, []int)deprecated
- func (x *ImagePreprocessingParams) GetOutputType() int32
- func (x *ImagePreprocessingParams) GetSteps() []*ImagePreprocessingStepParams
- func (*ImagePreprocessingParams) ProtoMessage()
- func (x *ImagePreprocessingParams) ProtoReflect() protoreflect.Message
- func (x *ImagePreprocessingParams) Reset()
- func (x *ImagePreprocessingParams) String() string
- type ImagePreprocessingStepParams
- func (*ImagePreprocessingStepParams) Descriptor() ([]byte, []int)deprecated
- func (x *ImagePreprocessingStepParams) GetCroppingParams() *CroppingParams
- func (x *ImagePreprocessingStepParams) GetNormalizationParams() *NormalizationParams
- func (x *ImagePreprocessingStepParams) GetPaddingParams() *PaddingParams
- func (m *ImagePreprocessingStepParams) GetParams() isImagePreprocessingStepParams_Params
- func (x *ImagePreprocessingStepParams) GetResizingParams() *ResizingParams
- func (*ImagePreprocessingStepParams) ProtoMessage()
- func (x *ImagePreprocessingStepParams) ProtoReflect() protoreflect.Message
- func (x *ImagePreprocessingStepParams) Reset()
- func (x *ImagePreprocessingStepParams) String() string
- type ImagePreprocessingStepParams_CroppingParams
- type ImagePreprocessingStepParams_NormalizationParams
- type ImagePreprocessingStepParams_PaddingParams
- type ImagePreprocessingStepParams_ResizingParams
- type ImageSize
- type InferenceProfilerMetrics
- func (*InferenceProfilerMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *InferenceProfilerMetrics) GetOutputErrors() []*AccuracyMetrics
- func (x *InferenceProfilerMetrics) GetReferenceLatency() *LatencyMetrics
- func (x *InferenceProfilerMetrics) GetTestLatency() *LatencyMetrics
- func (*InferenceProfilerMetrics) ProtoMessage()
- func (x *InferenceProfilerMetrics) ProtoReflect() protoreflect.Message
- func (x *InferenceProfilerMetrics) Reset()
- func (x *InferenceProfilerMetrics) String() string
- type LatencyMetrics
- func (*LatencyMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *LatencyMetrics) GetAvgUs() float64
- func (x *LatencyMetrics) GetLastUs() int64
- func (x *LatencyMetrics) GetMaxUs() int64
- func (x *LatencyMetrics) GetMinUs() int64
- func (x *LatencyMetrics) GetStdDeviationUs() int64
- func (x *LatencyMetrics) GetSumUs() int64
- func (*LatencyMetrics) ProtoMessage()
- func (x *LatencyMetrics) ProtoReflect() protoreflect.Message
- func (x *LatencyMetrics) Reset()
- func (x *LatencyMetrics) String() string
- type NormalizationParams
- func (*NormalizationParams) Descriptor() ([]byte, []int)deprecated
- func (x *NormalizationParams) GetChannelwiseMean() float32
- func (m *NormalizationParams) GetMean() isNormalizationParams_Mean
- func (x *NormalizationParams) GetMeans() *NormalizationParams_PerChannelMeanValues
- func (x *NormalizationParams) GetScale() float32
- func (*NormalizationParams) ProtoMessage()
- func (x *NormalizationParams) ProtoReflect() protoreflect.Message
- func (x *NormalizationParams) Reset()
- func (x *NormalizationParams) String() string
- type NormalizationParams_ChannelwiseMean
- type NormalizationParams_Means
- type NormalizationParams_PerChannelMeanValues
- func (*NormalizationParams_PerChannelMeanValues) Descriptor() ([]byte, []int)deprecated
- func (x *NormalizationParams_PerChannelMeanValues) GetBMean() float32
- func (x *NormalizationParams_PerChannelMeanValues) GetGMean() float32
- func (x *NormalizationParams_PerChannelMeanValues) GetRMean() float32
- func (*NormalizationParams_PerChannelMeanValues) ProtoMessage()
- func (x *NormalizationParams_PerChannelMeanValues) ProtoReflect() protoreflect.Message
- func (x *NormalizationParams_PerChannelMeanValues) Reset()
- func (x *NormalizationParams_PerChannelMeanValues) String() string
- type ObjectDetectionAveragePrecisionMetrics
- func (*ObjectDetectionAveragePrecisionMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectDetectionAveragePrecisionMetrics) GetIndividualAveragePrecisions() []*ObjectDetectionAveragePrecisionMetrics_AveragePrecision
- func (x *ObjectDetectionAveragePrecisionMetrics) GetOverallMeanAveragePrecision() float32
- func (*ObjectDetectionAveragePrecisionMetrics) ProtoMessage()
- func (x *ObjectDetectionAveragePrecisionMetrics) ProtoReflect() protoreflect.Message
- func (x *ObjectDetectionAveragePrecisionMetrics) Reset()
- func (x *ObjectDetectionAveragePrecisionMetrics) String() string
- type ObjectDetectionAveragePrecisionMetrics_AveragePrecision
- func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectDetectionAveragePrecisionMetrics_AveragePrecision) GetAveragePrecision() float32
- func (x *ObjectDetectionAveragePrecisionMetrics_AveragePrecision) GetIouThreshold() float32
- func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) ProtoMessage()
- func (x *ObjectDetectionAveragePrecisionMetrics_AveragePrecision) ProtoReflect() protoreflect.Message
- func (x *ObjectDetectionAveragePrecisionMetrics_AveragePrecision) Reset()
- func (x *ObjectDetectionAveragePrecisionMetrics_AveragePrecision) String() string
- type ObjectDetectionAveragePrecisionParams
- func (*ObjectDetectionAveragePrecisionParams) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectDetectionAveragePrecisionParams) GetIouThresholds() []float32
- func (x *ObjectDetectionAveragePrecisionParams) GetNumClasses() int32
- func (x *ObjectDetectionAveragePrecisionParams) GetNumRecallPoints() int32
- func (*ObjectDetectionAveragePrecisionParams) ProtoMessage()
- func (x *ObjectDetectionAveragePrecisionParams) ProtoReflect() protoreflect.Message
- func (x *ObjectDetectionAveragePrecisionParams) Reset()
- func (x *ObjectDetectionAveragePrecisionParams) String() string
- type ObjectDetectionGroundTruth
- func (*ObjectDetectionGroundTruth) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectDetectionGroundTruth) GetDetectionResults() []*ObjectDetectionResult
- func (*ObjectDetectionGroundTruth) ProtoMessage()
- func (x *ObjectDetectionGroundTruth) ProtoReflect() protoreflect.Message
- func (x *ObjectDetectionGroundTruth) Reset()
- func (x *ObjectDetectionGroundTruth) String() string
- type ObjectDetectionMetrics
- func (*ObjectDetectionMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectDetectionMetrics) GetAveragePrecisionMetrics() *ObjectDetectionAveragePrecisionMetrics
- func (x *ObjectDetectionMetrics) GetInferenceLatency() *LatencyMetrics
- func (x *ObjectDetectionMetrics) GetInferenceMetrics() *TfliteInferenceMetrics
- func (x *ObjectDetectionMetrics) GetPreProcessingLatency() *LatencyMetrics
- func (*ObjectDetectionMetrics) ProtoMessage()
- func (x *ObjectDetectionMetrics) ProtoReflect() protoreflect.Message
- func (x *ObjectDetectionMetrics) Reset()
- func (x *ObjectDetectionMetrics) String() string
- type ObjectDetectionParams
- func (*ObjectDetectionParams) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectDetectionParams) GetApParams() *ObjectDetectionAveragePrecisionParams
- func (x *ObjectDetectionParams) GetClassOffset() int32
- func (x *ObjectDetectionParams) GetInferenceParams() *TfliteInferenceParams
- func (*ObjectDetectionParams) ProtoMessage()
- func (x *ObjectDetectionParams) ProtoReflect() protoreflect.Message
- func (x *ObjectDetectionParams) Reset()
- func (x *ObjectDetectionParams) String() string
- type ObjectDetectionResult
- func (*ObjectDetectionResult) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectDetectionResult) GetImageId() int64
- func (x *ObjectDetectionResult) GetImageName() string
- func (x *ObjectDetectionResult) GetObjects() []*ObjectDetectionResult_ObjectInstance
- func (*ObjectDetectionResult) ProtoMessage()
- func (x *ObjectDetectionResult) ProtoReflect() protoreflect.Message
- func (x *ObjectDetectionResult) Reset()
- func (x *ObjectDetectionResult) String() string
- type ObjectDetectionResult_ObjectInstance
- func (*ObjectDetectionResult_ObjectInstance) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectDetectionResult_ObjectInstance) GetBoundingBox() *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox
- func (x *ObjectDetectionResult_ObjectInstance) GetClassId() int32
- func (x *ObjectDetectionResult_ObjectInstance) GetScore() float32
- func (*ObjectDetectionResult_ObjectInstance) ProtoMessage()
- func (x *ObjectDetectionResult_ObjectInstance) ProtoReflect() protoreflect.Message
- func (x *ObjectDetectionResult_ObjectInstance) Reset()
- func (x *ObjectDetectionResult_ObjectInstance) String() string
- type ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox
- func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedBottom() float32
- func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedLeft() float32
- func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedRight() float32
- func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedTop() float32
- func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) ProtoMessage()
- func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) ProtoReflect() protoreflect.Message
- func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) Reset()
- func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) String() string
- type PaddingParams
- func (*PaddingParams) Descriptor() ([]byte, []int)deprecated
- func (x *PaddingParams) GetPaddingValue() int32
- func (m *PaddingParams) GetParams() isPaddingParams_Params
- func (x *PaddingParams) GetSquarePadding() bool
- func (x *PaddingParams) GetTargetSize() *ImageSize
- func (*PaddingParams) ProtoMessage()
- func (x *PaddingParams) ProtoReflect() protoreflect.Message
- func (x *PaddingParams) Reset()
- func (x *PaddingParams) String() string
- type PaddingParams_SquarePadding
- type PaddingParams_TargetSize
- type ProcessMetrics
- func (*ProcessMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessMetrics) GetImageClassificationMetrics() *ImageClassificationMetrics
- func (x *ProcessMetrics) GetInferenceProfilerMetrics() *InferenceProfilerMetrics
- func (x *ProcessMetrics) GetObjectDetectionAveragePrecisionMetrics() *ObjectDetectionAveragePrecisionMetrics
- func (x *ProcessMetrics) GetObjectDetectionMetrics() *ObjectDetectionMetrics
- func (m *ProcessMetrics) GetStageMetrics() isProcessMetrics_StageMetrics
- func (x *ProcessMetrics) GetTfliteInferenceMetrics() *TfliteInferenceMetrics
- func (x *ProcessMetrics) GetTopkAccuracyMetrics() *TopkAccuracyEvalMetrics
- func (x *ProcessMetrics) GetTotalLatency() *LatencyMetrics
- func (*ProcessMetrics) ProtoMessage()
- func (x *ProcessMetrics) ProtoReflect() protoreflect.Message
- func (x *ProcessMetrics) Reset()
- func (x *ProcessMetrics) String() string
- type ProcessMetrics_ImageClassificationMetrics
- type ProcessMetrics_InferenceProfilerMetrics
- type ProcessMetrics_ObjectDetectionAveragePrecisionMetrics
- type ProcessMetrics_ObjectDetectionMetrics
- type ProcessMetrics_TfliteInferenceMetrics
- type ProcessMetrics_TopkAccuracyMetrics
- type ProcessSpecification
- func (*ProcessSpecification) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessSpecification) GetImageClassificationParams() *ImageClassificationParams
- func (x *ProcessSpecification) GetImagePreprocessingParams() *ImagePreprocessingParams
- func (x *ProcessSpecification) GetObjectDetectionAveragePrecisionParams() *ObjectDetectionAveragePrecisionParams
- func (x *ProcessSpecification) GetObjectDetectionParams() *ObjectDetectionParams
- func (m *ProcessSpecification) GetParams() isProcessSpecification_Params
- func (x *ProcessSpecification) GetTfliteInferenceParams() *TfliteInferenceParams
- func (x *ProcessSpecification) GetTopkAccuracyEvalParams() *TopkAccuracyEvalParams
- func (*ProcessSpecification) ProtoMessage()
- func (x *ProcessSpecification) ProtoReflect() protoreflect.Message
- func (x *ProcessSpecification) Reset()
- func (x *ProcessSpecification) String() string
- type ProcessSpecification_ImageClassificationParams
- type ProcessSpecification_ImagePreprocessingParams
- type ProcessSpecification_ObjectDetectionAveragePrecisionParams
- type ProcessSpecification_ObjectDetectionParams
- type ProcessSpecification_TfliteInferenceParams
- type ProcessSpecification_TopkAccuracyEvalParams
- type ResizingParams
- func (*ResizingParams) Descriptor() ([]byte, []int)deprecated
- func (x *ResizingParams) GetAspectPreserving() bool
- func (x *ResizingParams) GetTargetSize() *ImageSize
- func (*ResizingParams) ProtoMessage()
- func (x *ResizingParams) ProtoReflect() protoreflect.Message
- func (x *ResizingParams) Reset()
- func (x *ResizingParams) String() string
- type TfliteInferenceMetrics
- func (*TfliteInferenceMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *TfliteInferenceMetrics) GetNumInferences() int32
- func (*TfliteInferenceMetrics) ProtoMessage()
- func (x *TfliteInferenceMetrics) ProtoReflect() protoreflect.Message
- func (x *TfliteInferenceMetrics) Reset()
- func (x *TfliteInferenceMetrics) String() string
- type TfliteInferenceParams
- func (*TfliteInferenceParams) Descriptor() ([]byte, []int)deprecated
- func (x *TfliteInferenceParams) GetDelegate() TfliteInferenceParams_Delegate
- func (x *TfliteInferenceParams) GetInvocationsPerRun() int32
- func (x *TfliteInferenceParams) GetModelFilePath() string
- func (x *TfliteInferenceParams) GetNumThreads() int32
- func (*TfliteInferenceParams) ProtoMessage()
- func (x *TfliteInferenceParams) ProtoReflect() protoreflect.Message
- func (x *TfliteInferenceParams) Reset()
- func (x *TfliteInferenceParams) String() string
- type TfliteInferenceParams_Delegate
- func (TfliteInferenceParams_Delegate) Descriptor() protoreflect.EnumDescriptor
- func (x TfliteInferenceParams_Delegate) Enum() *TfliteInferenceParams_Delegate
- func (TfliteInferenceParams_Delegate) EnumDescriptor() ([]byte, []int)deprecated
- func (x TfliteInferenceParams_Delegate) Number() protoreflect.EnumNumber
- func (x TfliteInferenceParams_Delegate) String() string
- func (TfliteInferenceParams_Delegate) Type() protoreflect.EnumType
- func (x *TfliteInferenceParams_Delegate) UnmarshalJSON(b []byte) errordeprecated
- type TopkAccuracyEvalMetrics
- func (*TopkAccuracyEvalMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *TopkAccuracyEvalMetrics) GetTopkAccuracies() []float32
- func (*TopkAccuracyEvalMetrics) ProtoMessage()
- func (x *TopkAccuracyEvalMetrics) ProtoReflect() protoreflect.Message
- func (x *TopkAccuracyEvalMetrics) Reset()
- func (x *TopkAccuracyEvalMetrics) String() string
- type TopkAccuracyEvalParams
- func (*TopkAccuracyEvalParams) Descriptor() ([]byte, []int)deprecated
- func (x *TopkAccuracyEvalParams) GetK() int32
- func (*TopkAccuracyEvalParams) ProtoMessage()
- func (x *TopkAccuracyEvalParams) ProtoReflect() protoreflect.Message
- func (x *TopkAccuracyEvalParams) Reset()
- func (x *TopkAccuracyEvalParams) String() string
Constants ¶
const ( Default_TfliteInferenceParams_NumThreads = int32(1) Default_TfliteInferenceParams_InvocationsPerRun = int32(1) )
Default values for TfliteInferenceParams fields.
const (
Default_CroppingParams_CroppingFraction = float32(0.875)
)
Default values for CroppingParams fields.
const (
Default_NormalizationParams_Scale = float32(1)
)
Default values for NormalizationParams fields.
const (
Default_ObjectDetectionAveragePrecisionParams_NumRecallPoints = int32(100)
)
Default values for ObjectDetectionAveragePrecisionParams fields.
const (
Default_ObjectDetectionParams_ClassOffset = int32(1)
)
Default values for ObjectDetectionParams fields.
const (
Default_ObjectDetectionResult_ObjectInstance_Score = float32(1)
)
Default values for ObjectDetectionResult_ObjectInstance fields.
Variables ¶
var ( TfliteInferenceParams_Delegate_name = map[int32]string{ 0: "NONE", 1: "NNAPI", 2: "GPU", 3: "HEXAGON", 4: "XNNPACK", } TfliteInferenceParams_Delegate_value = map[string]int32{ "NONE": 0, "NNAPI": 1, "GPU": 2, "HEXAGON": 3, "XNNPACK": 4, } )
Enum value maps for TfliteInferenceParams_Delegate.
var File_tensorflow_lite_tools_evaluation_proto_evaluation_config_proto protoreflect.FileDescriptor
var File_tensorflow_lite_tools_evaluation_proto_evaluation_stages_proto protoreflect.FileDescriptor
var File_tensorflow_lite_tools_evaluation_proto_preprocessing_steps_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AccuracyMetrics ¶
type AccuracyMetrics struct { // Maximum value observed for any Run. MaxValue *float32 `protobuf:"fixed32,1,opt,name=max_value,json=maxValue" json:"max_value,omitempty"` // Minimum value observed for any Run. MinValue *float32 `protobuf:"fixed32,2,opt,name=min_value,json=minValue" json:"min_value,omitempty"` // Average value across all Runs. AvgValue *float64 `protobuf:"fixed64,3,opt,name=avg_value,json=avgValue" json:"avg_value,omitempty"` // Standard deviation across all Runs. StdDeviation *float32 `protobuf:"fixed32,4,opt,name=std_deviation,json=stdDeviation" json:"std_deviation,omitempty"` // contains filtered or unexported fields }
Statistics for an accuracy value over multiple runs of evaluation.
Next ID: 5
func (*AccuracyMetrics) Descriptor
deprecated
func (*AccuracyMetrics) Descriptor() ([]byte, []int)
Deprecated: Use AccuracyMetrics.ProtoReflect.Descriptor instead.
func (*AccuracyMetrics) GetAvgValue ¶
func (x *AccuracyMetrics) GetAvgValue() float64
func (*AccuracyMetrics) GetMaxValue ¶
func (x *AccuracyMetrics) GetMaxValue() float32
func (*AccuracyMetrics) GetMinValue ¶
func (x *AccuracyMetrics) GetMinValue() float32
func (*AccuracyMetrics) GetStdDeviation ¶
func (x *AccuracyMetrics) GetStdDeviation() float32
func (*AccuracyMetrics) ProtoMessage ¶
func (*AccuracyMetrics) ProtoMessage()
func (*AccuracyMetrics) ProtoReflect ¶
func (x *AccuracyMetrics) ProtoReflect() protoreflect.Message
func (*AccuracyMetrics) Reset ¶
func (x *AccuracyMetrics) Reset()
func (*AccuracyMetrics) String ¶
func (x *AccuracyMetrics) String() string
type CroppingParams ¶
type CroppingParams struct { // Types that are assignable to Params: // // *CroppingParams_CroppingFraction // *CroppingParams_TargetSize Params isCroppingParams_Params `protobuf_oneof:"params"` // Crops to a square image. SquareCropping *bool `protobuf:"varint,3,opt,name=square_cropping,json=squareCropping" json:"square_cropping,omitempty"` // contains filtered or unexported fields }
Defines parameters for central-cropping.
Next ID: 4
func (*CroppingParams) Descriptor
deprecated
func (*CroppingParams) Descriptor() ([]byte, []int)
Deprecated: Use CroppingParams.ProtoReflect.Descriptor instead.
func (*CroppingParams) GetCroppingFraction ¶
func (x *CroppingParams) GetCroppingFraction() float32
func (*CroppingParams) GetParams ¶
func (m *CroppingParams) GetParams() isCroppingParams_Params
func (*CroppingParams) GetSquareCropping ¶
func (x *CroppingParams) GetSquareCropping() bool
func (*CroppingParams) GetTargetSize ¶
func (x *CroppingParams) GetTargetSize() *ImageSize
func (*CroppingParams) ProtoMessage ¶
func (*CroppingParams) ProtoMessage()
func (*CroppingParams) ProtoReflect ¶
func (x *CroppingParams) ProtoReflect() protoreflect.Message
func (*CroppingParams) Reset ¶
func (x *CroppingParams) Reset()
func (*CroppingParams) String ¶
func (x *CroppingParams) String() string
type CroppingParams_CroppingFraction ¶
type CroppingParams_CroppingFraction struct { // Fraction for central-cropping. // A central cropping-fraction of 0.875 is considered best for Inception // models, hence the default value. See: // https://github.com/tensorflow/tpu/blob/master/models/experimental/inception/inception_preprocessing.py#L296 // Set to 0 to disable cropping. CroppingFraction float32 `protobuf:"fixed32,1,opt,name=cropping_fraction,json=croppingFraction,oneof,def=0.875"` }
type CroppingParams_TargetSize ¶
type CroppingParams_TargetSize struct { // The target size after cropping. TargetSize *ImageSize `protobuf:"bytes,2,opt,name=target_size,json=targetSize,oneof"` }
type EvaluationStageConfig ¶
type EvaluationStageConfig struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Specification defining what this stage does, and any required parameters. Specification *ProcessSpecification `protobuf:"bytes,2,opt,name=specification" json:"specification,omitempty"` // contains filtered or unexported fields }
Contains parameters that define how an EvaluationStage will be executed. This would typically be validated only once during initialization, so should not contain any variables that change with each run.
Next ID: 3
func (*EvaluationStageConfig) Descriptor
deprecated
func (*EvaluationStageConfig) Descriptor() ([]byte, []int)
Deprecated: Use EvaluationStageConfig.ProtoReflect.Descriptor instead.
func (*EvaluationStageConfig) GetName ¶
func (x *EvaluationStageConfig) GetName() string
func (*EvaluationStageConfig) GetSpecification ¶
func (x *EvaluationStageConfig) GetSpecification() *ProcessSpecification
func (*EvaluationStageConfig) ProtoMessage ¶
func (*EvaluationStageConfig) ProtoMessage()
func (*EvaluationStageConfig) ProtoReflect ¶
func (x *EvaluationStageConfig) ProtoReflect() protoreflect.Message
func (*EvaluationStageConfig) Reset ¶
func (x *EvaluationStageConfig) Reset()
func (*EvaluationStageConfig) String ¶
func (x *EvaluationStageConfig) String() string
type EvaluationStageMetrics ¶
type EvaluationStageMetrics struct { // Total number of times the EvaluationStage is run. NumRuns *int32 `protobuf:"varint,1,opt,name=num_runs,json=numRuns" json:"num_runs,omitempty"` // Process-specific numbers such as latencies, accuracy, etc. ProcessMetrics *ProcessMetrics `protobuf:"bytes,2,opt,name=process_metrics,json=processMetrics" json:"process_metrics,omitempty"` // contains filtered or unexported fields }
Metrics returned from EvaluationStage.LatestMetrics() need not have all fields set.
func (*EvaluationStageMetrics) Descriptor
deprecated
func (*EvaluationStageMetrics) Descriptor() ([]byte, []int)
Deprecated: Use EvaluationStageMetrics.ProtoReflect.Descriptor instead.
func (*EvaluationStageMetrics) GetNumRuns ¶
func (x *EvaluationStageMetrics) GetNumRuns() int32
func (*EvaluationStageMetrics) GetProcessMetrics ¶
func (x *EvaluationStageMetrics) GetProcessMetrics() *ProcessMetrics
func (*EvaluationStageMetrics) ProtoMessage ¶
func (*EvaluationStageMetrics) ProtoMessage()
func (*EvaluationStageMetrics) ProtoReflect ¶
func (x *EvaluationStageMetrics) ProtoReflect() protoreflect.Message
func (*EvaluationStageMetrics) Reset ¶
func (x *EvaluationStageMetrics) Reset()
func (*EvaluationStageMetrics) String ¶
func (x *EvaluationStageMetrics) String() string
type ImageClassificationMetrics ¶
type ImageClassificationMetrics struct { PreProcessingLatency *LatencyMetrics `protobuf:"bytes,1,opt,name=pre_processing_latency,json=preProcessingLatency" json:"pre_processing_latency,omitempty"` InferenceLatency *LatencyMetrics `protobuf:"bytes,2,opt,name=inference_latency,json=inferenceLatency" json:"inference_latency,omitempty"` InferenceMetrics *TfliteInferenceMetrics `protobuf:"bytes,3,opt,name=inference_metrics,json=inferenceMetrics" json:"inference_metrics,omitempty"` // Not set if topk_accuracy_eval_params was not populated in // ImageClassificationParams. TopkAccuracyMetrics *TopkAccuracyEvalMetrics `protobuf:"bytes,4,opt,name=topk_accuracy_metrics,json=topkAccuracyMetrics" json:"topk_accuracy_metrics,omitempty"` // contains filtered or unexported fields }
Metrics from evaluation of the image classification task.
Next ID: 5
func (*ImageClassificationMetrics) Descriptor
deprecated
func (*ImageClassificationMetrics) Descriptor() ([]byte, []int)
Deprecated: Use ImageClassificationMetrics.ProtoReflect.Descriptor instead.
func (*ImageClassificationMetrics) GetInferenceLatency ¶
func (x *ImageClassificationMetrics) GetInferenceLatency() *LatencyMetrics
func (*ImageClassificationMetrics) GetInferenceMetrics ¶
func (x *ImageClassificationMetrics) GetInferenceMetrics() *TfliteInferenceMetrics
func (*ImageClassificationMetrics) GetPreProcessingLatency ¶
func (x *ImageClassificationMetrics) GetPreProcessingLatency() *LatencyMetrics
func (*ImageClassificationMetrics) GetTopkAccuracyMetrics ¶
func (x *ImageClassificationMetrics) GetTopkAccuracyMetrics() *TopkAccuracyEvalMetrics
func (*ImageClassificationMetrics) ProtoMessage ¶
func (*ImageClassificationMetrics) ProtoMessage()
func (*ImageClassificationMetrics) ProtoReflect ¶
func (x *ImageClassificationMetrics) ProtoReflect() protoreflect.Message
func (*ImageClassificationMetrics) Reset ¶
func (x *ImageClassificationMetrics) Reset()
func (*ImageClassificationMetrics) String ¶
func (x *ImageClassificationMetrics) String() string
type ImageClassificationParams ¶
type ImageClassificationParams struct { // Required. // TfLite model should have 1 input & 1 output tensor. // Input shape: {1, image_height, image_width, 3} // Output shape: {1, num_total_labels} InferenceParams *TfliteInferenceParams `protobuf:"bytes,1,opt,name=inference_params,json=inferenceParams" json:"inference_params,omitempty"` // Optional. // If not set, accuracy evaluation is not performed. TopkAccuracyEvalParams *TopkAccuracyEvalParams `protobuf:"bytes,2,opt,name=topk_accuracy_eval_params,json=topkAccuracyEvalParams" json:"topk_accuracy_eval_params,omitempty"` // contains filtered or unexported fields }
Parameters that define how the Image Classification task is evaluated end-to-end.
Next ID: 3
func (*ImageClassificationParams) Descriptor
deprecated
func (*ImageClassificationParams) Descriptor() ([]byte, []int)
Deprecated: Use ImageClassificationParams.ProtoReflect.Descriptor instead.
func (*ImageClassificationParams) GetInferenceParams ¶
func (x *ImageClassificationParams) GetInferenceParams() *TfliteInferenceParams
func (*ImageClassificationParams) GetTopkAccuracyEvalParams ¶
func (x *ImageClassificationParams) GetTopkAccuracyEvalParams() *TopkAccuracyEvalParams
func (*ImageClassificationParams) ProtoMessage ¶
func (*ImageClassificationParams) ProtoMessage()
func (*ImageClassificationParams) ProtoReflect ¶
func (x *ImageClassificationParams) ProtoReflect() protoreflect.Message
func (*ImageClassificationParams) Reset ¶
func (x *ImageClassificationParams) Reset()
func (*ImageClassificationParams) String ¶
func (x *ImageClassificationParams) String() string
type ImagePreprocessingParams ¶
type ImagePreprocessingParams struct { // Required. Steps []*ImagePreprocessingStepParams `protobuf:"bytes,1,rep,name=steps" json:"steps,omitempty"` // Same as tflite::TfLiteType. OutputType *int32 `protobuf:"varint,2,req,name=output_type,json=outputType" json:"output_type,omitempty"` // contains filtered or unexported fields }
Parameters that define how images are preprocessed.
Next ID: 3
func (*ImagePreprocessingParams) Descriptor
deprecated
func (*ImagePreprocessingParams) Descriptor() ([]byte, []int)
Deprecated: Use ImagePreprocessingParams.ProtoReflect.Descriptor instead.
func (*ImagePreprocessingParams) GetOutputType ¶
func (x *ImagePreprocessingParams) GetOutputType() int32
func (*ImagePreprocessingParams) GetSteps ¶
func (x *ImagePreprocessingParams) GetSteps() []*ImagePreprocessingStepParams
func (*ImagePreprocessingParams) ProtoMessage ¶
func (*ImagePreprocessingParams) ProtoMessage()
func (*ImagePreprocessingParams) ProtoReflect ¶
func (x *ImagePreprocessingParams) ProtoReflect() protoreflect.Message
func (*ImagePreprocessingParams) Reset ¶
func (x *ImagePreprocessingParams) Reset()
func (*ImagePreprocessingParams) String ¶
func (x *ImagePreprocessingParams) String() string
type ImagePreprocessingStepParams ¶
type ImagePreprocessingStepParams struct { // Types that are assignable to Params: // // *ImagePreprocessingStepParams_CroppingParams // *ImagePreprocessingStepParams_ResizingParams // *ImagePreprocessingStepParams_PaddingParams // *ImagePreprocessingStepParams_NormalizationParams Params isImagePreprocessingStepParams_Params `protobuf_oneof:"params"` // contains filtered or unexported fields }
Defines the preprocesing steps available.
Next ID: 5
func (*ImagePreprocessingStepParams) Descriptor
deprecated
func (*ImagePreprocessingStepParams) Descriptor() ([]byte, []int)
Deprecated: Use ImagePreprocessingStepParams.ProtoReflect.Descriptor instead.
func (*ImagePreprocessingStepParams) GetCroppingParams ¶
func (x *ImagePreprocessingStepParams) GetCroppingParams() *CroppingParams
func (*ImagePreprocessingStepParams) GetNormalizationParams ¶
func (x *ImagePreprocessingStepParams) GetNormalizationParams() *NormalizationParams
func (*ImagePreprocessingStepParams) GetPaddingParams ¶
func (x *ImagePreprocessingStepParams) GetPaddingParams() *PaddingParams
func (*ImagePreprocessingStepParams) GetParams ¶
func (m *ImagePreprocessingStepParams) GetParams() isImagePreprocessingStepParams_Params
func (*ImagePreprocessingStepParams) GetResizingParams ¶
func (x *ImagePreprocessingStepParams) GetResizingParams() *ResizingParams
func (*ImagePreprocessingStepParams) ProtoMessage ¶
func (*ImagePreprocessingStepParams) ProtoMessage()
func (*ImagePreprocessingStepParams) ProtoReflect ¶
func (x *ImagePreprocessingStepParams) ProtoReflect() protoreflect.Message
func (*ImagePreprocessingStepParams) Reset ¶
func (x *ImagePreprocessingStepParams) Reset()
func (*ImagePreprocessingStepParams) String ¶
func (x *ImagePreprocessingStepParams) String() string
type ImagePreprocessingStepParams_CroppingParams ¶
type ImagePreprocessingStepParams_CroppingParams struct {
CroppingParams *CroppingParams `protobuf:"bytes,1,opt,name=cropping_params,json=croppingParams,oneof"`
}
type ImagePreprocessingStepParams_NormalizationParams ¶
type ImagePreprocessingStepParams_NormalizationParams struct {
NormalizationParams *NormalizationParams `protobuf:"bytes,4,opt,name=normalization_params,json=normalizationParams,oneof"`
}
type ImagePreprocessingStepParams_PaddingParams ¶
type ImagePreprocessingStepParams_PaddingParams struct {
PaddingParams *PaddingParams `protobuf:"bytes,3,opt,name=padding_params,json=paddingParams,oneof"`
}
type ImagePreprocessingStepParams_ResizingParams ¶
type ImagePreprocessingStepParams_ResizingParams struct {
ResizingParams *ResizingParams `protobuf:"bytes,2,opt,name=resizing_params,json=resizingParams,oneof"`
}
type ImageSize ¶
type ImageSize struct { // Width of the image. Width *uint32 `protobuf:"varint,1,req,name=width" json:"width,omitempty"` // Height of the image. Height *uint32 `protobuf:"varint,2,req,name=height" json:"height,omitempty"` // contains filtered or unexported fields }
Defines the size of an image.
Next ID: 3
func (*ImageSize) Descriptor
deprecated
func (*ImageSize) ProtoMessage ¶
func (*ImageSize) ProtoMessage()
func (*ImageSize) ProtoReflect ¶
func (x *ImageSize) ProtoReflect() protoreflect.Message
type InferenceProfilerMetrics ¶
type InferenceProfilerMetrics struct { // Latency metrics from Single-thread CPU inference. ReferenceLatency *LatencyMetrics `protobuf:"bytes,1,opt,name=reference_latency,json=referenceLatency" json:"reference_latency,omitempty"` // Latency from TfliteInferenceParams under test. TestLatency *LatencyMetrics `protobuf:"bytes,2,opt,name=test_latency,json=testLatency" json:"test_latency,omitempty"` // For reference & test output vectors {R, T}, the error is computed as: // Mean([Abs(R[i] - T[i]) for i in num_elements]) // output_errors[v] : statistics for the error value of the vth output vector // // across all Runs. OutputErrors []*AccuracyMetrics `protobuf:"bytes,3,rep,name=output_errors,json=outputErrors" json:"output_errors,omitempty"` // contains filtered or unexported fields }
Metrics computed from comparing TFLite execution in two settings: 1. User-defined TfliteInferenceParams (The 'test' setting) 2. Default TfliteInferenceParams (The 'reference' setting)
Next ID: 4
func (*InferenceProfilerMetrics) Descriptor
deprecated
func (*InferenceProfilerMetrics) Descriptor() ([]byte, []int)
Deprecated: Use InferenceProfilerMetrics.ProtoReflect.Descriptor instead.
func (*InferenceProfilerMetrics) GetOutputErrors ¶
func (x *InferenceProfilerMetrics) GetOutputErrors() []*AccuracyMetrics
func (*InferenceProfilerMetrics) GetReferenceLatency ¶
func (x *InferenceProfilerMetrics) GetReferenceLatency() *LatencyMetrics
func (*InferenceProfilerMetrics) GetTestLatency ¶
func (x *InferenceProfilerMetrics) GetTestLatency() *LatencyMetrics
func (*InferenceProfilerMetrics) ProtoMessage ¶
func (*InferenceProfilerMetrics) ProtoMessage()
func (*InferenceProfilerMetrics) ProtoReflect ¶
func (x *InferenceProfilerMetrics) ProtoReflect() protoreflect.Message
func (*InferenceProfilerMetrics) Reset ¶
func (x *InferenceProfilerMetrics) Reset()
func (*InferenceProfilerMetrics) String ¶
func (x *InferenceProfilerMetrics) String() string
type LatencyMetrics ¶
type LatencyMetrics struct { // Latency for the last Run. LastUs *int64 `protobuf:"varint,1,opt,name=last_us,json=lastUs" json:"last_us,omitempty"` // Maximum latency observed for any Run. MaxUs *int64 `protobuf:"varint,2,opt,name=max_us,json=maxUs" json:"max_us,omitempty"` // Minimum latency observed for any Run. MinUs *int64 `protobuf:"varint,3,opt,name=min_us,json=minUs" json:"min_us,omitempty"` // Sum of all Run latencies. SumUs *int64 `protobuf:"varint,4,opt,name=sum_us,json=sumUs" json:"sum_us,omitempty"` // Average latency across all Runs. AvgUs *float64 `protobuf:"fixed64,5,opt,name=avg_us,json=avgUs" json:"avg_us,omitempty"` // Standard deviation for latency across all Runs. StdDeviationUs *int64 `protobuf:"varint,6,opt,name=std_deviation_us,json=stdDeviationUs" json:"std_deviation_us,omitempty"` // contains filtered or unexported fields }
Latency numbers in microseconds, based on all EvaluationStage::Run() calls so far.
Next ID: 7
func (*LatencyMetrics) Descriptor
deprecated
func (*LatencyMetrics) Descriptor() ([]byte, []int)
Deprecated: Use LatencyMetrics.ProtoReflect.Descriptor instead.
func (*LatencyMetrics) GetAvgUs ¶
func (x *LatencyMetrics) GetAvgUs() float64
func (*LatencyMetrics) GetLastUs ¶
func (x *LatencyMetrics) GetLastUs() int64
func (*LatencyMetrics) GetMaxUs ¶
func (x *LatencyMetrics) GetMaxUs() int64
func (*LatencyMetrics) GetMinUs ¶
func (x *LatencyMetrics) GetMinUs() int64
func (*LatencyMetrics) GetStdDeviationUs ¶
func (x *LatencyMetrics) GetStdDeviationUs() int64
func (*LatencyMetrics) GetSumUs ¶
func (x *LatencyMetrics) GetSumUs() int64
func (*LatencyMetrics) ProtoMessage ¶
func (*LatencyMetrics) ProtoMessage()
func (*LatencyMetrics) ProtoReflect ¶
func (x *LatencyMetrics) ProtoReflect() protoreflect.Message
func (*LatencyMetrics) Reset ¶
func (x *LatencyMetrics) Reset()
func (*LatencyMetrics) String ¶
func (x *LatencyMetrics) String() string
type NormalizationParams ¶
type NormalizationParams struct { // Types that are assignable to Mean: // // *NormalizationParams_ChannelwiseMean // *NormalizationParams_Means Mean isNormalizationParams_Mean `protobuf_oneof:"mean"` // Scale value in the normalization. Scale *float32 `protobuf:"fixed32,3,req,name=scale,def=1" json:"scale,omitempty"` // contains filtered or unexported fields }
Defines parameters for normalization. The normalization formula is: output = (input - mean) * scale.
Next ID: 4
func (*NormalizationParams) Descriptor
deprecated
func (*NormalizationParams) Descriptor() ([]byte, []int)
Deprecated: Use NormalizationParams.ProtoReflect.Descriptor instead.
func (*NormalizationParams) GetChannelwiseMean ¶
func (x *NormalizationParams) GetChannelwiseMean() float32
func (*NormalizationParams) GetMean ¶
func (m *NormalizationParams) GetMean() isNormalizationParams_Mean
func (*NormalizationParams) GetMeans ¶
func (x *NormalizationParams) GetMeans() *NormalizationParams_PerChannelMeanValues
func (*NormalizationParams) GetScale ¶
func (x *NormalizationParams) GetScale() float32
func (*NormalizationParams) ProtoMessage ¶
func (*NormalizationParams) ProtoMessage()
func (*NormalizationParams) ProtoReflect ¶
func (x *NormalizationParams) ProtoReflect() protoreflect.Message
func (*NormalizationParams) Reset ¶
func (x *NormalizationParams) Reset()
func (*NormalizationParams) String ¶
func (x *NormalizationParams) String() string
type NormalizationParams_ChannelwiseMean ¶
type NormalizationParams_ChannelwiseMean struct { // Channelwise mean value. ChannelwiseMean float32 `protobuf:"fixed32,1,opt,name=channelwise_mean,json=channelwiseMean,oneof"` }
type NormalizationParams_Means ¶
type NormalizationParams_Means struct { // Per-Channel mean values. Means *NormalizationParams_PerChannelMeanValues `protobuf:"bytes,2,opt,name=means,oneof"` }
type NormalizationParams_PerChannelMeanValues ¶
type NormalizationParams_PerChannelMeanValues struct { // The mean values of r channel. RMean *float32 `protobuf:"fixed32,1,req,name=r_mean,json=rMean" json:"r_mean,omitempty"` // The mean values of g channel. GMean *float32 `protobuf:"fixed32,2,req,name=g_mean,json=gMean" json:"g_mean,omitempty"` // The mean values of b channel. BMean *float32 `protobuf:"fixed32,3,req,name=b_mean,json=bMean" json:"b_mean,omitempty"` // contains filtered or unexported fields }
func (*NormalizationParams_PerChannelMeanValues) Descriptor
deprecated
func (*NormalizationParams_PerChannelMeanValues) Descriptor() ([]byte, []int)
Deprecated: Use NormalizationParams_PerChannelMeanValues.ProtoReflect.Descriptor instead.
func (*NormalizationParams_PerChannelMeanValues) GetBMean ¶
func (x *NormalizationParams_PerChannelMeanValues) GetBMean() float32
func (*NormalizationParams_PerChannelMeanValues) GetGMean ¶
func (x *NormalizationParams_PerChannelMeanValues) GetGMean() float32
func (*NormalizationParams_PerChannelMeanValues) GetRMean ¶
func (x *NormalizationParams_PerChannelMeanValues) GetRMean() float32
func (*NormalizationParams_PerChannelMeanValues) ProtoMessage ¶
func (*NormalizationParams_PerChannelMeanValues) ProtoMessage()
func (*NormalizationParams_PerChannelMeanValues) ProtoReflect ¶
func (x *NormalizationParams_PerChannelMeanValues) ProtoReflect() protoreflect.Message
func (*NormalizationParams_PerChannelMeanValues) Reset ¶
func (x *NormalizationParams_PerChannelMeanValues) Reset()
func (*NormalizationParams_PerChannelMeanValues) String ¶
func (x *NormalizationParams_PerChannelMeanValues) String() string
type ObjectDetectionAveragePrecisionMetrics ¶
type ObjectDetectionAveragePrecisionMetrics struct { // One entry for each in // ObjectDetectionAveragePrecisionParams::iou_thresholds, averaged over all // classes. IndividualAveragePrecisions []*ObjectDetectionAveragePrecisionMetrics_AveragePrecision `` /* 137-byte string literal not displayed */ // Average of Average Precision across all IoU thresholds. OverallMeanAveragePrecision *float32 `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
Average Precision metrics from Object Detection task.
Next ID: 3
func (*ObjectDetectionAveragePrecisionMetrics) Descriptor
deprecated
func (*ObjectDetectionAveragePrecisionMetrics) Descriptor() ([]byte, []int)
Deprecated: Use ObjectDetectionAveragePrecisionMetrics.ProtoReflect.Descriptor instead.
func (*ObjectDetectionAveragePrecisionMetrics) GetIndividualAveragePrecisions ¶
func (x *ObjectDetectionAveragePrecisionMetrics) GetIndividualAveragePrecisions() []*ObjectDetectionAveragePrecisionMetrics_AveragePrecision
func (*ObjectDetectionAveragePrecisionMetrics) GetOverallMeanAveragePrecision ¶
func (x *ObjectDetectionAveragePrecisionMetrics) GetOverallMeanAveragePrecision() float32
func (*ObjectDetectionAveragePrecisionMetrics) ProtoMessage ¶
func (*ObjectDetectionAveragePrecisionMetrics) ProtoMessage()
func (*ObjectDetectionAveragePrecisionMetrics) ProtoReflect ¶
func (x *ObjectDetectionAveragePrecisionMetrics) ProtoReflect() protoreflect.Message
func (*ObjectDetectionAveragePrecisionMetrics) Reset ¶
func (x *ObjectDetectionAveragePrecisionMetrics) Reset()
func (*ObjectDetectionAveragePrecisionMetrics) String ¶
func (x *ObjectDetectionAveragePrecisionMetrics) String() string
type ObjectDetectionAveragePrecisionMetrics_AveragePrecision ¶
type ObjectDetectionAveragePrecisionMetrics_AveragePrecision struct { IouThreshold *float32 `protobuf:"fixed32,1,opt,name=iou_threshold,json=iouThreshold" json:"iou_threshold,omitempty"` AveragePrecision *float32 `protobuf:"fixed32,2,opt,name=average_precision,json=averagePrecision" json:"average_precision,omitempty"` // contains filtered or unexported fields }
Average Precision value for a particular IoU threshold. Next ID: 3
func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) Descriptor
deprecated
func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) Descriptor() ([]byte, []int)
Deprecated: Use ObjectDetectionAveragePrecisionMetrics_AveragePrecision.ProtoReflect.Descriptor instead.
func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) GetAveragePrecision ¶
func (x *ObjectDetectionAveragePrecisionMetrics_AveragePrecision) GetAveragePrecision() float32
func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) GetIouThreshold ¶
func (x *ObjectDetectionAveragePrecisionMetrics_AveragePrecision) GetIouThreshold() float32
func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) ProtoMessage ¶
func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) ProtoMessage()
func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) ProtoReflect ¶
func (x *ObjectDetectionAveragePrecisionMetrics_AveragePrecision) ProtoReflect() protoreflect.Message
func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) Reset ¶
func (x *ObjectDetectionAveragePrecisionMetrics_AveragePrecision) Reset()
func (*ObjectDetectionAveragePrecisionMetrics_AveragePrecision) String ¶
func (x *ObjectDetectionAveragePrecisionMetrics_AveragePrecision) String() string
type ObjectDetectionAveragePrecisionParams ¶
type ObjectDetectionAveragePrecisionParams struct { // Total object classes. The AP value returned for each IoU threshold is an // average over all classes encountered in predicted/ground truth sets. NumClasses *int32 `protobuf:"varint,1,opt,name=num_classes,json=numClasses" json:"num_classes,omitempty"` // A predicted box matches a ground truth box if and only if // IoU between these two are larger than an IoU threshold. // AP is computed for all relevant {IoU threshold, class} combinations and // averaged to get mAP. // If left empty, evaluation is done for all IoU threshods in the range // 0.5:0.05:0.95 (min:increment:max). IouThresholds []float32 `protobuf:"fixed32,2,rep,name=iou_thresholds,json=iouThresholds" json:"iou_thresholds,omitempty"` // AP is computed as the average of maximum precision at (1 // + num_recall_points) recall levels. E.g., if num_recall_points is 10, // recall levels are 0., 0.1, 0.2, ..., 0.9, 1.0. // Default: 100 NumRecallPoints *int32 `protobuf:"varint,3,opt,name=num_recall_points,json=numRecallPoints,def=100" json:"num_recall_points,omitempty"` // contains filtered or unexported fields }
Parameters that define how Average Precision is computed for Object Detection task. Refer for details: http://cocodataset.org/#detection-eval
Next ID: 4
func (*ObjectDetectionAveragePrecisionParams) Descriptor
deprecated
func (*ObjectDetectionAveragePrecisionParams) Descriptor() ([]byte, []int)
Deprecated: Use ObjectDetectionAveragePrecisionParams.ProtoReflect.Descriptor instead.
func (*ObjectDetectionAveragePrecisionParams) GetIouThresholds ¶
func (x *ObjectDetectionAveragePrecisionParams) GetIouThresholds() []float32
func (*ObjectDetectionAveragePrecisionParams) GetNumClasses ¶
func (x *ObjectDetectionAveragePrecisionParams) GetNumClasses() int32
func (*ObjectDetectionAveragePrecisionParams) GetNumRecallPoints ¶
func (x *ObjectDetectionAveragePrecisionParams) GetNumRecallPoints() int32
func (*ObjectDetectionAveragePrecisionParams) ProtoMessage ¶
func (*ObjectDetectionAveragePrecisionParams) ProtoMessage()
func (*ObjectDetectionAveragePrecisionParams) ProtoReflect ¶
func (x *ObjectDetectionAveragePrecisionParams) ProtoReflect() protoreflect.Message
func (*ObjectDetectionAveragePrecisionParams) Reset ¶
func (x *ObjectDetectionAveragePrecisionParams) Reset()
func (*ObjectDetectionAveragePrecisionParams) String ¶
func (x *ObjectDetectionAveragePrecisionParams) String() string
type ObjectDetectionGroundTruth ¶
type ObjectDetectionGroundTruth struct { DetectionResults []*ObjectDetectionResult `protobuf:"bytes,1,rep,name=detection_results,json=detectionResults" json:"detection_results,omitempty"` // contains filtered or unexported fields }
Proto containing ground-truth ObjectsSets for all images in a COCO validation set.
Next ID: 2
func (*ObjectDetectionGroundTruth) Descriptor
deprecated
func (*ObjectDetectionGroundTruth) Descriptor() ([]byte, []int)
Deprecated: Use ObjectDetectionGroundTruth.ProtoReflect.Descriptor instead.
func (*ObjectDetectionGroundTruth) GetDetectionResults ¶
func (x *ObjectDetectionGroundTruth) GetDetectionResults() []*ObjectDetectionResult
func (*ObjectDetectionGroundTruth) ProtoMessage ¶
func (*ObjectDetectionGroundTruth) ProtoMessage()
func (*ObjectDetectionGroundTruth) ProtoReflect ¶
func (x *ObjectDetectionGroundTruth) ProtoReflect() protoreflect.Message
func (*ObjectDetectionGroundTruth) Reset ¶
func (x *ObjectDetectionGroundTruth) Reset()
func (*ObjectDetectionGroundTruth) String ¶
func (x *ObjectDetectionGroundTruth) String() string
type ObjectDetectionMetrics ¶
type ObjectDetectionMetrics struct { PreProcessingLatency *LatencyMetrics `protobuf:"bytes,1,opt,name=pre_processing_latency,json=preProcessingLatency" json:"pre_processing_latency,omitempty"` InferenceLatency *LatencyMetrics `protobuf:"bytes,2,opt,name=inference_latency,json=inferenceLatency" json:"inference_latency,omitempty"` InferenceMetrics *TfliteInferenceMetrics `protobuf:"bytes,3,opt,name=inference_metrics,json=inferenceMetrics" json:"inference_metrics,omitempty"` AveragePrecisionMetrics *ObjectDetectionAveragePrecisionMetrics `protobuf:"bytes,4,opt,name=average_precision_metrics,json=averagePrecisionMetrics" json:"average_precision_metrics,omitempty"` // contains filtered or unexported fields }
Metrics from evaluation of the object detection task.
Next ID: 5
func (*ObjectDetectionMetrics) Descriptor
deprecated
func (*ObjectDetectionMetrics) Descriptor() ([]byte, []int)
Deprecated: Use ObjectDetectionMetrics.ProtoReflect.Descriptor instead.
func (*ObjectDetectionMetrics) GetAveragePrecisionMetrics ¶
func (x *ObjectDetectionMetrics) GetAveragePrecisionMetrics() *ObjectDetectionAveragePrecisionMetrics
func (*ObjectDetectionMetrics) GetInferenceLatency ¶
func (x *ObjectDetectionMetrics) GetInferenceLatency() *LatencyMetrics
func (*ObjectDetectionMetrics) GetInferenceMetrics ¶
func (x *ObjectDetectionMetrics) GetInferenceMetrics() *TfliteInferenceMetrics
func (*ObjectDetectionMetrics) GetPreProcessingLatency ¶
func (x *ObjectDetectionMetrics) GetPreProcessingLatency() *LatencyMetrics
func (*ObjectDetectionMetrics) ProtoMessage ¶
func (*ObjectDetectionMetrics) ProtoMessage()
func (*ObjectDetectionMetrics) ProtoReflect ¶
func (x *ObjectDetectionMetrics) ProtoReflect() protoreflect.Message
func (*ObjectDetectionMetrics) Reset ¶
func (x *ObjectDetectionMetrics) Reset()
func (*ObjectDetectionMetrics) String ¶
func (x *ObjectDetectionMetrics) String() string
type ObjectDetectionParams ¶
type ObjectDetectionParams struct { // Required. // Model's outputs should be same as a TFLite-compatible SSD model. // Refer: // https://www.tensorflow.org/lite/examples/object_detection/overview#output_signature InferenceParams *TfliteInferenceParams `protobuf:"bytes,1,opt,name=inference_params,json=inferenceParams" json:"inference_params,omitempty"` // Optional. Used to match ground-truth categories with model output. // SSD Mobilenet V1 Model trained on COCO assumes class 0 is background class // in the label file and class labels start from 1 to number_of_classes+1. // Therefore, default value is set as 1. ClassOffset *int32 `protobuf:"varint,2,opt,name=class_offset,json=classOffset,def=1" json:"class_offset,omitempty"` ApParams *ObjectDetectionAveragePrecisionParams `protobuf:"bytes,3,opt,name=ap_params,json=apParams" json:"ap_params,omitempty"` // contains filtered or unexported fields }
Parameters that define how the Object Detection task is evaluated end-to-end.
Next ID: 4
func (*ObjectDetectionParams) Descriptor
deprecated
func (*ObjectDetectionParams) Descriptor() ([]byte, []int)
Deprecated: Use ObjectDetectionParams.ProtoReflect.Descriptor instead.
func (*ObjectDetectionParams) GetApParams ¶
func (x *ObjectDetectionParams) GetApParams() *ObjectDetectionAveragePrecisionParams
func (*ObjectDetectionParams) GetClassOffset ¶
func (x *ObjectDetectionParams) GetClassOffset() int32
func (*ObjectDetectionParams) GetInferenceParams ¶
func (x *ObjectDetectionParams) GetInferenceParams() *TfliteInferenceParams
func (*ObjectDetectionParams) ProtoMessage ¶
func (*ObjectDetectionParams) ProtoMessage()
func (*ObjectDetectionParams) ProtoReflect ¶
func (x *ObjectDetectionParams) ProtoReflect() protoreflect.Message
func (*ObjectDetectionParams) Reset ¶
func (x *ObjectDetectionParams) Reset()
func (*ObjectDetectionParams) String ¶
func (x *ObjectDetectionParams) String() string
type ObjectDetectionResult ¶
type ObjectDetectionResult struct { Objects []*ObjectDetectionResult_ObjectInstance `protobuf:"bytes,1,rep,name=objects" json:"objects,omitempty"` // Filename of the image. ImageName *string `protobuf:"bytes,2,opt,name=image_name,json=imageName" json:"image_name,omitempty"` // Unique id for the image. ImageId *int64 `protobuf:"varint,3,opt,name=image_id,json=imageId" json:"image_id,omitempty"` // contains filtered or unexported fields }
Proto containing information about all the objects (predicted or ground-truth) contained in an image.
Next ID: 4
func (*ObjectDetectionResult) Descriptor
deprecated
func (*ObjectDetectionResult) Descriptor() ([]byte, []int)
Deprecated: Use ObjectDetectionResult.ProtoReflect.Descriptor instead.
func (*ObjectDetectionResult) GetImageId ¶
func (x *ObjectDetectionResult) GetImageId() int64
func (*ObjectDetectionResult) GetImageName ¶
func (x *ObjectDetectionResult) GetImageName() string
func (*ObjectDetectionResult) GetObjects ¶
func (x *ObjectDetectionResult) GetObjects() []*ObjectDetectionResult_ObjectInstance
func (*ObjectDetectionResult) ProtoMessage ¶
func (*ObjectDetectionResult) ProtoMessage()
func (*ObjectDetectionResult) ProtoReflect ¶
func (x *ObjectDetectionResult) ProtoReflect() protoreflect.Message
func (*ObjectDetectionResult) Reset ¶
func (x *ObjectDetectionResult) Reset()
func (*ObjectDetectionResult) String ¶
func (x *ObjectDetectionResult) String() string
type ObjectDetectionResult_ObjectInstance ¶
type ObjectDetectionResult_ObjectInstance struct { // Required. ClassId *int32 `protobuf:"varint,1,opt,name=class_id,json=classId" json:"class_id,omitempty"` // Required BoundingBox *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"` // Value in (0, 1.0] denoting confidence in this prediction. // Default value of 1.0 for ground-truth data. Score *float32 `protobuf:"fixed32,3,opt,name=score,def=1" json:"score,omitempty"` // contains filtered or unexported fields }
One instance of an object detected in an image. Next ID: 4
func (*ObjectDetectionResult_ObjectInstance) Descriptor
deprecated
func (*ObjectDetectionResult_ObjectInstance) Descriptor() ([]byte, []int)
Deprecated: Use ObjectDetectionResult_ObjectInstance.ProtoReflect.Descriptor instead.
func (*ObjectDetectionResult_ObjectInstance) GetBoundingBox ¶
func (x *ObjectDetectionResult_ObjectInstance) GetBoundingBox() *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox
func (*ObjectDetectionResult_ObjectInstance) GetClassId ¶
func (x *ObjectDetectionResult_ObjectInstance) GetClassId() int32
func (*ObjectDetectionResult_ObjectInstance) GetScore ¶
func (x *ObjectDetectionResult_ObjectInstance) GetScore() float32
func (*ObjectDetectionResult_ObjectInstance) ProtoMessage ¶
func (*ObjectDetectionResult_ObjectInstance) ProtoMessage()
func (*ObjectDetectionResult_ObjectInstance) ProtoReflect ¶
func (x *ObjectDetectionResult_ObjectInstance) ProtoReflect() protoreflect.Message
func (*ObjectDetectionResult_ObjectInstance) Reset ¶
func (x *ObjectDetectionResult_ObjectInstance) Reset()
func (*ObjectDetectionResult_ObjectInstance) String ¶
func (x *ObjectDetectionResult_ObjectInstance) String() string
type ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox ¶
type ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox struct { // All boundaries defined below are required. // Each boundary value should be normalized with respect to the image // dimensions. This helps evaluate detections independent of image size. // For example, normalized_top = top_boundary / image_height. NormalizedTop *float32 `protobuf:"fixed32,1,opt,name=normalized_top,json=normalizedTop" json:"normalized_top,omitempty"` NormalizedBottom *float32 `protobuf:"fixed32,2,opt,name=normalized_bottom,json=normalizedBottom" json:"normalized_bottom,omitempty"` NormalizedLeft *float32 `protobuf:"fixed32,3,opt,name=normalized_left,json=normalizedLeft" json:"normalized_left,omitempty"` NormalizedRight *float32 `protobuf:"fixed32,4,opt,name=normalized_right,json=normalizedRight" json:"normalized_right,omitempty"` // contains filtered or unexported fields }
Defines the bounding box for a detected object. Next ID: 5
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) Descriptor
deprecated
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) Descriptor() ([]byte, []int)
Deprecated: Use ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox.ProtoReflect.Descriptor instead.
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedBottom ¶
func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedBottom() float32
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedLeft ¶
func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedLeft() float32
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedRight ¶
func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedRight() float32
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedTop ¶
func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) GetNormalizedTop() float32
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) ProtoMessage ¶
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) ProtoMessage()
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) ProtoReflect ¶
func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) ProtoReflect() protoreflect.Message
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) Reset ¶
func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) Reset()
func (*ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) String ¶
func (x *ObjectDetectionResult_ObjectInstance_NormalizedBoundingBox) String() string
type PaddingParams ¶
type PaddingParams struct { // Types that are assignable to Params: // // *PaddingParams_TargetSize // *PaddingParams_SquarePadding Params isPaddingParams_Params `protobuf_oneof:"params"` // Padding value. PaddingValue *int32 `protobuf:"varint,3,req,name=padding_value,json=paddingValue" json:"padding_value,omitempty"` // contains filtered or unexported fields }
Defines parameters for central-padding.
Next ID: 4
func (*PaddingParams) Descriptor
deprecated
func (*PaddingParams) Descriptor() ([]byte, []int)
Deprecated: Use PaddingParams.ProtoReflect.Descriptor instead.
func (*PaddingParams) GetPaddingValue ¶
func (x *PaddingParams) GetPaddingValue() int32
func (*PaddingParams) GetParams ¶
func (m *PaddingParams) GetParams() isPaddingParams_Params
func (*PaddingParams) GetSquarePadding ¶
func (x *PaddingParams) GetSquarePadding() bool
func (*PaddingParams) GetTargetSize ¶
func (x *PaddingParams) GetTargetSize() *ImageSize
func (*PaddingParams) ProtoMessage ¶
func (*PaddingParams) ProtoMessage()
func (*PaddingParams) ProtoReflect ¶
func (x *PaddingParams) ProtoReflect() protoreflect.Message
func (*PaddingParams) Reset ¶
func (x *PaddingParams) Reset()
func (*PaddingParams) String ¶
func (x *PaddingParams) String() string
type PaddingParams_SquarePadding ¶
type PaddingParams_SquarePadding struct { // Pads to a square image. SquarePadding bool `protobuf:"varint,2,opt,name=square_padding,json=squarePadding,oneof"` }
type PaddingParams_TargetSize ¶
type PaddingParams_TargetSize struct { // Size of the image after padding. TargetSize *ImageSize `protobuf:"bytes,1,opt,name=target_size,json=targetSize,oneof"` }
type ProcessMetrics ¶
type ProcessMetrics struct { TotalLatency *LatencyMetrics `protobuf:"bytes,1,opt,name=total_latency,json=totalLatency" json:"total_latency,omitempty"` // Types that are assignable to StageMetrics: // // *ProcessMetrics_TopkAccuracyMetrics // *ProcessMetrics_TfliteInferenceMetrics // *ProcessMetrics_ImageClassificationMetrics // *ProcessMetrics_InferenceProfilerMetrics // *ProcessMetrics_ObjectDetectionAveragePrecisionMetrics // *ProcessMetrics_ObjectDetectionMetrics StageMetrics isProcessMetrics_StageMetrics `protobuf_oneof:"stage_metrics"` // contains filtered or unexported fields }
Contains process-specific metrics, which may differ based on what an EvaluationStage does.
Next ID: 8
func (*ProcessMetrics) Descriptor
deprecated
func (*ProcessMetrics) Descriptor() ([]byte, []int)
Deprecated: Use ProcessMetrics.ProtoReflect.Descriptor instead.
func (*ProcessMetrics) GetImageClassificationMetrics ¶
func (x *ProcessMetrics) GetImageClassificationMetrics() *ImageClassificationMetrics
func (*ProcessMetrics) GetInferenceProfilerMetrics ¶
func (x *ProcessMetrics) GetInferenceProfilerMetrics() *InferenceProfilerMetrics
func (*ProcessMetrics) GetObjectDetectionAveragePrecisionMetrics ¶
func (x *ProcessMetrics) GetObjectDetectionAveragePrecisionMetrics() *ObjectDetectionAveragePrecisionMetrics
func (*ProcessMetrics) GetObjectDetectionMetrics ¶
func (x *ProcessMetrics) GetObjectDetectionMetrics() *ObjectDetectionMetrics
func (*ProcessMetrics) GetStageMetrics ¶
func (m *ProcessMetrics) GetStageMetrics() isProcessMetrics_StageMetrics
func (*ProcessMetrics) GetTfliteInferenceMetrics ¶
func (x *ProcessMetrics) GetTfliteInferenceMetrics() *TfliteInferenceMetrics
func (*ProcessMetrics) GetTopkAccuracyMetrics ¶
func (x *ProcessMetrics) GetTopkAccuracyMetrics() *TopkAccuracyEvalMetrics
func (*ProcessMetrics) GetTotalLatency ¶
func (x *ProcessMetrics) GetTotalLatency() *LatencyMetrics
func (*ProcessMetrics) ProtoMessage ¶
func (*ProcessMetrics) ProtoMessage()
func (*ProcessMetrics) ProtoReflect ¶
func (x *ProcessMetrics) ProtoReflect() protoreflect.Message
func (*ProcessMetrics) Reset ¶
func (x *ProcessMetrics) Reset()
func (*ProcessMetrics) String ¶
func (x *ProcessMetrics) String() string
type ProcessMetrics_ImageClassificationMetrics ¶
type ProcessMetrics_ImageClassificationMetrics struct {
ImageClassificationMetrics *ImageClassificationMetrics `protobuf:"bytes,4,opt,name=image_classification_metrics,json=imageClassificationMetrics,oneof"`
}
type ProcessMetrics_InferenceProfilerMetrics ¶
type ProcessMetrics_InferenceProfilerMetrics struct {
InferenceProfilerMetrics *InferenceProfilerMetrics `protobuf:"bytes,5,opt,name=inference_profiler_metrics,json=inferenceProfilerMetrics,oneof"`
}
type ProcessMetrics_ObjectDetectionAveragePrecisionMetrics ¶
type ProcessMetrics_ObjectDetectionAveragePrecisionMetrics struct {
ObjectDetectionAveragePrecisionMetrics *ObjectDetectionAveragePrecisionMetrics `protobuf:"bytes,6,opt,name=object_detection_average_precision_metrics,json=objectDetectionAveragePrecisionMetrics,oneof"`
}
type ProcessMetrics_ObjectDetectionMetrics ¶
type ProcessMetrics_ObjectDetectionMetrics struct {
ObjectDetectionMetrics *ObjectDetectionMetrics `protobuf:"bytes,7,opt,name=object_detection_metrics,json=objectDetectionMetrics,oneof"`
}
type ProcessMetrics_TfliteInferenceMetrics ¶
type ProcessMetrics_TfliteInferenceMetrics struct {
TfliteInferenceMetrics *TfliteInferenceMetrics `protobuf:"bytes,3,opt,name=tflite_inference_metrics,json=tfliteInferenceMetrics,oneof"`
}
type ProcessMetrics_TopkAccuracyMetrics ¶
type ProcessMetrics_TopkAccuracyMetrics struct {
TopkAccuracyMetrics *TopkAccuracyEvalMetrics `protobuf:"bytes,2,opt,name=topk_accuracy_metrics,json=topkAccuracyMetrics,oneof"`
}
type ProcessSpecification ¶
type ProcessSpecification struct { // Types that are assignable to Params: // // *ProcessSpecification_ImagePreprocessingParams // *ProcessSpecification_TopkAccuracyEvalParams // *ProcessSpecification_TfliteInferenceParams // *ProcessSpecification_ImageClassificationParams // *ProcessSpecification_ObjectDetectionAveragePrecisionParams // *ProcessSpecification_ObjectDetectionParams Params isProcessSpecification_Params `protobuf_oneof:"params"` // contains filtered or unexported fields }
Defines the functionality executed by an EvaluationStage.
Next ID: 7
func (*ProcessSpecification) Descriptor
deprecated
func (*ProcessSpecification) Descriptor() ([]byte, []int)
Deprecated: Use ProcessSpecification.ProtoReflect.Descriptor instead.
func (*ProcessSpecification) GetImageClassificationParams ¶
func (x *ProcessSpecification) GetImageClassificationParams() *ImageClassificationParams
func (*ProcessSpecification) GetImagePreprocessingParams ¶
func (x *ProcessSpecification) GetImagePreprocessingParams() *ImagePreprocessingParams
func (*ProcessSpecification) GetObjectDetectionAveragePrecisionParams ¶
func (x *ProcessSpecification) GetObjectDetectionAveragePrecisionParams() *ObjectDetectionAveragePrecisionParams
func (*ProcessSpecification) GetObjectDetectionParams ¶
func (x *ProcessSpecification) GetObjectDetectionParams() *ObjectDetectionParams
func (*ProcessSpecification) GetParams ¶
func (m *ProcessSpecification) GetParams() isProcessSpecification_Params
func (*ProcessSpecification) GetTfliteInferenceParams ¶
func (x *ProcessSpecification) GetTfliteInferenceParams() *TfliteInferenceParams
func (*ProcessSpecification) GetTopkAccuracyEvalParams ¶
func (x *ProcessSpecification) GetTopkAccuracyEvalParams() *TopkAccuracyEvalParams
func (*ProcessSpecification) ProtoMessage ¶
func (*ProcessSpecification) ProtoMessage()
func (*ProcessSpecification) ProtoReflect ¶
func (x *ProcessSpecification) ProtoReflect() protoreflect.Message
func (*ProcessSpecification) Reset ¶
func (x *ProcessSpecification) Reset()
func (*ProcessSpecification) String ¶
func (x *ProcessSpecification) String() string
type ProcessSpecification_ImageClassificationParams ¶
type ProcessSpecification_ImageClassificationParams struct {
ImageClassificationParams *ImageClassificationParams `protobuf:"bytes,4,opt,name=image_classification_params,json=imageClassificationParams,oneof"`
}
type ProcessSpecification_ImagePreprocessingParams ¶
type ProcessSpecification_ImagePreprocessingParams struct {
ImagePreprocessingParams *ImagePreprocessingParams `protobuf:"bytes,1,opt,name=image_preprocessing_params,json=imagePreprocessingParams,oneof"`
}
type ProcessSpecification_ObjectDetectionAveragePrecisionParams ¶
type ProcessSpecification_ObjectDetectionAveragePrecisionParams struct {
ObjectDetectionAveragePrecisionParams *ObjectDetectionAveragePrecisionParams `protobuf:"bytes,5,opt,name=object_detection_average_precision_params,json=objectDetectionAveragePrecisionParams,oneof"`
}
type ProcessSpecification_ObjectDetectionParams ¶
type ProcessSpecification_ObjectDetectionParams struct {
ObjectDetectionParams *ObjectDetectionParams `protobuf:"bytes,6,opt,name=object_detection_params,json=objectDetectionParams,oneof"`
}
type ProcessSpecification_TfliteInferenceParams ¶
type ProcessSpecification_TfliteInferenceParams struct {
TfliteInferenceParams *TfliteInferenceParams `protobuf:"bytes,3,opt,name=tflite_inference_params,json=tfliteInferenceParams,oneof"`
}
type ProcessSpecification_TopkAccuracyEvalParams ¶
type ProcessSpecification_TopkAccuracyEvalParams struct {
TopkAccuracyEvalParams *TopkAccuracyEvalParams `protobuf:"bytes,2,opt,name=topk_accuracy_eval_params,json=topkAccuracyEvalParams,oneof"`
}
type ResizingParams ¶
type ResizingParams struct { // Size of the image after resizing. TargetSize *ImageSize `protobuf:"bytes,1,req,name=target_size,json=targetSize" json:"target_size,omitempty"` // If this flag is true, the resize function will preserve the image's aspect // ratio. Note that in this case, the size of output image may not equal to // the target size defined above. AspectPreserving *bool `protobuf:"varint,2,req,name=aspect_preserving,json=aspectPreserving" json:"aspect_preserving,omitempty"` // contains filtered or unexported fields }
Defines parameters for bilinear central-resizing.
Next ID: 3
func (*ResizingParams) Descriptor
deprecated
func (*ResizingParams) Descriptor() ([]byte, []int)
Deprecated: Use ResizingParams.ProtoReflect.Descriptor instead.
func (*ResizingParams) GetAspectPreserving ¶
func (x *ResizingParams) GetAspectPreserving() bool
func (*ResizingParams) GetTargetSize ¶
func (x *ResizingParams) GetTargetSize() *ImageSize
func (*ResizingParams) ProtoMessage ¶
func (*ResizingParams) ProtoMessage()
func (*ResizingParams) ProtoReflect ¶
func (x *ResizingParams) ProtoReflect() protoreflect.Message
func (*ResizingParams) Reset ¶
func (x *ResizingParams) Reset()
func (*ResizingParams) String ¶
func (x *ResizingParams) String() string
type TfliteInferenceMetrics ¶
type TfliteInferenceMetrics struct { // Number of times the interpreter is invoked. NumInferences *int32 `protobuf:"varint,1,opt,name=num_inferences,json=numInferences" json:"num_inferences,omitempty"` // contains filtered or unexported fields }
Metrics specific to TFLite inference.
Next ID: 2
func (*TfliteInferenceMetrics) Descriptor
deprecated
func (*TfliteInferenceMetrics) Descriptor() ([]byte, []int)
Deprecated: Use TfliteInferenceMetrics.ProtoReflect.Descriptor instead.
func (*TfliteInferenceMetrics) GetNumInferences ¶
func (x *TfliteInferenceMetrics) GetNumInferences() int32
func (*TfliteInferenceMetrics) ProtoMessage ¶
func (*TfliteInferenceMetrics) ProtoMessage()
func (*TfliteInferenceMetrics) ProtoReflect ¶
func (x *TfliteInferenceMetrics) ProtoReflect() protoreflect.Message
func (*TfliteInferenceMetrics) Reset ¶
func (x *TfliteInferenceMetrics) Reset()
func (*TfliteInferenceMetrics) String ¶
func (x *TfliteInferenceMetrics) String() string
type TfliteInferenceParams ¶
type TfliteInferenceParams struct { // Required ModelFilePath *string `protobuf:"bytes,1,opt,name=model_file_path,json=modelFilePath" json:"model_file_path,omitempty"` Delegate *TfliteInferenceParams_Delegate `protobuf:"varint,2,opt,name=delegate,enum=tflite.evaluation.TfliteInferenceParams_Delegate" json:"delegate,omitempty"` // Number of threads available to the TFLite Interpreter. NumThreads *int32 `protobuf:"varint,3,opt,name=num_threads,json=numThreads,def=1" json:"num_threads,omitempty"` // Defines how many times the TFLite Interpreter is invoked for every input. // This helps benchmark cases where extensive pre-processing might not be // required for every input. InvocationsPerRun *int32 `protobuf:"varint,4,opt,name=invocations_per_run,json=invocationsPerRun,def=1" json:"invocations_per_run,omitempty"` // contains filtered or unexported fields }
Parameters that control TFLite inference.
Next ID: 5
func (*TfliteInferenceParams) Descriptor
deprecated
func (*TfliteInferenceParams) Descriptor() ([]byte, []int)
Deprecated: Use TfliteInferenceParams.ProtoReflect.Descriptor instead.
func (*TfliteInferenceParams) GetDelegate ¶
func (x *TfliteInferenceParams) GetDelegate() TfliteInferenceParams_Delegate
func (*TfliteInferenceParams) GetInvocationsPerRun ¶
func (x *TfliteInferenceParams) GetInvocationsPerRun() int32
func (*TfliteInferenceParams) GetModelFilePath ¶
func (x *TfliteInferenceParams) GetModelFilePath() string
func (*TfliteInferenceParams) GetNumThreads ¶
func (x *TfliteInferenceParams) GetNumThreads() int32
func (*TfliteInferenceParams) ProtoMessage ¶
func (*TfliteInferenceParams) ProtoMessage()
func (*TfliteInferenceParams) ProtoReflect ¶
func (x *TfliteInferenceParams) ProtoReflect() protoreflect.Message
func (*TfliteInferenceParams) Reset ¶
func (x *TfliteInferenceParams) Reset()
func (*TfliteInferenceParams) String ¶
func (x *TfliteInferenceParams) String() string
type TfliteInferenceParams_Delegate ¶
type TfliteInferenceParams_Delegate int32
const ( TfliteInferenceParams_NONE TfliteInferenceParams_Delegate = 0 TfliteInferenceParams_NNAPI TfliteInferenceParams_Delegate = 1 TfliteInferenceParams_GPU TfliteInferenceParams_Delegate = 2 TfliteInferenceParams_HEXAGON TfliteInferenceParams_Delegate = 3 TfliteInferenceParams_XNNPACK TfliteInferenceParams_Delegate = 4 )
func (TfliteInferenceParams_Delegate) Descriptor ¶
func (TfliteInferenceParams_Delegate) Descriptor() protoreflect.EnumDescriptor
func (TfliteInferenceParams_Delegate) Enum ¶
func (x TfliteInferenceParams_Delegate) Enum() *TfliteInferenceParams_Delegate
func (TfliteInferenceParams_Delegate) EnumDescriptor
deprecated
func (TfliteInferenceParams_Delegate) EnumDescriptor() ([]byte, []int)
Deprecated: Use TfliteInferenceParams_Delegate.Descriptor instead.
func (TfliteInferenceParams_Delegate) Number ¶
func (x TfliteInferenceParams_Delegate) Number() protoreflect.EnumNumber
func (TfliteInferenceParams_Delegate) String ¶
func (x TfliteInferenceParams_Delegate) String() string
func (TfliteInferenceParams_Delegate) Type ¶
func (TfliteInferenceParams_Delegate) Type() protoreflect.EnumType
func (*TfliteInferenceParams_Delegate) UnmarshalJSON
deprecated
func (x *TfliteInferenceParams_Delegate) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type TopkAccuracyEvalMetrics ¶
type TopkAccuracyEvalMetrics struct { // A repeated field of size |k| where the ith element denotes the fraction of // samples for which the correct label was present in the top (i + 1) model // outputs. // For example, topk_accuracies(1) will contain the fraction of // samples for which the model returned the correct label as the top first or // second output. TopkAccuracies []float32 `protobuf:"fixed32,1,rep,name=topk_accuracies,json=topkAccuracies" json:"topk_accuracies,omitempty"` // contains filtered or unexported fields }
Metrics from top-K accuracy evaluation.
Next ID: 2
func (*TopkAccuracyEvalMetrics) Descriptor
deprecated
func (*TopkAccuracyEvalMetrics) Descriptor() ([]byte, []int)
Deprecated: Use TopkAccuracyEvalMetrics.ProtoReflect.Descriptor instead.
func (*TopkAccuracyEvalMetrics) GetTopkAccuracies ¶
func (x *TopkAccuracyEvalMetrics) GetTopkAccuracies() []float32
func (*TopkAccuracyEvalMetrics) ProtoMessage ¶
func (*TopkAccuracyEvalMetrics) ProtoMessage()
func (*TopkAccuracyEvalMetrics) ProtoReflect ¶
func (x *TopkAccuracyEvalMetrics) ProtoReflect() protoreflect.Message
func (*TopkAccuracyEvalMetrics) Reset ¶
func (x *TopkAccuracyEvalMetrics) Reset()
func (*TopkAccuracyEvalMetrics) String ¶
func (x *TopkAccuracyEvalMetrics) String() string
type TopkAccuracyEvalParams ¶
type TopkAccuracyEvalParams struct { // Required. K *int32 `protobuf:"varint,1,opt,name=k" json:"k,omitempty"` // contains filtered or unexported fields }
Parameters that define how top-K accuracy is evaluated.
Next ID: 2
func (*TopkAccuracyEvalParams) Descriptor
deprecated
func (*TopkAccuracyEvalParams) Descriptor() ([]byte, []int)
Deprecated: Use TopkAccuracyEvalParams.ProtoReflect.Descriptor instead.
func (*TopkAccuracyEvalParams) GetK ¶
func (x *TopkAccuracyEvalParams) GetK() int32
func (*TopkAccuracyEvalParams) ProtoMessage ¶
func (*TopkAccuracyEvalParams) ProtoMessage()
func (*TopkAccuracyEvalParams) ProtoReflect ¶
func (x *TopkAccuracyEvalParams) ProtoReflect() protoreflect.Message
func (*TopkAccuracyEvalParams) Reset ¶
func (x *TopkAccuracyEvalParams) Reset()
func (*TopkAccuracyEvalParams) String ¶
func (x *TopkAccuracyEvalParams) String() string