pub enum DetectHead {
OneToMany,
OneToOne,
}Expand description
Which weight namespace the detect head should bind to.
OneToMany maps to cv2 / cv3 (the training head used for dense
anchor assignment). OneToOne maps to one2one_cv2 / one2one_cv3
(the inference head used by ultralytics in eval mode — better mAP).
Variants§
Auto Trait Implementations§
impl Freeze for DetectHead
impl RefUnwindSafe for DetectHead
impl Send for DetectHead
impl Sync for DetectHead
impl Unpin for DetectHead
impl UnsafeUnpin for DetectHead
impl UnwindSafe for DetectHead
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