Skip to content

Commit

Permalink
small clean-up on face recognizer
Browse files Browse the repository at this point in the history
  • Loading branch information
iasonth95 committed Mar 19, 2024
1 parent 9103396 commit 93b9647
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def train(self, face_representation: np.ndarray, name: str) -> None:

def save_trained_faces(self, file_name):
pickle.dump(self._trained_faces, file_name)

def restore_trained_faces(self, file_name):
print(file_name)
self._trained_faces = pickle.load(file_name)
self._trained_faces = pickle.load(file_name)

0 comments on commit 93b9647

Please sign in to comment.