A custom blending function can be provided by p, replacing the use of soft_inpainting.

This commit is contained in:
CodeHatchling
2023-12-06 16:54:42 -07:00
parent 38864816fa
commit e90d4334ad
2 changed files with 17 additions and 18 deletions
-1
View File
@@ -277,7 +277,6 @@ class Sampler:
self.model_wrap_cfg.p = p
self.model_wrap_cfg.mask = p.mask if hasattr(p, 'mask') else None
self.model_wrap_cfg.nmask = p.nmask if hasattr(p, 'nmask') else None
self.model_wrap_cfg.soft_inpainting = p.soft_inpainting if hasattr(p, 'soft_inpainting') else None
self.model_wrap_cfg.step = 0
self.model_wrap_cfg.image_cfg_scale = getattr(p, 'image_cfg_scale', None)
self.eta = p.eta if p.eta is not None else getattr(opts, self.eta_option_field, 0.0)