title: MemoryError: Unable to allocate array with shape (200, 20, 244, 244, 3) and data type float64
body: <p>I was trying to run a training module from a Github repo located <a href="https://github.com/liorsidi/ViolenceDetection_CNNLSTM" rel="nofollow noreferrer">HERE</a>. I'm running it on a cloud server, but I don't know why after some rounds, I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "run.py", line 229, in &lt;module&gt;
      classes=classes, use_augs=use_augs, fix_lens=fix_lens)
    File "run.py", line 165, in hyper_tune_network
      classes=classes)
    File "run.py", line 111, in get_generators
      classes=classes)
    File "/home/code/DatasetBuilder.py", line 221, in get_sequences
      X = pad_sequences(X, maxlen=seq_length, padding='pre', truncating='pre')
    File "/usr/local/lib/python3.5/dist-packages/keras/preprocessing/sequence.py", line 61, in pad_sequences
      x = (np.ones((num_samples, maxlen) + sample_shape) * value).astype(dtype)
    File "/root/.local/lib/python3.5/site-packages/numpy/core/numeric.py", line 214, in ones
      a = empty(shape, dtype, order)
  
      MemoryError: Unable to allocate array with shape (200, 20, 244, 244, 3) and data type float64
  </code></pre>
  
  <p>Frist, what does it mean? Is there any ways to fix it? What's the solution?</p>