Skip to content

Commit

Permalink
reverst
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqiuwen committed Oct 7, 2023
1 parent 76010a5 commit 770ee23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/sd_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ 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]

print(f"Loading weights [{sd_model_hash}] from {checkpoint_info.filename}")
Expand Down

0 comments on commit 770ee23

Please sign in to comment.