Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The imshow of celebA project #9

Open
RongKaiWeskerMA opened this issue Apr 29, 2019 · 1 comment
Open

The imshow of celebA project #9

RongKaiWeskerMA opened this issue Apr 29, 2019 · 1 comment

Comments

@RongKaiWeskerMA
Copy link

In celebA project,

ax[i, j].imshow((test_images[k].cpu().data.numpy().transpose(1, 2, 0) + 1) / 2)

is there any reason for you to make the image (value +1)/2?

@saurabheights
Copy link

Conversion from -1, 1 to 0,1 range. This is to invert normalization transform of images done in dataloader.

@RongKaiWeskerMA

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

No branches or pull requests

2 participants