Getting Started¶
Installation¶
Currently, SpineNet can only be installed by cloning the git repository:
git clone git@github.com:rwindsor1/SpineNet.git
Once this is done, you can then install a minimal python virtual enviroment to run the project.
python -m venv spinenet-venv
source spinenet-venv/bin/activate
pip install -r requirements.txt
Finally, add spinenet to your python path so it can be imported into scripts:
export PYTHONPATH=$PYTHONPATH:/path/to/SpineNet
Download Weights¶
To use any of the neural networks SpineNet relies on, you must first download the weights from our public server and insert them at the location expected by the code.
This can be done automatically by starting a python environment and running the following script:
import python
spinenet.download_weights(verbose=True)
- spinenet.download_weights(verbose: bool = False, force: bool = False) None¶
Download SpineNet model weights from public server and save to a location where the pipeline expects them (./spinenet/weights/).
- Parameters
verbose (bool, optional) – Whether to print out extra information about the file downloads.
force (bool, optional) – Set to force download weights even if they already have been locally downloaded