title: Pytorch transform.ToTensor() changes image
body: <p>I want to convert images to tensor using <code>torchvision.transforms.ToTensor()</code>, after processing I printed the image but the image became so weird. Here is my code:</p>
  <pre><code>trans = transforms.Compose([
      transforms.ToTensor()])
  
  demo = Image.open(img) 
  demo_img = trans(demo)
  demo_array = demo_img.numpy()*255
  print(Image.fromarray(demo_array.astype(np.uint8)))
  </code></pre>
  <p>The original image is <a href="https://i.stack.imgur.com/U2aiK.jpg" rel="nofollow noreferrer">this</a></p>
  <p>But after processing it is showed like <a href="https://i.stack.imgur.com/XnYAt.png" rel="nofollow noreferrer">this</a></p>
  <p>Did I write something wrong or miss something?</p>