not clear checkpoints cache when config changes
This commit is contained in:
parent
89f9faa633
commit
54f657ffbc
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue