(image_set, args)
| 279 | |
| 280 | |
| 281 | def 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 |
nothing calls this directly
no test coverage detected