This is no problem for your training and validation data. The generator will take care of this. Hence you can simply use:
STEPS = train_generator.n // train_generator.batch_size
VALID_STEPS = validation_generator.n // train_generator.batch_size
history = model.fit_generator(
train_generator,
steps_per_epoch=STEPS,
epochs=100,
validation_data=validation_generator,
validation_steps=VALID_STEPS)
However, for your testset make sure that the batch size fits the data, otherwise you run a risk of your predictions not matching your true labels when comparing both (please check this article which highlights this https://medium.com/difference-engine-ai/keras-a-thing-you-should-know-about-keras-if-you-plan-to-train-a-deep-learning-model-on-a-large-fdd63ce66bd2). You can ensure that the batch size fits your data by using a loop for example:
for i in range(1,160):
if len(test_data) % i == 0:
div = i
batch_size = div