Monai Attribute

Hello everyone,
I was trying to import some attributes from monai.transform but while importing AddChanneld the jupyter notebook was showing the error of:

module 'monai.transforms' has no attribute 'AddChanneld''

this was the code I used importing:

from monai.transforms import(
    Compose,
    AddChanneld,
    LoadImaged,
    Resized,
    ToTensord,
    Spacingd,
    Orientationd,
    ScaleIntensityRanged,
    CropForegroundd,
)

I also tried an alternate method where I imported the file: import monai.transforms as tf

and use the method: tf.AddChanneld(keys=["vol", "seg"]

What am I doing wrong?

Try using EnsureChannelFirstD(channel_dim=“no_channel”) instead. addchannel is removed from the library but it still exists in tutorials and many places.

From a programmer aspect(imo), this framework is maintained so poorly that you can’t even start because of conflicts.