AttributeError: 'DirectoryIterator' object has no attribute 'nb_class'

Apparantly the problem was because of keras2, it has name changes for nb_class. In this post there is a solution + some extra information about what changed: Keras 2 Released

5 Likes