Skip to main content

yolo26

Function yolo26 

Source
pub fn yolo26<D: Float + Send + Sync + 'static>(
    nc: usize,
    variant: &Yolo26Variant,
    head: DetectHead,
) -> impl Fn(SymTensor) -> DetectOutput
Expand description

YOLO26 single-head forward closure (inference or one-head training).

ยงArguments

  • nc โ€” number of detection classes (e.g. 80 for COCO)
  • variant โ€” model size variant (N / S / M / L / XL)
  • head โ€” OneToMany (cv2/cv3, dense) or OneToOne (one2one_cv2/cv3, inference)

For dual-assignment training use yolo26_dual instead.