Using a model trained with nnunet for predicting without using nnunet #773
Answered
by
FabianIsensee
arseneaultj
asked this question in
Q&A
-
Hi everyone, Is there a way to use a model trained with nnunet for predicting without using nnunet? Basically applying the weights on a model with the same architecture using Pytorch? If yes, is there any preprocessing that needs to be done before the predictions? |
Beta Was this translation helpful? Give feedback.
Answered by
FabianIsensee
Oct 12, 2021
Replies: 1 comment
-
You need to do the same preprocessing as nnU-Net does. Exactly. So it's best to use nnU-Net code for that. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
FabianIsensee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to do the same preprocessing as nnU-Net does. Exactly. So it's best to use nnU-Net code for that.
If you follow the inference pipeline you can see how the model is restored from a checkpoint. You can then export it however you like, for example as onnx
Best,
Fabian