-
Notifications
You must be signed in to change notification settings - Fork 11
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
Error with last batch that is smaller than the others #78
Comments
Is it really the batch dimension? Ther problem is likely in
|
Hm... I may have been mislead by the
BTW, that Still ... all images are 292x292 before the crop:
...? |
Actually the expected initial size is c(224, 224) If you change the lines:
That should work |
ugh. thanks. |
I'm getting an error due to the last batch of the training data loader being smaller than the others (it has 31 instead of 32 items).
(Something I think we got to disappear a long time ago.)
The trigger is a custom augmentation function that does resizings (which affect dimensions 3 & 4, but not 1).
The reproducing example is based on https://github.com/mlverse/luz/blob/master/vignettes/examples/pets-unet.Rmd - the model is identical, data loading code very similar, apart from a slight modification I needed (or thought I needed) to
pet_dataset
, and the use of augmentation.Transforms that do not involve resizing don't trigger the error, so I'm not reproducing them here.
Error:
The text was updated successfully, but these errors were encountered: