mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-12 04:10:42 -08:00
make it so that VAE NaNs autodetection also works during first pass of hires fix
This commit is contained in:
parent
cc53db6652
commit
02038036ff
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 = 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue