This repo acts as a means to evaluate the runtime of the deepseg
utility provided by the Spinal Cord Toolbox, allowing users to estimate the approximate time required to run an analysis.
- Python 3.7 or newer
- A working installation of Spinal Cord Toolbox
- Find and copy the path to your SCT install bin (i.e.
/user_name/spinalcordtoolbox/bin
); this path will be referred to assct_bin_path
from here on.- If on Linux/macOS, you can find this with the
which sct_testing
command.
- If on Linux/macOS, you can find this with the
- Run
setup.py -s {sct_bin_path}
.- This downloads a file, and resamples it a number of times to standardize our estimates. This can take a while!
- Decide on the
deepseg
task you want to evaluate; this is denoted as thetask_id
in code snippets below.- You can get a list of available tasks by calling
sct_deepseg -list-tasks
- You can get a list of available tasks by calling
- Run
run.py -s {sct_bin_path} -t {task_id}
and let it complete- How long this takes depends substantially on the model being used; be patient!