How to select the checkpoint for predicting? #2817
-
When using the predict function, I would like to specify which checkpoint to use. For example, using checkpoint_best.pth instead of checkpoint_final.pth (or vice versa, I don't know which one is exactly used). I looked at the code but couldn't figure out where the checkpoint is loaded. The reason I want to do this is that I saved the checkpoints at every 50-epoch interval, and I want to gather the results using the predict function with the different checkpoints. The function provides a very nice summary.json that I want to use for the different versions. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should be able to by specifying it with the I made a nnUNetv2 CLI Catalog awhile ago. Here's the section on prediction. Hope this helps!
|
Beta Was this translation helpful? Give feedback.
@NiekPennings
You should be able to by specifying it with the
-chk
flag. It defaults to the final_checkpoint as well.I made a nnUNetv2 CLI Catalog awhile ago. Here's the section on prediction. Hope this helps!