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

output images scaled to [-1,1] or [0,1] ? #26

Open
starrywintersky opened this issue Apr 7, 2024 · 2 comments
Open

output images scaled to [-1,1] or [0,1] ? #26

starrywintersky opened this issue Apr 7, 2024 · 2 comments

Comments

@starrywintersky
Copy link

(in your code of class PairedDataset)

output images scaled to -1,1

  output_t = self.T(output_img)
  output_t = F.to_tensor(output_t)
  output_t = F.normalize(output_t, mean=[0.5], std=[0.5])
@GaParmar
Copy link
Owner

Hi,

The input images are scaled to [0,1] and output images are scaled to [-1,1].
See this code block here.

@wujinlonglovezhangmiao1314

Hi,

The input images are scaled to [0,1] and output images are scaled to [-1,1]. See this code block here.

hi, i wonder know why input images are scaled to [0,1] ? why not to [-1,1] as same as antoencoder's input.

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

3 participants