Skip to content

Commit

Permalink
#15 disable grid generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kex0 committed Jan 29, 2023
1 parent 337fff0 commit a6a0512
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 @@ -779,6 +779,8 @@ def switchInvertMask(invertMask: bool):

def run(self, p, overrideDenoising, overrideMaskBlur, path, searchSubdir, divider, howSplit, saveMask, pathToSave, viewResults, saveNoFace, onlyMask, invertMask, singleMaskPerImage, countFaces, maskSize, keepOriginalName, pathExisting, pathMasksExisting, pathToSaveExisting, selectedTab):
comments = {}
wasGrid = p.do_not_save_grid
p.do_not_save_grid = False
def infotext(iteration=0, position_in_batch=0):
if p.all_prompts == None:
p.all_prompts = [p.prompt]
Expand All @@ -802,5 +804,6 @@ def infotext(iteration=0, position_in_batch=0):

all_images += finishedImages
proc = Processed(p, all_images)
p.do_not_save_grid = wasGrid

return proc

0 comments on commit a6a0512

Please sign in to comment.