czotti:

tfms.Compose([tfms.RandomRotation(180), tfms.ToTensor()])


still its not working I am talking about the 2nd pecide of code.
as it has generated the error of not handling this type of file from its built in files.
have a look on this screenshot. I change the mentioned and replace with nii file but it show below error

Screenshot_71327×608 176 KB