mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-06 07:41:29 -08:00
do sampler calculations on CPU
This commit is contained in:
parent
7e4b06fcd0
commit
1394ecaf36
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue