sitammeur commited on
Commit
0cd7737
·
verified ·
1 Parent(s): 6b97064

Update src/yolo/predict_pose.py

Browse files
Files changed (1) hide show
  1. src/yolo/predict_pose.py +2 -2
src/yolo/predict_pose.py CHANGED
@@ -16,14 +16,14 @@ def predict_pose(
16
  model_name: str,
17
  ) -> Image.Image:
18
  """
19
- Predicts objects in an image using a YOLO11 model with adjustable confidence and IOU thresholds.
20
 
21
  Args:
22
  - img (str or numpy.ndarray): The input image or path to the image file.
23
  - conf_threshold (float): The confidence threshold for object detection.
24
  - iou_threshold (float): The Intersection Over Union (IOU) threshold for non-max suppression.
25
  - max_detections (int): The maximum number of detections allowed.
26
- - model_name (str): The name or path of the YOLO11 model to be used for prediction.
27
 
28
  Returns:
29
  PIL.Image.Image: The image with predicted objects plotted on it.
 
16
  model_name: str,
17
  ) -> Image.Image:
18
  """
19
+ Predicts objects in an image using a YOLO model with adjustable confidence and IOU thresholds.
20
 
21
  Args:
22
  - img (str or numpy.ndarray): The input image or path to the image file.
23
  - conf_threshold (float): The confidence threshold for object detection.
24
  - iou_threshold (float): The Intersection Over Union (IOU) threshold for non-max suppression.
25
  - max_detections (int): The maximum number of detections allowed.
26
+ - model_name (str): The name or path of the YOLO model to be used for prediction.
27
 
28
  Returns:
29
  PIL.Image.Image: The image with predicted objects plotted on it.