aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authordrhead <runemaste644@gmail.com>2023-12-02 19:06:56 +0000
committerdrhead <runemaste644@gmail.com>2023-12-02 19:06:56 +0000
commitdc1adeecdd02f3fb910481e808a6d60a77100fea (patch)
treee29d46e91eff89b6fda9399a1e3c5109d52c26a7 /modules
parent4a43334376d9e116f7a1446f042f9af9c0484fc6 (diff)
downloadstable-diffusion-webui-gfx803-dc1adeecdd02f3fb910481e808a6d60a77100fea.tar.gz
stable-diffusion-webui-gfx803-dc1adeecdd02f3fb910481e808a6d60a77100fea.tar.bz2
stable-diffusion-webui-gfx803-dc1adeecdd02f3fb910481e808a6d60a77100fea.zip
Create alphas_cumprod_original on full precision path
Diffstat (limited to 'modules')
-rw-r--r--modules/sd_models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py
index de80a493..976c7d5b 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -374,6 +374,7 @@ def load_model_weights(model, checkpoint_info: CheckpointInfo, state_dict, timer
if shared.cmd_opts.no_half:
model.float()
+ model.alphas_cumprod_original = alphas_cumprod
devices.dtype_unet = torch.float32
timer.record("apply float()")
else: