aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-30 16:16:31 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-30 16:16:31 +0300
commit02038036ff571e0f04a94c3e279609666e239dec (patch)
treea355d520e78d4aac48b33b92fe68b46431b2e6b7 /modules
parentcc53db6652b11e6f7bca42c3aa93bd6761ed3d3f (diff)
make it so that VAE NaNs autodetection also works during first pass of hires fix
Diffstat (limited to 'modules')
-rw-r--r--modules/processing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 3190b964..0677de81 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 = decode_first_stage(self.sd_model, samples)
+ decoded_samples = torch.stack(decode_latent_batch(self.sd_model, samples, target_device=devices.cpu, check_for_nans=True))
else:
decoded_samples = None