AIM-Harvard / pyradiomics

Open-source python package for the extraction of Radiomics features from 2D and 3D images and binary masks. Support: https://discourse.slicer.org/c/community/radiomics
http://pyradiomics.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.15k stars 495 forks source link

Kernel dies for example file #820

Open sdesutter opened 1 year ago

sdesutter commented 1 year ago

Describe the bug I am trying to run the example code from helloVoxel.py on my device, using the exact same code and parameter file. However, the kernel seems to die when encountering extractor = featureextractor.RadiomicsFeatureExtractor(paramsFile) What could be the issue here?

PyRadiomics configuration See examples: helloVoxel.py (no adjustments made)

PyRadiomics log file

INFO:radiomics.featureextractor: Loading parameter file /Users/selene/Documents/Work_Clean/Code/InfiltrationMapping/FuzzyCMeans/params.yaml
DEBUG:radiomics.featureextractor: Parameters parsed, input is valid.
DEBUG:radiomics.featureextractor: Applying settings
DEBUG:radiomics.featureextractor: Enabled image types: {'Original': {}}
DEBUG:radiomics.featureextractor: Enabled features: {'glcm': ['JointEntropy']}
DEBUG:radiomics.featureextractor: Settings: {'binWidth': 25, 'force2D': True, 'label': 1}
INFO:radiomics.featureextractor: Starting voxel based extraction
INFO:radiomics.featureextractor: Calculating features with label: 1
DEBUG:radiomics.featureextractor: Enabled images types: {'Original': {}}
DEBUG:radiomics.featureextractor: Enabled features: {'glcm': ['JointEntropy']}
DEBUG:radiomics.featureextractor: Current settings: {'minimumROIDimensions': 2, 'minimumROISize': None, 'normalize': False, 'normalizeScale': 1, 'removeOutliers': None, 'resampledPixelSpacing': None, 'interpolator': 'sitkBSpline', 'preCrop': False, 'padDistance': 5, 'distances': [1], 'force2D': True, 'force2Ddimension': 0, 'resegmentRange': None, 'label': 1, 'additionalInfo': True, 'binWidth': 25, 'kernelRadius': 2, 'maskedKernel': True, 'initValue': 'nan', 'voxelBatch': 10000, 'voxelBased': True}
INFO:radiomics.featureextractor: Loading image and mask
DEBUG:radiomics.imageoperations: Force casting mask to UInt32 to ensure correct datatype.
DEBUG:radiomics.imageoperations: Checking mask with label 1
DEBUG:radiomics.imageoperations: Calculating bounding box
DEBUG:radiomics.imageoperations: Checking minimum number of dimensions requirements (2)
DEBUG:radiomics.featureextractor: Image and Mask loaded and valid, starting extraction
DEBUG:radiomics.featureextractor: Creating image type iterator
INFO:radiomics.featureextractor: Adding image type "Original" with custom settings: {}
DEBUG:radiomics.featureextractor: Extracting features
DEBUG:radiomics.imageoperations: Yielding original image
INFO:radiomics.featureextractor: Calculating features for original image
DEBUG:radiomics.imageoperations: Cropping to size [87 66 11]

Version (please complete the following information):

Thanks a lot for the help!