|
|
|
@ -380,6 +380,7 @@ class SamplerCustom:
|
|
|
|
|
def sample(self, model, add_noise, noise_seed, cfg, positive, negative, sampler, sigmas, latent_image):
|
|
|
|
|
latent = latent_image
|
|
|
|
|
latent_image = latent["samples"]
|
|
|
|
|
latent_image = comfy.sample.fix_empty_latent_channels(model, latent_image)
|
|
|
|
|
if not add_noise:
|
|
|
|
|
noise = Noise_EmptyNoise().generate_noise(latent)
|
|
|
|
|
else:
|
|
|
|
@ -538,6 +539,7 @@ class SamplerCustomAdvanced:
|
|
|
|
|
def sample(self, noise, guider, sampler, sigmas, latent_image):
|
|
|
|
|
latent = latent_image
|
|
|
|
|
latent_image = latent["samples"]
|
|
|
|
|
latent_image = comfy.sample.fix_empty_latent_channels(guider.model_patcher, latent_image)
|
|
|
|
|
|
|
|
|
|
noise_mask = None
|
|
|
|
|
if "noise_mask" in latent:
|
|
|
|
|