module 'monai.transforms' has no attribute 'AddChannel' #1686
-
I am using the most recent version of monai - monai_weekly-1.4.dev2413 because other versions give me an error of
Trying to migrate to the most recent version and am met with this issue
Is there documentation somewhere which explains which functions are deprecated and their replacements? I tried reading the official documentation but did not see this anywhere. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi @slefcourt27,
Fixed in this PR.
Please check your version or perhaps reinstall it in a fresh environment. |
Beta Was this translation helpful? Give feedback.
Will be equal to:
transforms.EnsureChannelFirstd(keys=["image"], channel_dim="no_channel")
https://github.com/Project-MONAI/MONAI/blob/c0b9cc0b00459563196b9ce1d430f5d86406c5e6/monai/transforms/utility/array.py#L188