[][src]Struct tensorflow_proto::tflite::evaluation::ObjectDetectionParams

pub struct ObjectDetectionParams {
    pub inference_params: Option<TfliteInferenceParams>,
    pub class_offset: Option<i32>,
    pub ap_params: Option<ObjectDetectionAveragePrecisionParams>,
}

Parameters that define how the Object Detection task is evaluated end-to-end.

Next ID: 4

Fields

inference_params: Option<TfliteInferenceParams>

Required. Model's outputs should be same as a TFLite-compatible SSD model. Refer: https://www.tensorflow.org/lite/models/object_detection/overview#output TODO(b/133772912): Generalize support for other types of object detection models.

class_offset: Option<i32>

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.

ap_params: Option<ObjectDetectionAveragePrecisionParams>

Implementations

impl ObjectDetectionParams[src]

pub fn class_offset(&self) -> i32[src]

Returns the value of class_offset, or the default value if class_offset is unset.

Trait Implementations

impl Clone for ObjectDetectionParams[src]

impl Debug for ObjectDetectionParams[src]

impl Default for ObjectDetectionParams[src]

impl Message for ObjectDetectionParams[src]

impl PartialEq<ObjectDetectionParams> for ObjectDetectionParams[src]

impl StructuralPartialEq for ObjectDetectionParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.