Skip to content

What happens when the number of images is less than the batch size? #8069

Answered by stephanecharette
Tony904 asked this question in Q&A
Discussion options

You must be logged in to vote

does the network fill the gap with augmented images

Yes.

My understanding is once it has reached the end of the images, if max batches has not been met then it starts again from the start. So if you have a dataset with a single image, but batch size is 64 and max batches is 6000, you'll end up with lots of copies of the original image with all sorts of data augmentation from flip=1, hue=0.1, saturation=1.5, etc.

This could probably be tested by using the -show_imgs flag when training.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rishishounak
Comment options

Answer selected by Tony904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants