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