Skip to content

Commit

Permalink
force disable reutrn_grid #62
Browse files Browse the repository at this point in the history
  • Loading branch information
kex0 committed May 28, 2023
1 parent fd7d2ca commit b6fdff6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/batch_face_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ def faceSwap(p, masks, image, finishedImages, invertMask, forced_filename, outpu
inpainting_fill = 1

wasGrid = p.do_not_save_grid
wasReturnGrid = opts.return_grid
opts.return_grid = False
p.do_not_save_grid = True
p.do_not_save_samples = True
index = 0
Expand Down Expand Up @@ -376,6 +378,7 @@ def faceSwap(p, masks, image, finishedImages, invertMask, forced_filename, outpu

p.do_not_save_samples = False
p.do_not_save_grid = wasGrid
opts.return_grid = wasReturnGrid

return finishedImages

Expand Down

0 comments on commit b6fdff6

Please sign in to comment.