pub struct NmsConfig {
pub iou_threshold: f32,
pub score_threshold: f32,
pub max_detections: i32,
pub class_agnostic: bool,
}Expand description
Deterministic non-maximum-suppression policy.
Fields§
§iou_threshold: f32Suppress a same-class box when its IoU is at least this value.
score_threshold: f32Ignore candidates below this score.
max_detections: i32Maximum number of selected source rows.
class_agnostic: boolSuppress overlaps across class labels when true.
Trait Implementations§
impl Copy for NmsConfig
impl StructuralPartialEq for NmsConfig
Auto Trait Implementations§
impl Forget for NmsConfig
impl Freeze for NmsConfig
impl Move for NmsConfig
impl RefUnwindSafe for NmsConfig
impl Send for NmsConfig
impl Sync for NmsConfig
impl Unpin for NmsConfig
impl UnsafeUnpin for NmsConfig
impl UnwindSafe for NmsConfig
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
Mutably borrows from an owned value. Read more