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

Change checkpoint_latest to checkpoint_best in inference script to match the priority in SCT #78

Open
yw7 opened this issue Oct 28, 2024 · 0 comments · May be fixed by #81
Open

Change checkpoint_latest to checkpoint_best in inference script to match the priority in SCT #78

yw7 opened this issue Oct 28, 2024 · 0 comments · May be fixed by #81

Comments

@yw7
Copy link
Collaborator

yw7 commented Oct 28, 2024

Here we have to change checkpoint_latest to checkpoint_best to match the priority in SCT:

checkpoint = 'checkpoint_final.pth' if (nnUNet_results / step1_dataset / f'{nnUNetTrainer}__{nnUNetPlans}__{configuration}' / f'fold_{fold}' / 'checkpoint_final.pth').is_file() else 'checkpoint_latest.pth'

checkpoint = 'checkpoint_final.pth' if (nnUNet_results / step2_dataset / f'{nnUNetTrainer}__{nnUNetPlans}__{configuration}' / f'fold_{fold}' / 'checkpoint_final.pth').is_file() else 'checkpoint_latest.pth'

yw7 added a commit that referenced this issue Nov 15, 2024
Fixes #78

Change `checkpoint_latest.pth` to `checkpoint_best.pth` in the inference script.

* Update line 301 in `totalspineseg/inference.py` to use `checkpoint_best.pth` instead of `checkpoint_latest.pth`.
* Update line 552 in `totalspineseg/inference.py` to use `checkpoint_best.pth` instead of `checkpoint_latest.pth`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/neuropoly/totalspineseg/issues/78?shareId=XXXX-XXXX-XXXX-XXXX).
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

Successfully merging a pull request may close this issue.

1 participant