Traceback (most recent call last):


 "./example.py", line 24, in <module>

model.fit_generator(generator, samples_per_epoch=100, nb_epoch=1)


 "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 935, in fit_generator

initial_epoch=initial_epoch)


 "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 1553, in fit_generator

class_weight=class_weight)


 "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 1316, in train_on_batch

outputs = self.train_function(ins)


 "/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py", line 1900, in __call__

feed_dict=feed_dict)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 766, in run

run_metadata_ptr)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 964, in _run

feed_dict_string, options, run_metadata)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1014, in _do_run

target_list, options, run_metadata)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1034, in _do_call

raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[25088,4096]

Traceback (most recent call last):


 "/home/gz/anaconda3/envs/pc/lib/python3.8/site-packages/redis/connection.py", line 559, in connect

sock = self._connect()


 "/home/gz/anaconda3/envs/pc/lib/python3.8/site-packages/redis/connection.py", line 615, in _connect

raise err


 "/home/gz/anaconda3/envs/pc/lib/python3.8/site-packages/redis/connection.py", line 603, in _connect

sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused
