RuntimeError #7257
Zhongrocky
started this conversation in
General
RuntimeError
#7257
Replies: 2 comments
-
Hi @Zhongrocky, could you please try |
Beta Was this translation helpful? Give feedback.
0 replies
-
@KumoLiu Thank you for your help, it's ok. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Traceback (most recent call last):
File "/CCTA2D/lib/python3.10/site-packages/monai/transforms/transform.py", line 102, in apply_transform
return _apply_transform(transform, data, unpack_items)
File "/CCTA2D/lib/python3.10/site-packages/monai/transforms/transform.py", line 66, in _apply_transform
return transform(parameters)
File "/CCTA2D/lib/python3.10/site-packages/monai/transforms/io/dictionary.py", line 154, in call
data = self._loader(d[key], reader)
File "/CCTA2D/lib/python3.10/site-packages/monai/transforms/io/array.py", line 266, in call
raise RuntimeError(
RuntimeError: LoadImage cannot find a suitable reader for file: /Final_Data_real/train/FU WEI SU/raw_data.nii.gz.
Please install the reader libraries, see also the installation instructions:
https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies.
The current registered: [<monai.data.image_reader.NumpyReader object at 0x7f99d17edab0>, <monai.data.image_reader.PILReader object at 0x7f99d17edea0>].
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/CCTA2D/lib/python3.10/site-packages/monai/data/dataset.py", line 870, in _fill_cache
return list(tqdm(p.imap(self._load_cache_item, indices), total=len(indices), desc="Loading dataset"))
File "/CCTA2D/lib/python3.10/site-packages/tqdm/std.py", line 1182, in iter
for obj in iterable:
File "/CCTA2D/lib/python3.10/multiprocessing/pool.py", line 870, in next
raise value
File "/CCTA2D/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/CCTA2D/lib/python3.10/site-packages/monai/data/dataset.py", line 884, in _load_cache_item
item = apply_transform(_xform, item)
File "/CCTA2D/lib/python3.10/site-packages/monai/transforms/transform.py", line 129, in apply_transform
raise RuntimeError(f"applying transform {transform}") from e
RuntimeError: applying transform <monai.transforms.io.dictionary.LoadImaged object at 0x7f9ae34e73d0>
Process finished with exit code 1
Environment
Ensuring you use the relevant python executable, please paste the output of: python==3.10.0
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions