Group-Activity-Recognition icon indicating copy to clipboard operation
Group-Activity-Recognition copied to clipboard

the code may be wrong

Open beibeirory opened this issue 5 years ago • 4 comments

https://github.com/ruiyan1995/Group-Activity-Recognition/blob/435bee845cd3fc66e9d27a0d02479ff71f0346ba/Pre/VD_Track.py#L37

Thanks for releasing the code. You sort the filenames, but they are str. If test this code with the video 1/9995, we will not get the correct results.

beibeirory avatar Dec 10 '19 08:12 beibeirory

Thank you for your remind, I have debugged the error in the VD_Track.py. It may not affect CAD_Track.py

ruiyan1995 avatar Dec 13 '19 02:12 ruiyan1995

I hope it works!

ruiyan1995 avatar Dec 13 '19 02:12 ruiyan1995

Hello, i noticed same problem occurs on following folders:

1/9995 52/9975 52/10015 54/9990

https://github.com/ruiyan1995/Group-Activity-Recognition/blob/435bee845cd3fc66e9d27a0d02479ff71f0346ba/Pre/VD_Track.py#L37

Thanks for releasing the code. You sort the filenames, but they are str. If test this code with the video 1/9995, we will not get the correct results.

fabiozappo avatar Jan 03 '20 15:01 fabiozappo

Hello, i noticed same problem occurs on following folders:

1/9995 52/9975 52/10015 54/9990

https://github.com/ruiyan1995/Group-Activity-Recognition/blob/435bee845cd3fc66e9d27a0d02479ff71f0346ba/Pre/VD_Track.py#L37

Thanks for releasing the code. You sort the filenames, but they are str. If test this code with the video 1/9995, we will not get the correct results.

I have debugged the error as follow, #img_list = sorted(glob.glob(os.path.join(self.dataset_folder, video_id, frame_id, ".jpg")))[16:26] img_list = glob.glob(os.path.join(self.dataset_folder, video_id, frame_id, ".jpg")) img_list = sorted(img_list, key=lambda x:int(x.split('/')[-1].split('.')[0]))[20-int((self.num_frames-1)/2):21+int(np.ceil(float(self.num_frames-1)/2.0))]

Please check it again!

ruiyan1995 avatar Jan 06 '20 11:01 ruiyan1995