williamfzc / stagesepx

detect stages in video automatically
MIT License
435 stars 125 forks source link

step非1时列表越界 #21

Closed williamfzc closed 5 years ago

williamfzc commented 5 years ago

主要因为部分计算直接用了 ssim_list 的索引

Traceback (most recent call last):
  File "F:/stagesepx/example/cut_and_classify.py", line 9, in <module>
    stable, unstable = res.get_range()
  File "F:\stagesepx\stagesepx\cutter.py", line 228, in get_range
    self.ssim_list[end_stable_range_start_id - 1].end_time,
IndexError: list index out of range

Process finished with exit code 1