not clear checkpoints cache when config changes

This commit is contained in:
dennissheng 2023-05-17 10:47:02 +08:00
parent 89f9faa633
commit 54f657ffbc
1 changed files with 0 additions and 1 deletions

View File

@ -538,7 +538,6 @@ def reload_model_weights(sd_model=None, info=None):
if sd_model is None or checkpoint_config != sd_model.used_config: if sd_model is None or checkpoint_config != sd_model.used_config:
del sd_model del sd_model
checkpoints_loaded.clear()
load_model(checkpoint_info, already_loaded_state_dict=state_dict) load_model(checkpoint_info, already_loaded_state_dict=state_dict)
return model_data.sd_model return model_data.sd_model