I’m trying to RandomRotate a greyscale images using transform. But it won’t let me!
can someone please help?
Note: It works fine with RGB based tensors
Code and error message below
> img = torch.randn(1,224,224)
> 
> tfms = Compose([ToPILImage(),RandomRotation(20)])
> 
> tfms(img)
> .
> .
> .


TypeError: function takes exactly 1 argument (3 given)