Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in run_demo.py at line 194. #41

Open
arpane4c5 opened this issue Dec 12, 2019 · 0 comments
Open

Bug in run_demo.py at line 194. #41

arpane4c5 opened this issue Dec 12, 2019 · 0 comments

Comments

@arpane4c5
Copy link

for item in range(row[2]-1, row[3]+1):

It appears that the loop should be for item in range(row[2]-1, row[3]) instead of for item in range(row[2]-1, row[3]+1) since, at boundary cases (end of video file) it gives an error of invalid index. The segment seems to be increased by a size of one. Eg. if the values are starting frame = 1, end frame = 16 with window size = 16, the number of values written to res list are 17 instead of 16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant