aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_models.py
diff options
context:
space:
mode:
authorcarat-johyun <johyun@carat.im>2023-03-23 05:28:08 +0000
committercarat-johyun <johyun@carat.im>2023-03-23 05:28:08 +0000
commit92e173d414e5441ff34e5a6b12d5a766e86b0c36 (patch)
tree7811e9b7fdeceb29c3fc39895028c975a356ba10 /modules/sd_models.py
parenta9fed7c364061ae6efb37f797b6b522cb3cf7aa2 (diff)
downloadstable-diffusion-webui-gfx803-92e173d414e5441ff34e5a6b12d5a766e86b0c36.tar.gz
stable-diffusion-webui-gfx803-92e173d414e5441ff34e5a6b12d5a766e86b0c36.tar.bz2
stable-diffusion-webui-gfx803-92e173d414e5441ff34e5a6b12d5a766e86b0c36.zip
fix variable typo
Diffstat (limited to 'modules/sd_models.py')
-rw-r--r--modules/sd_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py
index f0cb1240..6410b09a 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -178,7 +178,7 @@ def select_checkpoint():
return checkpoint_info
-chckpoint_dict_replacements = {
+checkpoint_dict_replacements = {
'cond_stage_model.transformer.embeddings.': 'cond_stage_model.transformer.text_model.embeddings.',
'cond_stage_model.transformer.encoder.': 'cond_stage_model.transformer.text_model.encoder.',
'cond_stage_model.transformer.final_layer_norm.': 'cond_stage_model.transformer.text_model.final_layer_norm.',
@@ -186,7 +186,7 @@ chckpoint_dict_replacements = {
def transform_checkpoint_dict_key(k):
- for text, replacement in chckpoint_dict_replacements.items():
+ for text, replacement in checkpoint_dict_replacements.items():
if k.startswith(text):
k = replacement + k[len(text):]