diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-31 13:20:26 +0300 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-31 13:20:26 +0300 |
commit | c09bc2c60856ca1ab2243386176badf909affdbe (patch) | |
tree | 30d90ef3a44910aab5a80df5d1f37c15ce6e94f6 /modules/processing.py | |
parent | 4d9b096663288e2aa738723fa63950f3d41f6170 (diff) |
fix "clamp_scalar_cpu" not implemented for 'Half'
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 1f0c0b3b..f8f8bddc 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -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
|