Closed Cosme-liu closed 1 month ago
Hi @Cosme-liu - many thanks for your contribution to CIL!
Please can you confirm which version of CIL you are using e.g. using
import cil, sys
print(cil.version.version, cil.version.commit_hash, sys.version, sys.platform)
We think we had a fix in this PR for the change in shape: https://github.com/TomographicImaging/CIL/issues/1603
Hi @Cosme-liu - many thanks for your contribution to CIL!
Please can you confirm which version of CIL you are using e.g. using
import cil, sys print(cil.version.version, cil.version.commit_hash, sys.version, sys.platform)
We think we had a fix in this PR for the change in shape: #1603
The CIL version is 22.2.0
@Cosme-liu - Please could you try updating to a later version of CIL e.g. 24.1. That should fix the difference in array shape issue.
@MargaretDuff I update to 24.0.0, the RingRemover
works, but another error appears when I try to reconstruct using tigre
.
Code:
recon = FBP(pj_center,filter = 'shepp-logan', backend= 'tigre')
output = recon.run()
Error:
File E:\anaconda3\envs\cil\lib\os.py:680, in _Environ.__getitem__(self, key)
677 value = self._data[self.encodekey(key)]
678 except KeyError:
679 # raise KeyError with the original key value
--> 680 raise KeyError(key) from None
681 return self.decodevalue(value)
KeyError: 'CUDA_PATH'
Thanks @Cosme-liu! Good news that the update helped with the ring remover. Does the command nvidia-smi
work on the machine/environment you are using?
@MargaretDuff the command works.
This error on Windows has been noticed already, see the thread https://github.com/TomographicImaging/CIL/issues/1596 and https://github.com/TomographicImaging/TIGRE-conda/issues/7
A couple of solutions are proposed:
conda env config vars set CUDA_PATH="X"
, https://github.com/TomographicImaging/TIGRE-conda/issues/7#issuecomment-2025439783@paskino I tried the third method that typing conda env config vars set CUDA_PATH="X"
, but it didn't work and raised an error:
File E:\anaconda3\envs\cil\lib\site-packages\tigre\__init__.py:19
17 # The user must install the CUDA Toolkit
18 cuda_bin = os.path.join(os.environ["CUDA_PATH"], "bin")
---> 19 os.add_dll_directory(cuda_bin)
21 from .utilities.geometry import geometry
22 from .utilities.geometry_default import ConeGeometryDefault as geometry_default
File E:\anaconda3\envs\cil\lib\os.py:1118, in add_dll_directory(path)
1108 """Add a path to the DLL search path.
1109
1110 This search path is used when resolving dependencies for imported
(...)
1115 using it in a with statement.
1116 """
1117 import nt
-> 1118 cookie = nt._add_dll_directory(path)
1119 return _AddedDllDirectory(
1120 path,
1121 cookie,
1122 nt._remove_dll_directory
1123 )
OSError: [WinError 87] PARAMETER ERROR: 'X\\bin'
Now I don't know how to reset the parameter, should I reinstall CIL and try again?
@Cosme-liu This has been fixed very recently in the windows build with CIL version 2.4.1 and TIGRE 2.6. Can you try creating a fresh environment using our instructions here https://github.com/TomographicImaging/CIL?tab=readme-ov-file#conda and let us know how you get on.
Description
I try to use
cil.processors.RingRemover
to pre-process the normalized data, but I find that there is no guidance in cil website. And I try to invoke this function, but something go wrong.Code
The info of input data
pj
:Error