Closed AFPET closed 3 years ago
Hi Adam,
pyapetnet_list_models
pyapetnet_predict_from_nifti
pyapetnet_predict_from_dicom
You can run all of them directly from the command line without starting python (but you must have activate your conda environment). If you run them with -h
you can see the help page of all scripts.
If you want to understand what is going on under the hood when doing predictions, you can run this notebook.
If you want to train your own models, you can have a look at this script.
Thank you for the reply, I still cannot get the package working. I use the conda powershell (py3k) to run the pretrained models you listed above and I get the error: { pyapetnet_predict_from_nifti : The term 'pyapetnet_predict_from_nifti' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.} Not sure what I am doing wrong.
sorry to hear that. Did you activate the virtual conda env where you install pyapetnet?
To test this you could e.g. execute:
python -c "import pyapetnet; print(pyapetnet.__file__)"
If this gives an error pyapetnet is not correctly installed.
all good thx.
Good to hear that. What was the issue?
Hello: pyapetnet installation seems to be complete, but I do not get as the installation instructions says "number of command line scripts all starting with pyapetnet* "
Instead, I get the following with no further actions.
{ (pyapetnet) PS C:\Users\User> python Python 3.8.10 (default, May 19 2021, 13:12:57) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information.
any idea what is the issue? thanks