fix file name bug when saving
This commit is contained in:
parent
4e09f3b64a
commit
e019bd65de
@ -72,7 +72,7 @@ class YopoTrainer:
|
||||
self.eval_one_epoch(self.epoch_i)
|
||||
if save_interval is not None and (self.epoch_i + 1) % save_interval == 0:
|
||||
self.progress_log.console.log("Saving model...")
|
||||
policy_path = self.tensorboard_path + "/epoch{}.pth".format(epoch + 1, 0)
|
||||
policy_path = self.tensorboard_path + "/epoch{}.pth".format(self.epoch_i + 1, 0)
|
||||
torch.save(self.policy.state_dict(), policy_path)
|
||||
self.progress_log.console.log("Train YOPO Finish!")
|
||||
self.progress_log.remove_task(total_progress)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user