Hendrik-code / spineps

This is a segmentation pipeline to automatically, and robustly, segment the whole spine in T2w sagittal images.
Apache License 2.0
8 stars 1 forks source link

Not able to run spineps on MacOS using the flag `-cpu` #21

Closed NathanMolinier closed 1 week ago

NathanMolinier commented 2 weeks ago

Description

I'm trying to run spineps on my mac using the flag the recently added flag -cpu and I get an error.

Screenshot 2024-06-19 at 11 25 09

To reproduce

  1. Clone spineps
  2. Create a virtual environment using python=3.11
  3. Run pip install -e . in the venv
  4. Install torch using pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
  5. Checkout to a previous commit git checkout v1.0.8
  6. Run spineps sample -i ./test/sub-amu01_T1w.nii.gz -model_semantic t1w_segmentor -model_instance inst_vertebra_3.0 -dn derivatives -cpu
NathanMolinier commented 1 week ago

Fixed with #22