mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-08 11:31:04 -08:00
fix "clamp_scalar_cpu" not implemented for 'Half'
This commit is contained in:
parent
4d9b096663
commit
c09bc2c608
1 changed files with 1 additions and 1 deletions
|
|
@ -1069,7 +1069,7 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
|
|||
return samples
|
||||
|
||||
if self.latent_scale_mode is None:
|
||||
decoded_samples = torch.stack(decode_latent_batch(self.sd_model, samples, target_device=devices.cpu, check_for_nans=True))
|
||||
decoded_samples = torch.stack(decode_latent_batch(self.sd_model, samples, target_device=devices.cpu, check_for_nans=True)).to(dtype=torch.float32)
|
||||
else:
|
||||
decoded_samples = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue