(base) baobeibeixiaoshitou@xiatiandeMacBook-Pro dmri % sct_register_multimodal -i "${SCT_DIR}/data/PAM50/template/PAM50_t1.nii.gz" \
-iseg "${SCT_DIR}/data/PAM50/template/PAM50_cord.nii.gz" \
-d dmri_moco_dwi_mean.nii.gz \
-dseg dmri_moco_dwi_mean_seg.nii.gz \
-initwarp ../t2s/warp_template2t2s.nii.gz \
-initwarpinv ../t2s/warp_t2s2template.nii.gz \
-owarp warp_template2dmri.nii.gz \
-owarpinv warp_dmri2template.nii.gz \
-param step=1,type=seg,algo=centermass:step=2,type=seg,algo=bsplinesyn,slicewise=1,iter=3 \
-qc ~/qc_singleSubj
Traceback (most recent call last):
File "/Users/baobeibeixiaoshitou/sct_6.1/spinalcordtoolbox/scripts/sct_register_multimodal.py", line 35, in <module>
from spinalcordtoolbox.registration.algorithms import Paramreg, ParamregMultiStep
File "/Users/baobeibeixiaoshitou/sct_6.1/spinalcordtoolbox/registration/algorithms.py", line 21, in <module>
import torch
File "/Users/baobeibeixiaoshitou/sct_6.1/python/envs/venv_sct/lib/python3.9/site-packages/torch/__init__.py", line 199, in <module>
from torch._C import * # noqa: F403
ImportError: dlopen(/Users/baobeibeixiaoshitou/sct_6.1/python/envs/venv_sct/lib/python3.9/site-packages/torch/_C.cpython-39-darwin.so, 2): Library not loaded: @loader_path/libtorch_cpu.dylib
Referenced from: /Users/baobeibeixiaoshitou/sct_6.1/python/envs/venv_sct/lib/python3.9/site-packages/torch/lib/libtorch_python.dylib
Reason: image not found
(base) baobeibeixiaoshitou@xiatiandeMacBook-Pro dmri %
Hi @DeshengKong,
The first thing I would suggest to try is re-installing SCT v6.1.
If this does not fix the issue, then could you please upload the file install_sct_log.txt
? You can find this file in this location: /Users/baobeibeixiaoshitou/sct_6.1/
.
Kind regards,
Joshua
Ok ,thank you
Given that you were able to successfully install SCT in this separate post, I will mark this post as resolved.