i prepared an image dataset with Numpy array and i need to store them as efficient as possible
ill give you an example
for 6 image its like 2.2 MB
and after using Numpy compressed format its over 7.5 MB
this is what i come up with
np.savez_compressed("./img.npz",images) # array of images
any way to improve that
.npzis also fine to save compressed numpy arrays, but I'd recommend you to take a look once at parquet file format. It compresses very well and data read/write speed is also high and memory footprint is less compared to other several file formats.