weirme / FCSN

A PyTorch reimplementation of FCSN in paper "Video Summarization Using Fully Convolutional Sequence Networks"
116 stars 33 forks source link

IndexError: index 202 is out of bounds for axis 0 with size 0 #35

Open solankishweta2910 opened 2 years ago

solankishweta2910 commented 2 years ago

I tried running module gen_summary.py

Traceback (most recent call last): File "C:/Users/Sachin/Documents/MTech Dissertation/Video_Summary_using_FCSN/gen_summary.py", line 112, in gen_summary() File "C:/Users/Sachin/Documents/MTech Dissertation/Video_Summary_using_FCSN/gen_summary.py", line 104, in gen_summary get_keys(id) File "C:/Users/Sachin/Documents/MTech Dissertation/Video_Summary_using_FCSN/gen_summary.py", line 50, in get_keys keyshots.append(frames[i]) IndexError: index 202 is out of bounds for axis 0 with size 0

getting the above error. pls help in solving .

hpppppp8 commented 2 years ago

I tried running module gen_summary.py

Traceback (most recent call last): File "C:/Users/Sachin/Documents/MTech Dissertation/Video_Summary_using_FCSN/gen_summary.py", line 112, in gen_summary() File "C:/Users/Sachin/Documents/MTech Dissertation/Video_Summary_using_FCSN/gen_summary.py", line 104, in gen_summary get_keys(id) File "C:/Users/Sachin/Documents/MTech Dissertation/Video_Summary_using_FCSN/gen_summary.py", line 50, in get_keys keyshots.append(frames[i]) IndexError: index 202 is out of bounds for axis 0 with size 0

getting the above error. pls help in solving .

After you are download the tvsum dataset, you need to rename the video name like 1、2、3. The 1-50 corresponds to the same order in ydata-tvsum50.mat, which is the original matlab file provided by TVSum.https://github.com/KaiyangZhou/vsumm-reinforce/issues/1#issuecomment-380371730 And then you can run the gen_summary.py. I hope it can be helpful.