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

outputs = (outputs + 1) / 2. in test code #95

Open
encounter1997 opened this issue Oct 3, 2020 · 1 comment
Open

outputs = (outputs + 1) / 2. in test code #95

encounter1997 opened this issue Oct 3, 2020 · 1 comment

Comments

@encounter1997
Copy link

Hi, I have some question about the test code:
In both test.py and test_batch.py, the decoding output was processed by the following code,
outputs = (outputs + 1) / 2.
However, this is not shown in the sample function of MUNIT_Trainer.
I wonder what is this operation designed for, and when should I use it ?

@ggt55ng6
Copy link

scale pixel value from [-1, 1] to [0, 1]

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