Skip to content

Commit

Permalink
Fixes final checkpoint save for wsj0-mix DeepClustering example.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyakava committed Dec 28, 2020
1 parent 1dc1c13 commit 4b0068d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/wsj0-mix/DeepClustering/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def main(conf):
with open(os.path.join(exp_dir, "best_k_models.json"), "w") as f:
json.dump(best_k, f, indent=0)
# Save last model for convenience
torch.save(system.model.state_dict(), os.path.join(exp_dir, "checkpoints/final.pth"))
torch.save(system.model.state_dict(), os.path.join(exp_dir, "best_model.pth"))


class ChimeraSystem(System):
Expand Down

0 comments on commit 4b0068d

Please sign in to comment.