MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / build

Function build

tutorials/motr/joint.py:281–291  ·  view source on GitHub ↗
(image_set, args)

Source from the content-addressed store, hash-verified

279
280
281def build(image_set, args):
282 root = Path(args.mot_path)
283 assert root.exists(), f'provided MOT path {root} does not exist'
284 dataset2transform = build_dataset2transform(args, image_set)
285 if image_set == 'train':
286 data_txt_path = args.data_txt_path_train
287 dataset = DetMOTDetection(args, data_txt_path=data_txt_path, seqs_folder=root, dataset2transform=dataset2transform)
288 if image_set == 'val':
289 data_txt_path = args.data_txt_path_val
290 dataset = DetMOTDetection(args, data_txt_path=data_txt_path, seqs_folder=root, dataset2transform=dataset2transform)
291 return dataset
292

Callers

nothing calls this directly

Calls 2

build_dataset2transformFunction · 0.85
DetMOTDetectionClass · 0.85

Tested by

no test coverage detected