Skip to content

Commit

Permalink
typofix: tools.mask
Browse files Browse the repository at this point in the history
  • Loading branch information
torzdf committed Sep 30, 2022
1 parent 765e385 commit 856067b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/mask/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,9 +499,9 @@ def _create_image(self, detected_face: DetectedFace, mask_type: str) -> np.ndarr
detected_face.load_aligned(detected_face.image, centering=centering, force=True)
face = detected_face.aligned.face
assert face is not None
mask = cv2.resize(detected_face.mask[mask_type].mask,
(face.shape[1], face.shape[0]),
interpolation=cv2.INTER_CUBIC)[..., None]
imask = cv2.resize(detected_face.mask[mask_type].mask,
(face.shape[1], face.shape[0]),
interpolation=cv2.INTER_CUBIC)[..., None]
else:
face = np.array(detected_face.image) # cv2 fails if this comes as imageio.core.Array
imask = mask.get_full_frame_mask(face.shape[1], face.shape[0])
Expand Down

0 comments on commit 856067b

Please sign in to comment.