Mona_Jalal:

transforms.ToPILImage()


I am having this problem here:

  
      gist.github.com
  
  
    https://gist.github.com/monajalal/8f0226aba24c98235667a5f0a1216aca 12
VAE_training.ipynb
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
This file has been truncated. show original




  
  
    
    
  
  


And I am not sure how to overcome it.
Could you please help me with this?
Having the following line didn’t differ:
        ##data = transforms.ToPILImage()(data) # with or without still get the pil / tensor error