lukemelas/pytorch-pretrained-gans

Why are the images getting multiplied by 256 and not 255?

moha23 opened this issue · 0 comments

Hi, thank you for this work! At the following line of code, I wonder why the image is getting multiplied by 256 and then clipped to 255, shouldn't it be multiplied by 255?

obj = np.clip(((obj + 1) / 2.0) * 256, 0, 255)