aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-11-25 04:35:09 +0000
committerKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-11-25 04:35:09 +0000
commit40ac134c553ac824d4a96666bba14d550300daa5 (patch)
tree899aa6aadafc3e4a0ffc969b508460d1da27f2d5
parentf5d719d1f1baa775d838aa75d9af1971bcc78e8f (diff)
downloadstable-diffusion-webui-gfx803-40ac134c553ac824d4a96666bba14d550300daa5.tar.gz
stable-diffusion-webui-gfx803-40ac134c553ac824d4a96666bba14d550300daa5.tar.bz2
stable-diffusion-webui-gfx803-40ac134c553ac824d4a96666bba14d550300daa5.zip
Fix pre-fp8
-rw-r--r--modules/sd_models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py
index 0a7777f1..90437c87 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -357,7 +357,7 @@ def load_model_weights(model, checkpoint_info: CheckpointInfo, state_dict, timer
sd_model_hash = checkpoint_info.calculate_shorthash()
timer.record("calculate hash")
- if not check_fp8(model) and devices.fp8:
+ if devices.fp8:
# prevent model to load state dict in fp8
model.half()