fix for broken checkpoint merger
This commit is contained in:
parent
9931c0bd48
commit
f894dd552f
@ -148,7 +148,10 @@ def get_state_dict_from_checkpoint(pl_sd):
|
|||||||
if new_key is not None:
|
if new_key is not None:
|
||||||
sd[new_key] = v
|
sd[new_key] = v
|
||||||
|
|
||||||
return sd
|
pl_sd.clear()
|
||||||
|
pl_sd.update(sd)
|
||||||
|
|
||||||
|
return pl_sd
|
||||||
|
|
||||||
|
|
||||||
def load_model_weights(model, checkpoint_info):
|
def load_model_weights(model, checkpoint_info):
|
||||||
|
Loading…
Reference in New Issue
Block a user