Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou13 committed Jul 9, 2019
1 parent 7aee92c commit 437ef29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lcnn/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,16 @@ def validate(self):
"model_state_dict": self.model.state_dict(),
"best_mean_loss": self.best_mean_loss,
},
osp.join(self.out, "checkpoint_lastest.pth.tar"),
osp.join(self.out, "checkpoint_latest.pth.tar"),
)
shutil.copy(
osp.join(self.out, "checkpoint_lastest.pth.tar"),
osp.join(self.out, "checkpoint_latest.pth.tar"),
osp.join(npz, "checkpoint.pth.tar"),
)
if self.mean_loss < self.best_mean_loss:
self.best_mean_loss = self.mean_loss
shutil.copy(
osp.join(self.out, "checkpoint_lastest.pth.tar"),
osp.join(self.out, "checkpoint_latest.pth.tar"),
osp.join(self.out, "checkpoint_best.pth.tar"),
)

Expand Down
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def main():
# print("epoch_size (valid):", len(val_loader))

if resume_from:
checkpoint = torch.load(osp.join(resume_from, "checkpoint_lastest.pth.tar"))
checkpoint = torch.load(osp.join(resume_from, "checkpoint_latest.pth.tar"))

# 2. model
if M.backbone == "stacked_hourglass":
Expand Down

0 comments on commit 437ef29

Please sign in to comment.