mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-22 23:26:48 -08:00
use dict[key]=model; did not update orderdict order, should use move to end
This commit is contained in:
@@ -309,6 +309,7 @@ def get_checkpoint_state_dict(checkpoint_info: CheckpointInfo, timer):
|
|||||||
if checkpoint_info in checkpoints_loaded:
|
if checkpoint_info in checkpoints_loaded:
|
||||||
# use checkpoint cache
|
# use checkpoint cache
|
||||||
print(f"Loading weights [{sd_model_hash}] from cache")
|
print(f"Loading weights [{sd_model_hash}] from cache")
|
||||||
|
checkpoints_loaded.move_to_end(checkpoint_info)
|
||||||
return checkpoints_loaded[checkpoint_info]
|
return checkpoints_loaded[checkpoint_info]
|
||||||
|
|
||||||
print(f"Loading weights [{sd_model_hash}] from {checkpoint_info.filename}")
|
print(f"Loading weights [{sd_model_hash}] from {checkpoint_info.filename}")
|
||||||
|
|||||||
Reference in New Issue
Block a user