Hi. I am using below code for test_generator but I am getting wrong count when I execute below code -

test_generator=datagen.flow_from_dataframe(dataframe=test_df,
directory=’./images_test/’,
x_col=’id’,
y_col=None,
has_ext=False,
subset=’validation’,
batch_size=32,
seed=42,
shuffle=False,
class_mode=None,
target_size=(64,64))

Above code ouputs ‘Found 274 images but I have more than 1000 images in the images_test folder’. What I am missing here?

thanks a lot !

Data Science | Machine Learning | Python. Visit https://pythonsimplified.com/ for interesting articles on Python and Machine Learning

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store