sct_check_dependencies
--
Spinal Cord Toolbox (git-master-3dfd4f81f9e4364dab4d94894ea687a625dbdea5)
sct_check_dependencies
--
SCT info:
- version: git-master-3dfd4f81f9e4364dab4d94894ea687a625dbdea5
- path: /home/felixi/sct
OS: linux (Linux-4.4.0-18362-Microsoft-x86_64-with-debian-bullseye-sid)
CPU cores: Available: 12, Used by ITK functions: 12
RAM: Total: 8068MB, Used: 3624MB, Available: 4403MB
Check Python executable.............................[OK]
Using bundled python 3.6.12 |Anaconda, Inc.| (default, Sep 8 2020, 23:10:56)
[GCC 7.3.0] at /home/felixi/sct/python/envs/venv_sct/bin/python
Check if data are installed.........................[OK]
Check if colored is installed.......................[OK] (1.4.2)
Check if dipy is installed..........................[OK] (1.3.0)
Check if futures is installed.......................[OK]
Check if h5py is installed..........................
[OK] (3.1.0)
Check if Keras (2.1.5) is installed.................[OK] (2.1.5)
Check if ivadomed (2.6.1) is installed..............
Bad key "text.kerning_factor" on line 4 in
/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/matplotlib/mpl-data/stylelib/_classic_test_patch.mplstyle.
You probably need to get an updated matplotlibrc file from
http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template
or from the matplotlib source distribution
[OK] (2.6.1)
Check if matplotlib is installed....................[OK] (3.1.1)
Check if nibabel is installed.......................[OK] (3.2.1)
Check if numpy is installed.........................[OK] (1.19.4)
Check if onnxruntime (1.4.0) is installed...........[OK] (1.4.0)
Check if pandas is installed........................[OK] (1.1.5)
Check if psutil is installed........................[OK] (5.8.0)
Check if pyqt5 (5.11.3) is installed................[OK] (5.11.3)
Check if pytest is installed........................[OK] (6.2.1)
Check if pytest-cov is installed....................[OK] (__version__ = '2.10.1')
Check if raven is installed.........................[OK]
Check if requests is installed......................[OK] (2.13.0)
Check if requirements-parser is installed...........[OK] (0.2.0)
Check if scipy is installed.........................[OK] (1.5.3)
Check if scikit-image is installed..................[OK] (0.17.2)
Check if scikit-learn is installed..................[OK] (0.24.0)
Check if tensorflow (1.5.0) is installed............[OK] (1.5.0)
Check if torch (1.5.0+cpu) is installed.............[OK] (1.5.0+cpu)
Check if torchvision (0.6.0+cpu) is installed.......[OK] (0.6.0+cpu)
Check if xlwt is installed..........................[OK] (1.3.0)
Check if tqdm is installed..........................[OK] (4.56.0)
Check if transforms3d is installed..................[OK] (0.3.1)
Check if urllib3 is installed.......................[OK] (1.26.2)
Check if pytest_console_scripts is installed........[OK]
Check if pytest-xdist is installed..................[OK] (2.2.0)
Check if tensorboard (1.14.0) is installed..........[WARNING] (2.4.0 != 1.14.0 mandated version))
Check if spinalcordtoolbox is installed.............[OK]
Check ANTs compatibility with OS ...................[OK]
Check PropSeg compatibility with OS ................[OK]
Check if DISPLAY variable is set....................[OK]
Check if figure can be opened with PyQt.............failed to get the current screen resources
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-felixi'
[OK]
sct_testing
--
Spinal Cord Toolbox (git-master-3dfd4f81f9e4364dab4d94894ea687a625dbdea5)
sct_testing
--
Creating temporary folder (/tmp/sct-20210113094418.980911-bgm0mv2e)
Will run through the following tests:
- sequentially: sct_deepseg_gm sct_deepseg_lesion sct_deepseg_sc
- in parallel with 12 jobs: sct_analyze_lesion sct_analyze_texture sct_apply_transfo sct_convert sct_compute_ernst_angle sct_compute_hausdorff_distance sct_compute_mtr sct_compute_mscc sct_compute_snr sct_create_mask sct_crop_image sct_dice_coefficient sct_detect_pmj sct_dmri_compute_dti sct_dmri_concat_b0_and_dwi sct_dmri_concat_bvals sct_dmri_concat_bvecs sct_dmri_compute_bvalue sct_dmri_moco sct_dmri_separate_b0_and_dwi sct_dmri_transpose_bvecs sct_extract_metric sct_flatten_sagittal sct_fmri_compute_tsnr sct_fmri_moco sct_get_centerline sct_image sct_label_utils sct_label_vertebrae sct_maths sct_merge_images sct_process_segmentation sct_propseg sct_qc sct_register_multimodal sct_register_to_template sct_resample sct_smooth_spinalcord sct_straighten_spinalcord sct_warp_template
Checking sct_deepseg_gm.............................[FAIL]
====================================================================================================
sct_deepseg_gm -i t2s/t2s_uncropped.nii.gz -o output.nii.gz -qc testing-qc
====================================================================================================
--
Spinal Cord Toolbox (git-master-3dfd4f81f9e4364dab4d94894ea687a625dbdea5)
sct_deepseg_gm -i t2s/t2s_uncropped.nii.gz -o output.nii.gz -qc testing-qc
--
Traceback (most recent call last):
File "/home/felixi/sct/spinalcordtoolbox/scripts/sct_deepseg_gm.py", line 138, in <module>
main(sys.argv[1:])
File "/home/felixi/sct/spinalcordtoolbox/scripts/sct_deepseg_gm.py", line 121, in main
use_tta)
File "/home/felixi/sct/spinalcordtoolbox/deepseg_gm/deepseg_gm.py", line 313, in segment_file
use_tta)
File "/home/felixi/sct/spinalcordtoolbox/deepseg_gm/deepseg_gm.py", line 233, in segment_volume
deepgmseg_model.load_weights(model_abs_path)
File "/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/keras/engine/topology.py", line 2656, in load_weights
f, self.layers, reshape=reshape)
File "/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/keras/engine/topology.py", line 3328, in load_weights_from_hdf5_group
original_keras_version = f.attrs['keras_version'].decode('utf8')
AttributeError: 'str' object has no attribute 'decode'
Checking sct_deepseg_lesion.........................[FAIL]
====================================================================================================
sct_deepseg_lesion -i t2/t2.nii.gz -c t2
====================================================================================================
--
Spinal Cord Toolbox (git-master-3dfd4f81f9e4364dab4d94894ea687a625dbdea5)
sct_deepseg_lesion -i t2/t2.nii.gz -c t2
--
Method:
Centerline algorithm: svm
Assumes brain section included in the image: True
Creating temporary folder (/tmp/sct-20210113094425.407736-hkl1okl7)
Reorient the image to RPI, if necessary...
Finding the spinal cord centerline...
Creating temporary folder (/tmp/sct-20210113094425.641797-9ivjqszk)
Remove temporary files...
rm -rf /tmp/sct-20210113094425.641797-9ivjqszk
Cropping the image around the spinal cord...
Normalizing the intensity...
load data...
Segmenting the MS lesions using deep learning on 3D patches...
Traceback (most recent call last):
File "/home/felixi/sct/spinalcordtoolbox/scripts/sct_deepseg_lesion.py", line 173, in <module>
main(sys.argv[1:])
File "/home/felixi/sct/spinalcordtoolbox/scripts/sct_deepseg_lesion.py", line 149, in main
brain_bool=brain_bool, remove_temp_files=remove_temp_files, verbose=verbose)
File "/home/felixi/sct/spinalcordtoolbox/deepseg_lesion/core.py", line 201, in deep_segmentation_MSlesion
im=im_res3d.copy())
File "/home/felixi/sct/spinalcordtoolbox/deepseg_lesion/core.py", line 88, in segment_3d
seg_model = load_trained_model(model_fname)
File "/home/felixi/sct/spinalcordtoolbox/deepseg_sc/cnn_models_3d.py", line 91, in load_trained_model
return load_model(model_file, custom_objects=custom_objects)
File "/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/keras/models.py", line 242, in load_model
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'
Checking sct_deepseg_sc.............................[FAIL]
====================================================================================================
sct_deepseg_sc -i t2/t2.nii.gz -c t2 -qc testing-qc
====================================================================================================
--
Spinal Cord Toolbox (git-master-3dfd4f81f9e4364dab4d94894ea687a625dbdea5)
sct_deepseg_sc -i t2/t2.nii.gz -c t2 -qc testing-qc
--
Config deepseg_sc:
Centerline algorithm: svm
Brain in image: True
Kernel dimension: 2d
Contrast: t2
Threshold: 0.7
Creating temporary folder (/tmp/sct-20210113094429.549378-2taz61qy)
Reorient the image to RPI, if necessary...
Finding the spinal cord centerline...
Creating temporary folder (/tmp/sct-20210113094429.786930-2qvfuikl)
Remove temporary files...
rm -rf /tmp/sct-20210113094429.786930-2qvfuikl
Cropping the image around the spinal cord...
Normalizing the intensity...
Segmenting the spinal cord using deep learning on 2D patches...
Traceback (most recent call last):
File "/home/felixi/sct/spinalcordtoolbox/scripts/sct_deepseg_sc.py", line 204, in <module>
main(sys.argv[1:])
File "/home/felixi/sct/spinalcordtoolbox/scripts/sct_deepseg_sc.py", line 188, in main
threshold_seg=threshold, remove_temp_files=remove_temp_files, verbose=verbose)
File "/home/felixi/sct/spinalcordtoolbox/deepseg_sc/core.py", line 506, in deep_segmentation_spinalcord
im_in=im_norm_in)
File "/home/felixi/sct/spinalcordtoolbox/deepseg_sc/core.py", line 347, in segment_2d
seg_model.load_weights(model_fname)
File "/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/keras/engine/topology.py", line 2656, in load_weights
f, self.layers, reshape=reshape)
File "/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/keras/engine/topology.py", line 3328, in load_weights_from_hdf5_group
original_keras_version = f.attrs['keras_version'].decode('utf8')
AttributeError: 'str' object has no attribute 'decode'
Checking sct_analyze_lesion.........................[OK]
Checking sct_analyze_texture........................
Bad key "text.kerning_factor" on line 4 in
/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/matplotlib/mpl-data/stylelib/_classic_test_patch.mplstyle.
You probably need to get an updated matplotlibrc file from
http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template
or from the matplotlib source distribution
Bad key "text.kerning_factor" on line 4 in
/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/matplotlib/mpl-data/stylelib/_classic_test_patch.mplstyle.
You probably need to get an updated matplotlibrc file from
http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template
or from the matplotlib source distribution
Bad key "text.kerning_factor" on line 4 in
/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/matplotlib/mpl-data/stylelib/_classic_test_patch.mplstyle.
You probably need to get an updated matplotlibrc file from
http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template
or from the matplotlib source distribution
Bad key "text.kerning_factor" on line 4 in
/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/matplotlib/mpl-data/stylelib/_classic_test_patch.mplstyle.
You probably need to get an updated matplotlibrc file from
http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template
or from the matplotlib source distribution
Bad key "text.kerning_factor" on line 4 in
/home/felixi/sct/python/envs/venv_sct/lib/python3.6/site-packages/matplotlib/mpl-data/stylelib/_classic_test_patch.mplstyle.
You probably need to get an updated matplotlibrc file from
http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template
or from the matplotlib source distribution[OK]
Checking sct_apply_transfo..........................
[OK]
Checking sct_convert................................[OK]
Checking sct_compute_ernst_angle....................[OK]
Checking sct_compute_hausdorff_distance.............[OK]
Checking sct_compute_mtr............................[OK]
Checking sct_compute_mscc...........................[OK]
Checking sct_compute_snr............................[OK]
Checking sct_create_mask............................[OK]
Checking sct_crop_image.............................[OK]
Checking sct_dice_coefficient.......................[OK]
Checking sct_detect_pmj.............................[OK]
Checking sct_dmri_compute_dti.......................[OK]
Checking sct_dmri_concat_b0_and_dwi.................[OK]
Checking sct_dmri_concat_bvals......................[OK]
Checking sct_dmri_concat_bvecs......................[OK]
Checking sct_dmri_compute_bvalue....................[OK]
Checking sct_dmri_moco..............................[OK]
Checking sct_dmri_separate_b0_and_dwi...............[OK]
Checking sct_dmri_transpose_bvecs...................[OK]
Checking sct_extract_metric.........................[OK]
Checking sct_flatten_sagittal.......................[OK]
Checking sct_fmri_compute_tsnr......................[OK]
Checking sct_fmri_moco..............................[OK]
Checking sct_get_centerline.........................[OK]
Checking sct_image..................................[OK]
Checking sct_label_utils............................[OK]
Checking sct_label_vertebrae........................[OK]
Checking sct_maths..................................[OK]
Checking sct_merge_images...........................[OK]
Checking sct_process_segmentation...................[OK]
Checking sct_propseg................................[OK]
Checking sct_qc.....................................[OK]
Checking sct_register_multimodal....................[OK]
Checking sct_register_to_template...................
[OK]
Checking sct_resample...............................[OK]
Checking sct_smooth_spinalcord......................[OK]
Checking sct_straighten_spinalcord..................[OK]
Checking sct_warp_template..........................[OK]
status: [1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Failures: sct_deepseg_gm sct_deepseg_lesion sct_deepseg_sc
Finished! Elapsed time: 138s