Attribute error in utils type_conversion code in latest monai version 1.3.1 #7882
xlar-sanjeet
started this conversation in
General
Replies: 2 comments
-
Hi @xlar-sanjeet, I can't reproduce the issue locally, could you please share a small script to reproduce the issue?
Perhaps you can try to uninstall and reinstall the monai and ensure there is only one version exit. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Will convert this one to discussion for now, feel free to create a new one, thanks. |
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
I am getting this attribute error while trying to transform data for swin unetr code.
Environment
** Latest monai version 1.3.1**
Error --
File ~/.conda/envs/monai/lib/python3.10/site-packages/monai/utils/type_conversion.py:369, in convert_to_dst_type(src, dst, dtype, wrap_sequence, device, safe)
368 output_type: Any
--> 369 if isinstance(dst, monai.data.MetaTensor):
370 output_type = monai.data.MetaTensor
AttributeError: module 'monai' has no attribute 'data'
Beta Was this translation helpful? Give feedback.
All reactions