@@ -50,7 +50,7 @@ def go(model,bkey):
50
50
optimizer .load_state_dict (checkpoint_dict ['optimizer' ])
51
51
# except:
52
52
# traceback.print_exc()
53
- logger .info ("Loaded checkpoint '{}' (iteration {})" .format (checkpoint_path , iteration ))
53
+ logger .info ("Loaded checkpoint '{}' (epoch {})" .format (checkpoint_path , iteration ))
54
54
return model , optimizer , learning_rate , iteration
55
55
56
56
@@ -80,7 +80,7 @@ def go(model,bkey):
80
80
# model.module.load_state_dict(new_state_dict)
81
81
# else:
82
82
# model.load_state_dict(new_state_dict)
83
- # logger.info("Loaded checkpoint '{}' (iteration {})" .format(
83
+ # logger.info("Loaded checkpoint '{}' (epoch {})" .format(
84
84
# checkpoint_path, iteration))
85
85
# return model, optimizer, learning_rate, iteration
86
86
def load_checkpoint (checkpoint_path , model , optimizer = None ,load_opt = 1 ):
@@ -116,7 +116,7 @@ def load_checkpoint(checkpoint_path, model, optimizer=None,load_opt=1):
116
116
optimizer .load_state_dict (checkpoint_dict ['optimizer' ])
117
117
# except:
118
118
# traceback.print_exc()
119
- logger .info ("Loaded checkpoint '{}' (iteration {})" .format (checkpoint_path , iteration ))
119
+ logger .info ("Loaded checkpoint '{}' (epoch {})" .format (checkpoint_path , iteration ))
120
120
return model , optimizer , learning_rate , iteration
121
121
122
122
0 commit comments