MixSort icon indicating copy to clipboard operation
MixSort copied to clipboard

How to run inference on videos directly

Open usman-bsee opened this issue 1 year ago • 1 comments

Dear Author, Thanks for your interest, Please can you guide how to run inference on new videos without loading datasets in the dataset directory. Thanks.

usman-bsee avatar Apr 20 '24 11:04 usman-bsee

Hello,

In inference, the get_eval_loader function defined in the exp file is used to get the DataLoader: https://github.com/MCG-NJU/MixSort/blob/a078f5bf6ae9fbeecbc1384479d5f02ab8b9e7f6/tools/track_mixsort.py#L175-L183

Since we haven't provided a script to directly run inference on custom videos, you need to manually convert it to coco format, create a new exp file, and modify the get_eval_loader function to correctly read your data.

You could refer to yolox_x_sportsmot.py and convert_sportsmot_to_coco.py

ret-1 avatar Apr 20 '24 12:04 ret-1