Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you please guide me on how to resume interrupted training? #37

Open
limengran98 opened this issue Jun 24, 2024 · 1 comment
Open

Comments

@limengran98
Copy link

Dear Author,

Thank you for your excellent work. Could you please guide me on how to resume interrupted training? The provided resume functionality in the code seems not to be working.

Best regards,

@peterant330
Copy link
Collaborator

peterant330 commented Jul 29, 2024

Thanks for pointing out. We will fix it soon. You can refer to the file baselines/train.py first.

ckpt = torch.load(os.path.join(args.snapshot_path, "best.pth.tar"))
start_epoch = ckpt["epoch"]
best_loss = ckpt["best_val_loss"]
seg_net.load_state_dict(ckpt["network_dict"])
seg_net_opt.load_state_dict(ckpt["opt_dict"])
lr_scheduler.load_state_dict(ckpt["lr_scheduler_dict"])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants