def load_id_files(id_features_dir):
    id_npy = {}
    for path in glob.glob('{}/*.npy'.format(id_features_dir)):
        name = os.path.splitext(os.path.basename(path))[0]
        id_npy[name] = np.load(path)
    return id_npy
def load_id_files(id_features_dir):
    id_npy = {}
    for path in glob.glob('{}/*.npy'.format(id_features_dir)):
        name = os.path.splitext(os.path.basename(path))[0]
        id_npy[name] = np.load(path)
    return id_npy