File size: 380 Bytes
5f1587b
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from .yolo import YOLO


def build_detector(config):
    """
    Build the detection model based on the provided configuration.
    """
    # Initialize the YOLO object detection model
    return YOLO(config.thresholds.confidence,
                config.thresholds.iou,
                config.slicing.overlap,
                config.categories,
                config.device)