Mukosame / Zooming-Slow-Mo-CVPR-2020

Fast and Accurate One-Stage Space-Time Video Super-Resolution (accepted in CVPR 2020)
GNU General Public License v3.0
908 stars 165 forks source link

Fix: test_index_generation generates the last batch twice #25

Closed JensDA closed 4 years ago

JensDA commented 4 years ago

The error case can be tested by e.g. executing test_index_generation(False, 5, 5).

Due to right and/or right_in being incremented during the last loop in the while loop above, their values become greater than (len_in-1), thus triggering the "cover the last image" case when it is not needed.

Mukosame commented 4 years ago

Thanks, @JensDA!