Solved by Nikronic in post #2 
              
              
                Hi, 
There is no rotating in your code and transforms will not do that. I think the way you visualize your image has some problems. Here is the way I plot images: 
x = Image.open('cat.jpg')
x.load()
transform = transforms.Compose([transforms.Resize([256, 256]),
									transforms.RandomCrop(224),
	…