aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 12:28:50 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 12:28:50 +0300
commit570f42afd122405116b39b880cdb5163fd5ca3e2 (patch)
treebfe5dce49561009da46bcb19e7c6aef4b04d12e2 /modules
parent0198eaec455157a7dc1c950708d1ec95bcf4629c (diff)
possible fix for FP16 VAE failing in img2img SDXL
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 e7b10808..6567b3cf 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -1303,7 +1303,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
image = torch.from_numpy(batch_images)
image = 2. * image - 1.
- image = image.to(shared.device)
+ image = image.to(shared.device, dtype=devices.dtype_vae)
self.init_latent = self.sd_model.get_first_stage_encoding(self.sd_model.encode_first_stage(image))