pub struct ObjectDetectionAveragePrecisionParams {
pub num_classes: Option<i32>,
pub iou_thresholds: Vec<f32>,
pub num_recall_points: Option<i32>,
}
Expand description
Parameters that define how Average Precision is computed for Object Detection task. Refer for details: http://cocodataset.org/#detection-eval
Next ID: 4
Fields§
§num_classes: Option<i32>
Total object classes. The AP value returned for each IoU threshold is an average over all classes encountered in predicted/ground truth sets.
iou_thresholds: Vec<f32>
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).
num_recall_points: Option<i32>
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
Implementations§
Source§impl ObjectDetectionAveragePrecisionParams
impl ObjectDetectionAveragePrecisionParams
Sourcepub fn num_classes(&self) -> i32
pub fn num_classes(&self) -> i32
Returns the value of num_classes
, or the default value if num_classes
is unset.
Sourcepub fn num_recall_points(&self) -> i32
pub fn num_recall_points(&self) -> i32
Returns the value of num_recall_points
, or the default value if num_recall_points
is unset.
Trait Implementations§
Source§impl Clone for ObjectDetectionAveragePrecisionParams
impl Clone for ObjectDetectionAveragePrecisionParams
Source§fn clone(&self) -> ObjectDetectionAveragePrecisionParams
fn clone(&self) -> ObjectDetectionAveragePrecisionParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Message for ObjectDetectionAveragePrecisionParams
impl Message for ObjectDetectionAveragePrecisionParams
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for ObjectDetectionAveragePrecisionParams
impl PartialEq for ObjectDetectionAveragePrecisionParams
Source§fn eq(&self, other: &ObjectDetectionAveragePrecisionParams) -> bool
fn eq(&self, other: &ObjectDetectionAveragePrecisionParams) -> bool
self
and other
values to be equal, and is used by ==
.