aboutsummaryrefslogtreecommitdiff
path: root/modules/sd_models.py
diff options
context:
space:
mode:
author王秋文/qwwang <wangqiuwen@xinyu668.com>2023-09-18 16:45:42 +0800
committer王秋文/qwwang <wangqiuwen@xinyu668.com>2023-09-18 16:45:42 +0800
commit8e355fbd7552f1a7f5124c4685d6fa36f3d0ede1 (patch)
tree57d3c796730c279652f8e0266210ad622a75b0f9 /modules/sd_models.py
parent813535d38bbcdd8ccc51d0618a7d9fd353677bb9 (diff)
fix
Diffstat (limited to 'modules/sd_models.py')
-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 6d17dd3c..eedb38c6 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -309,6 +309,7 @@ def get_checkpoint_state_dict(checkpoint_info: CheckpointInfo, timer):
if checkpoint_info in checkpoints_loaded:
# use checkpoint cache
print(f"Loading weights [{sd_model_hash}] from cache")
+ # move to end as latest
checkpoints_loaded.move_to_end(checkpoint_info)
return checkpoints_loaded[checkpoint_info]