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

Why drop_last of DataLoader is disabled #42

Closed
RuiLiFeng opened this issue Sep 7, 2019 · 3 comments
Closed

Why drop_last of DataLoader is disabled #42

RuiLiFeng opened this issue Sep 7, 2019 · 3 comments

Comments

@RuiLiFeng
Copy link

I cut the num_works to 0 due to lack of RAM and run BigGAN_bs256x8.sh, ended up with error bellow
image
I noticed that it was processing the last batch in the first epoch, so I dug into the dataloader part, and I found that drop_last is disabled when use_multiepoch_sampler is enabled, would that cause tuple error as I meet?

@RuiLiFeng
Copy link
Author

Also could the authors be so nice to offer pretrained biggan deep?

@zxhuang97
Copy link

I also encountered this bug after modifying the batch size. You can either set drop_last = True, or increase the num_epoch so it won't come across the last batch of data.

@RuiLiFeng
Copy link
Author

@killer97 Thank you for your advice!

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