from load import load_deep1b import numpy as np # chunk_size = 50000 dataset = read_fbin('../deep1b/base.10M.fbin', chunk_size=None) np.save('../deep1b/base.10M.npy', dataset) from to_fvecs import data_to_fvecs data_to_fvecs(dataset, '../deep1b/base.10M.fvecs')