|
|
@ -44,7 +44,7 @@ def load_state_dict(checkpoint_path, use_ema=False):
|
|
|
|
raise FileNotFoundError()
|
|
|
|
raise FileNotFoundError()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def load_checkpoint(model, checkpoint_path, use_ema=False, strict=False):
|
|
|
|
def load_checkpoint(model, checkpoint_path, use_ema=False, strict=True):
|
|
|
|
state_dict = load_state_dict(checkpoint_path, use_ema)
|
|
|
|
state_dict = load_state_dict(checkpoint_path, use_ema)
|
|
|
|
model.load_state_dict(state_dict, strict=strict)
|
|
|
|
model.load_state_dict(state_dict, strict=strict)
|
|
|
|
|
|
|
|
|
|
|
|