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
I am having issues reconstructing certain geometries in TIGRE with MLEM and CGLS/LSQR (FDK works fine). This only happens with certain geometry combinations and I have not been able to pinpoint what triggers it exactly. By just downsampling the radiographs, I am able to circumvent it, but smaller radiographs do not mean it will succeed. Sometimes upsampling fixes the issue. This includes changing the geometry of course (detector pixel amount and size).
TIGRE parameters
-----
Geometry parameters
Distance from source to detector (DSD) = 458 mm
Distance from source to origin (DSO)= 28 mm
-----
Detector parameters
Number of pixels (nDetector) = [3511 1964]
Size of each pixel (dDetector) = [0.12987013 0.12987013] mm
Total size of the detector (sDetector) = [455.97402597 255.06493506] mm
-----
Image parameters
Number of voxels (nVoxel) = [3511 1964 1964]
Total size of the image (sVoxel) = [28.45321694 15.9162968 15.9162968 ] mm
Size of each voxel (dVoxel) = [0.02026159 0.02027554 0.02027554] mm
-----
Offset correction parameters
Offset of image from origin (offOrigin) = [0 0 0] mm
Offset of detector (offDetector) = [0 0] mm
-----
Auxillary parameters
Samples per pixel of forward projection (accuracy) = 0.5
-----
Rotation of the Detector (rotDetector) = [0 0 0] rad
../Common/CUDA/TIGRE_common.cpp (7): memset fail
../Common/CUDA/TIGRE_common.cpp (14): CBCT:CUDA:Atb an illegal memory access was encountered
Hardware is 512GB RAM and dual RTX 4090. Forcing TIGRE to just use one GPU does not fix the issue. Latest Cython and Numpy is used.
The text was updated successfully, but these errors were encountered:
I also see issues like this sometimes where it seemingly succeeds but the reconstruction looks like this (This is a vertical slice), where a large portion has no value.
When I was using a remote Python interpreter in PyCharm, I encountered a similar issue.
../Common/CUDA/TIGRE_common.cpp (7): Main loop fail
../Common/CUDA/TIGRE_common.cpp (14): CBCT:CUDA:Atb an illegal memory access was encountered
Solution:
In edit configurations->Environment->Environment variables add LD_LIBRARY_PATH=[path to cuda lib64]; . e.g. Replace [path to cuda lib64] with /usr/local/cuda/lib64.
Ensure that tigre related libraries are imported before other libraries
thanks for that information @immortalmin ! I think its the same error, but I don't think its caused by the same issue. However, super important info, thanks for bringing this up!
I am having issues reconstructing certain geometries in TIGRE with MLEM and CGLS/LSQR (FDK works fine). This only happens with certain geometry combinations and I have not been able to pinpoint what triggers it exactly. By just downsampling the radiographs, I am able to circumvent it, but smaller radiographs do not mean it will succeed. Sometimes upsampling fixes the issue. This includes changing the geometry of course (detector pixel amount and size).
With this code:
I can provoke the error. And I get the output:
Hardware is 512GB RAM and dual RTX 4090. Forcing TIGRE to just use one GPU does not fix the issue. Latest Cython and Numpy is used.
The text was updated successfully, but these errors were encountered: