From the Cat & Dog Image Classifier project in ML with Python course. #3. What’s wrong with this code?
It should be displaying this.
"Found 2000 images belonging to 2 classes.
Found 1000 images belonging to 2 classes.
Found 0 images belonging to 0 classes.‘’
However, in the last line, it finds 0 images belonging to 0 classes.
Try adding the “class_mode” argument:
class_mode = a string defining the type of classification your model does. If the output layer of your model has only one node and sigmoid activation, use ‘binary’, if it has the same number of nodes as the number of classes and has a softmax activation, use ‘categorical’.
https://medium.com/codex/master-keras-imagedatagenerator-class-989ea21fc489
https://stackoverflow.com/questions/59439128/what-does-class-mode-parameter-in-keras-image-gen-flow-from-directory-signify