diff options
-rwxr-xr-x | train.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -213,8 +213,8 @@ def main(): faces_train, faces_test, target_train, target_test = test_split(n_faces, raw_faces, args.split, args.seed) if args.classifyalt: - faces_train = faces_train.reshape(n_faces, 8, n_pixels) - target_train = target_train.reshape(n_faces, 8) + faces_train = faces_train.reshape(n_faces, int(faces_train.shape[0]/n_faces), n_pixels) + target_train = target_train.reshape(n_faces, int(target_train.shape[0]/n_faces)) accuracy = np.zeros(n_faces) distances = np.zeros((n_faces, faces_test.shape[0])) |