I have a large image dataset to store. I have 300,000 images. Each image is a vector of 28800 pixels, which means that I have a matrix of (300000, 28800)
I stored that as follow
img_arr = np.stack(images, axis=0)
np.savetxt('pixels_dataset_large.csv',img_arr,delimiter=",")
However it takes long time to load it and some times l get memory error :
data_pixels=np.genfromtxt("pixels_dataset_large.csv", delimiter=',')
Is there any alternative to optimally store and load it ?