Modified the parameter description of 'weights' in the AutoBackend class (#18059)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/18062/head
yeyangshuo 7 days ago committed by GitHub
parent f6005a9166
commit 7ba48cc078
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ultralytics/nn/autobackend.py

@ -96,7 +96,7 @@ class AutoBackend(nn.Module):
Initialize the AutoBackend for inference.
Args:
weights (str): Path to the model weights file. Defaults to 'yolov8n.pt'.
weights (str | torch.nn.Module): Path to the model weights file or a module instance. Defaults to 'yolo11n.pt'.
device (torch.device): Device to run the model on. Defaults to CPU.
dnn (bool): Use OpenCV DNN module for ONNX inference. Defaults to False.
data (str | Path | optional): Path to the additional data.yaml file containing class names. Optional.

Loading…
Cancel
Save