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

TypeError: No_Logger.__init__() got an unexpected keyword argument 'prefix' #23

Closed NathanMolinier closed 2 weeks ago

NathanMolinier commented 2 weeks ago

Description

I tried to use spineps on the last commit (tag: v1.0.9) and got this error.

Screenshot 2024-06-19 at 13 28 44

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 the current commit git checkout v1.0.9
  6. Run spineps sample -i ./test/sub-amu01_T1w.nii.gz -model_semantic t1w_segmentor -model_instance inst_vertebra_3.0 -dn derivatives -cpu

Environment

MacOS Sonoma Version 14.2

Hendrik-code commented 2 weeks ago

ahh interesting. Then your TPTBox package version is too old. The requirements of spineps should reflect this. But gonna check this tomorrow. Run pip install -U TPTBox

NathanMolinier commented 2 weeks ago

It worked thanks !