Why *a and *b are divided by 110? #1433
Unanswered
ZenithFlux
asked this question in
Q&A
Replies: 1 comment
-
This is a great question. Originally, we followed the Torch implementation of pix2pix. See this line. But I am not sure if the Lua image and skimage produce the same or different ab range. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think in colorization_dataset.py, the ab tensor should be divided by 128, not 110, as scikit-image implementation of L*a*b has a range of -128 to 127 for *a and *b.
The range of ab is -110 to 110 in this Matlab implementation.So I think this is the source of 110. But i dont think this is valid for scikit, is it?
Beta Was this translation helpful? Give feedback.
All reactions