pub struct DetectOptions {
pub confidence: f32,
pub max_detections: usize,
pub iou: Option<f32>,
pub classes: Vec<u32>,
}Expand description
Detection options (Diana).
confidence defaults to 0.25 — the threshold a person looking at boxes
wants. Benchmarks that need the low-confidence tail for mAP set it to
~0.001 explicitly, the way corpora/refs/*_ref.py do; the default is
not tuned for the scorer, and the scorer does not inherit it silently.
Fields§
§confidence: f32Minimum confidence to report.
max_detections: usizeMaximum detections returned, highest confidence first.
iou: Option<f32>Class-wise NMS IoU. None for the NMS-free one-to-one path, which
is YOLO26’s default and needs no suppression.
classes: Vec<u32>Restrict to these class ids; empty = every class.
Trait Implementations§
Source§impl Clone for DetectOptions
impl Clone for DetectOptions
Source§fn clone(&self) -> DetectOptions
fn clone(&self) -> DetectOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DetectOptions
impl Debug for DetectOptions
Auto Trait Implementations§
impl Freeze for DetectOptions
impl RefUnwindSafe for DetectOptions
impl Send for DetectOptions
impl Sync for DetectOptions
impl Unpin for DetectOptions
impl UnsafeUnpin for DetectOptions
impl UnwindSafe for DetectOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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