Skip to content

Commit

Permalink
Fix ignored face_alingment parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mike9251 committed Jul 15, 2022
1 parent 4b69cba commit 65d1efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def run_detect_align(self, image: np.ndarray, for_id: bool = False) -> Tuple[
kps = kps[None, ...]

align_imgs, transforms = align_face(image, kps, crop_size=self.crop_size,
mode=self.face_alignment_type)
mode='ffhq' if self.face_alignment_type == FaceAlignmentType.FFHQ else 'none')

return align_imgs, transforms, detection.score

Expand Down

0 comments on commit 65d1efa

Please sign in to comment.