data_generator 每次输出一个batch,基于keras.utils.Sequence Base object for fitting to a sequence of data, such as a dataset. Every Sequence must implement the __getitem__ and the __len__ methods. If you want to modify your dataset between epochs you may imple…