Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZPdesu authored Dec 20, 2021
1 parent 37f62f7 commit 9af131b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def main(args):
ii2s = Embedding(args)

##### Option 1: input folder
# ii2s.invert_images_in_W_space()
# ii2s.invert_images_in_W()
# ii2s.invert_images_in_FS()

##### Option 2: image path
# ii2s.invert_images_in_W('input/face/28.png')
Expand All @@ -39,9 +40,9 @@ def main(args):
ii2s.invert_images_in_FS([*im_set])

align = Alignment(args)
align.align_images(im_path1, im_path2, align_more_region=True)
align.align_images(im_path1, im_path2, align_more_region=False)
if im_path2 != im_path3:
align.align_images(im_path1, im_path3, align_more_region=True, save_intermediate=False)
align.align_images(im_path1, im_path3, align_more_region=False, save_intermediate=False)

blend = Blending(args)
blend.blend_images(im_path1, im_path2, im_path3)
Expand Down Expand Up @@ -110,4 +111,4 @@ def main(args):


args = parser.parse_args()
main(args)
main(args)

0 comments on commit 9af131b

Please sign in to comment.