-
Dear MONAI team, I am trying to see how is possible to modify the inference mode that it would be possible to write on Command Prompt the name of inference script, the name of input image and then receive the output predicted mask. So should look something like this: python predict.py -i image.nii.gz -o output.nii.gz At the moment I can use just "python predict.py" command as the path of the testing images are in my code already. This is the python script of my inference prediction using one image: https://github.com/HripsimeS/Computer-Vision/blob/main/predict.py I think one of the ways to do it's using Argument Parser. Can you please let me know how I should modify my code to be able to select one single image from Command Prompt and get its predicted mask. Look forward to hearing from you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @HripsimeS , Thanks for your interest and experiments. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Hi @HripsimeS ,
Thanks for your interest and experiments.
Actually, we are developing a very important feature for the next release: MONAI bundle, which is designed for model package.
Your requirement is exactly one of its CLI command line features. For more details, you can take a look this tutorial:
https://github.com/Project-MONAI/tutorials/blob/master/modules/bundles/get_started.ipynb
Welcome to share your feedback if you are interested to try this experimental feature.
Thanks in advance.