Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
torzdf committed Nov 15, 2019
1 parent 47681a8 commit e4b7717
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions faceswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import lib.cli as cli

if sys.version_info[0] < 3:
raise Exception("This program requires at least python3.2")
if sys.version_info[0] == 3 and sys.version_info[1] < 2:
raise Exception("This program requires at least python3.2")
raise Exception("This program requires at least python3.6")
if sys.version_info[0] == 3 and sys.version_info[1] < 6:
raise Exception("This program requires at least python3.6")


def bad_args(args):
Expand Down
2 changes: 1 addition & 1 deletion plugins/extract/align/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_center_scale(self, detected_faces):
center_scale[index, :, 0] = np.full(68, x_center, dtype='float32')
center_scale[index, :, 1] = np.full(68, y_center, dtype='float32')
center_scale[index, :, 2] = np.full(68, scale, dtype='float32')
logger.trace("Calculated center and scale: %s, %s", center_scale)
logger.trace("Calculated center and scale: %s", center_scale)
return center_scale

def crop(self, batch): # pylint:disable=too-many-locals
Expand Down

0 comments on commit e4b7717

Please sign in to comment.