diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-30 13:16:31 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-30 13:16:31 +0000 |
commit | 02038036ff571e0f04a94c3e279609666e239dec (patch) | |
tree | a355d520e78d4aac48b33b92fe68b46431b2e6b7 | |
parent | cc53db6652b11e6f7bca42c3aa93bd6761ed3d3f (diff) | |
download | stable-diffusion-webui-gfx803-02038036ff571e0f04a94c3e279609666e239dec.tar.gz stable-diffusion-webui-gfx803-02038036ff571e0f04a94c3e279609666e239dec.tar.bz2 stable-diffusion-webui-gfx803-02038036ff571e0f04a94c3e279609666e239dec.zip |
make it so that VAE NaNs autodetection also works during first pass of hires fix
-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 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
|