Solved by ptrblck in post #2 
              
              
                The error message is a bit strange, however the error might be thrown, since you are passing a numpy array instead of a PIL.Image. 
The image transformations of torchvision.transforms usually work on PIL.Images, so try to load it as such. 
Also, transforms.Scale is deprecated, you should use transfo…