File size: 432 Bytes
5f1587b
37165e0
5f1587b
37165e0
5f1587b
 
 
 
37165e0
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from .bytetrack import ByteTrack
from .dummytrack import DummyTrack

def build_tracker(config):
    """
    Build the tracking model based on the provided configuration.
    """
    # Initialize the tracker
    if config.algorithm == "bytetrack":
        return ByteTrack()
    elif config.algorithm == "dummytrack":
        return DummyTrack()
    else:
        raise ValueError(f"Unknown tracker type: {config.tracker.algorithm}")