diff options
author | qiuwen.wang <chu8129@users.noreply.github.com> | 2023-09-15 10:23:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 10:23:23 +0000 |
commit | 813535d38bbcdd8ccc51d0618a7d9fd353677bb9 (patch) | |
tree | 383bc88485ef3481130d96dc2432198045f37e43 /modules | |
parent | 5ef669de080814067961f28357256e8fe27544f4 (diff) | |
download | stable-diffusion-webui-gfx803-813535d38bbcdd8ccc51d0618a7d9fd353677bb9.tar.gz stable-diffusion-webui-gfx803-813535d38bbcdd8ccc51d0618a7d9fd353677bb9.tar.bz2 stable-diffusion-webui-gfx803-813535d38bbcdd8ccc51d0618a7d9fd353677bb9.zip |
use dict[key]=model; did not update orderdict order, should use move to end
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sd_models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py index 930d0bee..6d17dd3c 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")
+ checkpoints_loaded.move_to_end(checkpoint_info)
return checkpoints_loaded[checkpoint_info]
print(f"Loading weights [{sd_model_hash}] from {checkpoint_info.filename}")
|