diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-10 14:03:45 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-10 14:03:45 +0000 |
commit | 8f1efdc130cf7ff47cb8d3722cdfc0dbeba3069e (patch) | |
tree | 6f7c8036ee023748a025737491a7cc8120892c59 /modules/processing.py | |
parent | 7349088d32b080f64058b6e5de5f0380a71ecd09 (diff) | |
download | stable-diffusion-webui-gfx803-8f1efdc130cf7ff47cb8d3722cdfc0dbeba3069e.tar.gz stable-diffusion-webui-gfx803-8f1efdc130cf7ff47cb8d3722cdfc0dbeba3069e.tar.bz2 stable-diffusion-webui-gfx803-8f1efdc130cf7ff47cb8d3722cdfc0dbeba3069e.zip |
--no-half-vae pt2
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py index ec8651ae..50ba4fc5 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -405,8 +405,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: # use the image collected previously in sampler loop
samples_ddim = shared.state.current_latent
- samples_ddim = samples_ddim.to(devices.dtype)
-
+ samples_ddim = samples_ddim.to(devices.dtype_vae)
x_samples_ddim = decode_first_stage(p.sd_model, samples_ddim)
x_samples_ddim = torch.clamp((x_samples_ddim + 1.0) / 2.0, min=0.0, max=1.0)
|