weights = np.fromfile(os.path.expanduser(config['weights']), dtype=float, count=-1, sep=',')