|
|
@ -815,9 +815,13 @@ def common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, |
|
|
|
if "noise_mask" in latent: |
|
|
|
if "noise_mask" in latent: |
|
|
|
noise_mask = latent["noise_mask"] |
|
|
|
noise_mask = latent["noise_mask"] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pbar = comfy.utils.ProgressBar(steps) |
|
|
|
|
|
|
|
def callback(step, x0, x): |
|
|
|
|
|
|
|
pbar.update_absolute(step + 1) |
|
|
|
|
|
|
|
|
|
|
|
samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, |
|
|
|
samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, |
|
|
|
denoise=denoise, disable_noise=disable_noise, start_step=start_step, last_step=last_step, |
|
|
|
denoise=denoise, disable_noise=disable_noise, start_step=start_step, last_step=last_step, |
|
|
|
force_full_denoise=force_full_denoise, noise_mask=noise_mask) |
|
|
|
force_full_denoise=force_full_denoise, noise_mask=noise_mask, callback=callback) |
|
|
|
out = latent.copy() |
|
|
|
out = latent.copy() |
|
|
|
out["samples"] = samples |
|
|
|
out["samples"] = samples |
|
|
|
return (out, ) |
|
|
|
return (out, ) |
|
|
|