force disable `reutrn_grid` #62

main
kex0 2023-05-28 02:23:36 +02:00
parent fd7d2ca826
commit b6fdff6549
1 changed files with 3 additions and 0 deletions

View File

@ -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
@ -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