AttributeError: ‘DirectoryIterator’ object has no attribute ‘nb_sample’],UnboundLocalError等报错
AttributeError: ‘DirectoryIterator’ object has no attribute ‘nb_sample’],UnboundLocalError等报错
报错1:
图片:
把keras和tensorflow的版本对应就好了
我用的是keras=2.3.1 tensorflow==2.0.0
报:2:AttributeError: ‘DirectoryIterator’ object has no attribute ‘nb_sample’
Keras2以后 要把nb_sample换成samples