list index out of range error in feature_extractor
Opened this issue · 2 comments
chocokassy commented
Use imageio to extract video in feature_extractor. In extract_frame.append(imgs[n]), a list index out of range error will appear. It stands to reason that 160 frames should be extracted from vid (16 frames per second, total 10 seconds), but The fact is that some videos extract 301 frames and some videos extract 251 frames, resulting in extract_frame.shape being (1, 224, 224, 3) and imgs.shape (301, 224, 224, 3), how can I solve this?
chocokassy commented
Use imageio version 2.4.1 can solve this problem
laulliam commented
Thank you, that works well. @chocokassy