sitammeur commited on
Commit
c6fd4af
·
verified ·
1 Parent(s): e2d528b

Update src/yolo/predict_pose.py

Browse files
Files changed (1) hide show
  1. src/yolo/predict_pose.py +1 -3
src/yolo/predict_pose.py CHANGED
@@ -2,14 +2,12 @@ import sys
2
  import PIL.Image as Image
3
  from ultralytics import YOLO
4
  import gradio as gr
5
- # import spaces
6
 
7
  # Local imports
8
  from src.logger import logging
9
  from src.exception import CustomExceptionHandling
10
 
11
 
12
- # @spaces.GPU
13
  def predict_pose(
14
  img: str,
15
  conf_threshold: float,
@@ -25,7 +23,7 @@ def predict_pose(
25
  - conf_threshold (float): The confidence threshold for object detection.
26
  - iou_threshold (float): The Intersection Over Union (IOU) threshold for non-max suppression.
27
  - max_detections (int): The maximum number of detections allowed.
28
- - model_name (str): The name or path of the YOLOv8 model to be used for prediction.
29
 
30
  Returns:
31
  PIL.Image.Image: The image with predicted objects plotted on it.
 
2
  import PIL.Image as Image
3
  from ultralytics import YOLO
4
  import gradio as gr
 
5
 
6
  # Local imports
7
  from src.logger import logging
8
  from src.exception import CustomExceptionHandling
9
 
10
 
 
11
  def predict_pose(
12
  img: str,
13
  conf_threshold: float,
 
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.