I'm trying to save a numpy array to disk but the saving process never seems to end, and the terminal keeps hanging without showing me the final print message of 'done'. I can tell the array is correctly formed by checking its shape
right before the saving function.
I wonder if I'm doing anything wrong or if this would be expected with numpy.save
given the size of the dataset.
Is there a more efficient way of doing this either with numpy or h5py?
# Xy_array is a 3D array of 10,000 images, each 224 x 224
Xy_array = np.asarray(lst)
f = open('./data/data.npy', 'wb')
np.save(f, Xy_array)
f.close()
print('done')