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

Update trainer.py #36

Merged
merged 1 commit into from
Aug 4, 2021
Merged

Conversation

kuzand
Copy link
Contributor

@kuzand kuzand commented Aug 4, 2021

A better way to get the number of batches is len(self.dataloader_test) instead of self.len_dataset_test / (self.opt.batch_size). Also note that self.opt.batch_size is the batch size for training, not for testing which is set to 5 so it was wrong anyway.

A better way to get the number of batches is len(self.dataloader_test) instead of self.len_dataset_test / (self.opt.batch_size). Also note that self.opt.batch_size is the batch size for training, not for testing which is set to 5 so it was wrong anyway.
@ThibaultGROUEIX
Copy link
Owner

Thanks @kuzand !

@ThibaultGROUEIX ThibaultGROUEIX merged commit e138f49 into ThibaultGROUEIX:master Aug 4, 2021
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

Successfully merging this pull request may close these issues.

2 participants