Solved by tom in post #2 
              
              
                to_pil_image wants float32 inputs, I think. It doesn’t make a whole lot of sense to me to use to_pil_image right before to_tensor, but hey, what  do I know. 
Best regards 
Thomas