From 48e73ad22d036a5a8b98613b4a3889cc0784e6de Mon Sep 17 00:00:00 2001 From: ptlzon <157567305+ptlzon@users.noreply.github.com> Date: Thu, 30 May 2024 09:24:45 +0900 Subject: [PATCH] Update how_to_use_nnunet.md Add how to deploy and run your pretrained model for inference on new images. --- documentation/how_to_use_nnunet.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/documentation/how_to_use_nnunet.md b/documentation/how_to_use_nnunet.md index 0cfe07139..290ae8873 100644 --- a/documentation/how_to_use_nnunet.md +++ b/documentation/how_to_use_nnunet.md @@ -290,6 +290,13 @@ from the respective training). You can pick these files from any of the ensemble ## How to run inference with pretrained models See [here](run_inference_with_pretrained_models.md) +## How to Deploy and Run Inference with YOUR Pretrained Models +To facilitate the use of pretrained models on a different computer for inference purposes, follow these streamlined steps: +1. Exporting the Model: Utilize the `nnUNetv2_export_model_to_zip` function to package your trained model into a .zip file. This file will contain all necessary model files. +2. Transferring the Model: Transfer the .zip file to the target computer where inference will be performed. +3. Importing the Model: On the new PC, use the `nnUNetv2_install_pretrained_model_from_zip` to load the pretrained model from the .zip file. +Please note that both computers must have nnU-Net installed along with all its dependencies to ensure compatibility and functionality of the model. + [//]: # (## Examples) [//]: # ()