MemoryError Traceback (most recent call last)
in ()
----> 1 X_val,Y_val = load_validation_data((224,224), 200)
in load_validation_data(target_size, no_of_classes)
4
5 m = len(lines)
----> 6 X = np.empty((m,*target_size,3))
7 Y = np.empty(m)
8
MemoryError: Unable to allocate 11.2 GiB for an array with shape (10000, 224, 224, 3) and data type float64
Here is my code-
https://colab.research.google.com/drive/1MPmDL2mpQOkeQbiNYD5pTVkjCDZmPOih?usp=sharing