Prevent outcrop error when no callback is supplied

This commit is contained in:
spezialspezial 2022-11-02 01:52:42 +01:00 committed by Lincoln Stein
parent 0f6aa7fe19
commit e332529fbd

View File

@ -32,7 +32,7 @@ class Outcrop(object):
result= self.generate.prompt2image(
orig_opt.prompt,
seed = orig_opt.seed, # uncomment to make it deterministic
seed = orig_opt.seed, # uncomment to make it non-deterministic
sampler = self.generate.sampler,
steps = opt.steps,
cfg_scale = opt.cfg_scale,
@ -41,7 +41,7 @@ class Outcrop(object):
height = extended_image.height,
init_img = extended_image,
strength = 0.90,
image_callback = wrapped_callback,
image_callback = wrapped_callback if image_callback else None,
seam_size = opt.seam_size or 96,
seam_blur = opt.seam_blur or 16,
seam_strength = opt.seam_strength or 0.7,