MemoryError for creating a new numpy array

Hi,

I was trying the Keras CNN Stater Code on Ubuntu 16.04, from the below link:

I get “MemoryError:” for
X_train = np.array(train_img, np.float32) / 255.

Any idea, what should I be doing?

Hey @nanddeep,

It would be difficult to suggest anything without proper clarification on the following -

  • What is the size of the data you are working on? It is big data, i.e. can traditional systems handle that kind of data?
  • What are the specifications of the system you are currently working on? How much RAM does it have?
  • Are you running the python process in a standalone way or are there other process/softwares which are running alongside it - such as firefox, media player etc?