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

Last batch from SequenceGenerator is incorrect #67

Open
Jannkar opened this issue Oct 29, 2019 · 0 comments
Open

Last batch from SequenceGenerator is incorrect #67

Jannkar opened this issue Oct 29, 2019 · 0 comments

Comments

@Jannkar
Copy link

Jannkar commented Oct 29, 2019

In data_utils.py, the last incomplete batch from the next() function has wrong shape (real batch is padded with zero values). This will affect to training and testing results and is caused by:
index_array, current_batch_size = next(self.index_generator), self.batch_size
Now the current batch_size is always the predefined self.batch_size, right?

I think the current batch size should be instead defined like this:
current_batch_size = len(index_array)

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