do sampler calculations on CPU

This commit is contained in:
AUTOMATIC1111 2024-06-29 08:05:35 +03:00
parent 7e4b06fcd0
commit 1394ecaf36
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class KDiffusionSampler(sd_samplers_common.Sampler):
if discard_next_to_last_sigma:
sigmas = torch.cat([sigmas[:-2], sigmas[-1:]])
return sigmas
return sigmas.cpu()
def sample_img2img(self, p, x, noise, conditioning, unconditional_conditioning, steps=None, image_conditioning=None):
steps, t_enc = sd_samplers_common.setup_img2img_steps(p, steps)