pub struct Yolo26DetectorConfig {
pub variant: Yolo26Variant,
pub weights: PathBuf,
pub class_names: Vec<String>,
pub conf_threshold: f32,
pub nms_iou_threshold: f32,
pub img_size: usize,
}Expand description
Configuration for a YOLO26-backed ObjectDetector.
Fields§
§variant: Yolo26VariantWhich YOLO26 model size to use (N/S/M/L/X).
weights: PathBufPath to the model weights file.
class_names: Vec<String>Class labels, indexed by the model’s output class index.
conf_threshold: f32Minimum confidence to retain a detection. Default: 0.25.
nms_iou_threshold: f32IoU threshold for non-maximum suppression. Default: 0.45.
img_size: usizeSquare input resolution the model was trained at (e.g. 640).
Implementations§
Trait Implementations§
Source§impl Clone for Yolo26DetectorConfig
impl Clone for Yolo26DetectorConfig
Source§fn clone(&self) -> Yolo26DetectorConfig
fn clone(&self) -> Yolo26DetectorConfig
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 moreAuto Trait Implementations§
impl Freeze for Yolo26DetectorConfig
impl RefUnwindSafe for Yolo26DetectorConfig
impl Send for Yolo26DetectorConfig
impl Sync for Yolo26DetectorConfig
impl Unpin for Yolo26DetectorConfig
impl UnsafeUnpin for Yolo26DetectorConfig
impl UnwindSafe for Yolo26DetectorConfig
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