pub struct YoloxConfig {
pub input_width: usize,
pub input_height: usize,
pub strides: Vec<usize>,
pub score_threshold: f64,
pub nms_threshold: f64,
}Expand description
Input size and thresholds.
Fields§
§input_width: usize§input_height: usize§strides: Vec<usize>Strides of the output levels, in anchor order.
score_threshold: f64Keep class scores above this (0.1).
nms_threshold: f64Suppress a box overlapping a higher-scored box of the same class by more than this IoU (0.45, as in YOLOX’s demo).
Implementations§
Source§impl YoloxConfig
impl YoloxConfig
Sourcepub fn anchor_count(&self) -> usize
pub fn anchor_count(&self) -> usize
Number of anchors the model outputs for this input size.
Trait Implementations§
Source§impl Clone for YoloxConfig
impl Clone for YoloxConfig
Source§impl Debug for YoloxConfig
impl Debug for YoloxConfig
Source§impl Default for YoloxConfig
impl Default for YoloxConfig
Source§impl PartialEq for YoloxConfig
impl PartialEq for YoloxConfig
impl StructuralPartialEq for YoloxConfig
Auto Trait Implementations§
impl Forget for YoloxConfig
impl Freeze for YoloxConfig
impl Move for YoloxConfig
impl RefUnwindSafe for YoloxConfig
impl Send for YoloxConfig
impl Sync for YoloxConfig
impl Unpin for YoloxConfig
impl UnsafeUnpin for YoloxConfig
impl UnwindSafe for YoloxConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.