pub struct Params {
pub iou_type: IouType,
pub img_ids: Vec<u64>,
pub cat_ids: Vec<u64>,
pub iou_thrs: Vec<f64>,
pub rec_thrs: Vec<f64>,
pub max_dets: Vec<usize>,
pub area_rng: Vec<[f64; 2]>,
pub area_rng_lbl: Vec<String>,
pub use_cats: bool,
pub kpt_oks_sigmas: Vec<f64>,
}Expand description
Evaluation parameters controlling IoU thresholds, area ranges, and detection limits.
Defaults match pycocotools: 10 IoU thresholds (0.50:0.05:0.95), 101 recall thresholds, and standard COCO area ranges. Keypoint evaluation uses different defaults (3 area ranges instead of 4, max 20 detections instead of 1/10/100).
Fields§
§iou_type: IouTypeIoU computation type (bbox, segm, or keypoints).
img_ids: Vec<u64>Image IDs to evaluate (empty = all images).
cat_ids: Vec<u64>Category IDs to evaluate (empty = all categories).
iou_thrs: Vec<f64>IoU thresholds for matching (default: 0.50, 0.55, …, 0.95).
rec_thrs: Vec<f64>Recall thresholds for interpolated precision (default: 0.00, 0.01, …, 1.00).
max_dets: Vec<usize>Maximum detections per image for each summary metric (default: [1, 10, 100]).
area_rng: Vec<[f64; 2]>Area ranges as [min, max] for filtering (default: all/small/medium/large).
area_rng_lbl: Vec<String>Labels for each area range (e.g. “all”, “small”, “medium”, “large”).
use_cats: boolWhether to evaluate per-category (true) or pool all categories (false).
kpt_oks_sigmas: Vec<f64>Per-keypoint OKS sigmas (default: 17 COCO keypoint sigmas).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more