擅长:python、mysql、java
<pre><code>from keras.preprocessing.image import ImageDataGenerator
class dataGenerator(ImageDataGenerator):
"""
A data generator object that flows data from selected source.
Initializes with parameters from Keras ImageDataGenerator.
"""
def __init__(self, *args, **kwargs):
ImageDataGenerator.__init__(self,*args, **kwargs)
self.iterator=None
</code></pre>
<p>super()在python3.x中工作,可能您使用的是python2.x</p>