Skip to content

Conversation

@bobbens
Copy link
Contributor

@bobbens bobbens commented Jan 23, 2017

After changing this I saw the issue #24 which mentions this and mentions adding a range option. For now I've just removed the .mul(0.5).add(0.5) as without it, the follow code does not properly save the image.

import torch
import torchvision
from PIL import Image
I  = Image.open( './lena.jpg' )
I2 = torchvision.transforms.ToTensor()( I )
torchvision.utils.save_image( I2, 'test.jpg' )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants