fix crash in generate._transparency_check_and_warning()

This commit is contained in:
Lincoln Stein 2022-10-06 21:00:27 -04:00
parent 75165957c9
commit c6a7be63b8
2 changed files with 1 additions and 3 deletions

View File

@ -13,8 +13,6 @@ class Outpaint(object):
seed = old_opt.seed
prompt = old_opt.prompt
print(f'DEBUG: old seed={seed}, old prompt = {prompt}')
def wrapped_callback(img,seed,**kwargs):
image_callback(img,seed,use_prefix=prefix,**kwargs)

View File

@ -952,7 +952,7 @@ class Generate:
colored += 1
return colored == 0
def _transparency_check_and_warning(image, mask):
def _transparency_check_and_warning(self,image, mask):
if not mask:
print(
'>> Initial image has transparent areas. Will inpaint in these regions.')