MoonBlvd / tad-IROS2019

Code of the Unsupervised Traffic Accident Detection paper in Pytorch.
MIT License
166 stars 39 forks source link

cannot find run_fol_for_AD.py/all_track_files #21

Open hwk0702 opened 4 years ago

hwk0702 commented 4 years ago

Hi, author. What is all_track_files numpy files contain? Please help me! Thanks.

MoonBlvd commented 4 years ago

Hi @hwk0702 what specific file do you point to?

hwk0702 commented 4 years ago

In the run_fol_for_AD.py code, the numpy file in track_dir is loaded. I am wondering what constitutes the numpy file and what format it is in.

MoonBlvd commented 4 years ago

@hwk0702 Great question! The .npy files are in the output format of deep-sort. Basically it's a 2D numpy array with columns as: frame_id, track_id, x1, y1, w, h. where x1 and y1 are the left top box vertex coordinates and w, h are box width and height. You can checkout the deep-sort repo to get better understand of this .npy format.