You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I use PyRadiomics to extract voxel-based features and noticed that it is extremely slow, especially GLCM features, like #679.
I use pyinstrument to profile extraction and I found that numpy.delete and ndarray.copy takes lots of time.
so I try to speed up and made a PR(#882).
After this modification, I got improvement of 14s:
with very small error:
all close: True
max abs diff: 2.7939677238464355e-09
max rel diff1: 3.6155523019942848e-12
max rel diff2: 3.6156633242967473e-12
Version (please complete the following information):
OS: Windows 11
Python version: 3.10
PyRadiomics version: 3.1.0
Additional context
Obviously, this PR cannot fully solve this problem.
So, I try to use GPU(PyTorch) to accelerate: pytorchradiomics
Using pytorch gains about 20x~30x acceleration in voxel-based GLCM extraction.
I am not sure it should be included in pyradiomics or just a standalone package.
Any suggestions?
The text was updated successfully, but these errors were encountered:
Description
I use PyRadiomics to extract voxel-based features and noticed that it is extremely slow, especially GLCM features, like #679.
I use pyinstrument to profile extraction and I found that
numpy.delete
andndarray.copy
takes lots of time.so I try to speed up and made a PR(#882).
After this modification, I got improvement of 14s:
with very small error:
PyRadiomics configuration
NA
PyRadiomics log file
To Reproduce
RadiomicsGLCM2
is the modified version.Version (please complete the following information):
Additional context
Obviously, this PR cannot fully solve this problem.
So, I try to use GPU(PyTorch) to accelerate: pytorchradiomics
Using pytorch gains about 20x~30x acceleration in voxel-based GLCM extraction.
I am not sure it should be included in pyradiomics or just a standalone package.
Any suggestions?
The text was updated successfully, but these errors were encountered: