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

Significance of few lines of code in create_dataset function is not clear #12

Closed
sujithvemi opened this issue Nov 7, 2019 · 1 comment

Comments

@sujithvemi
Copy link

https://github.com/amiryanj/socialways/blob/dab93ada0ff01af119395f93b50c73f37a8d52c1/utils/parse_utils.py#L497

sb[1] = sb[1] - sb[0] + last_ind
sb[0] = last_ind
last_ind = sb[1]

If I am right, these lines of code don't change anything when using BIWI dataset. Are these here for the purpose of some other dataset?

@amiryanj
Copy link
Collaborator

Hello @sujithvemi
Well that seems a little absurd! but I guess the reason was that, there were some gaps between some of the sub_batches, and I added those lines so that the start of each sub_batch be equal to the end of the previous sub_batch.

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

2 participants