mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Merge pull request #10451 from dennissheng/master
not clear checkpoints cache when config changes
This commit is contained in:
commit
4071fa4a12
@ -540,7 +540,6 @@ def reload_model_weights(sd_model=None, info=None):
|
||||
|
||||
if sd_model is None or checkpoint_config != sd_model.used_config:
|
||||
del sd_model
|
||||
checkpoints_loaded.clear()
|
||||
load_model(checkpoint_info, already_loaded_state_dict=state_dict)
|
||||
return model_data.sd_model
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user