Hi, I am using flow_from_directory for training for binary classifier. As this function expects I have ’n’ classes of folders under images_train folder. This part is working fine. But test images which are present in images_test folder will not be having separate folders. All the images (dogs & cats) are under images_test folder which will be used for prediction.

When I try to create test generator, I am getting below message. Its not reading no. of images in images_test folder. Can you provide your suggestion on this.

Image for post
Image for post

Thanks !

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