-
Notifications
You must be signed in to change notification settings - Fork 17
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 meaning of arg “color-levels”? #14
Comments
hey, it's how many discrete levels each value of an image channel can take. For instance, for a black-and-white image (i.e. there is only a single channel) and color-levels equal to 2, the image is binary (each pixel value is equal to either one or two). If color-levels is 255 and image is coloured (i.e. there are 3 channels), you get a usual colored image. |
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
First of all, thank you very much for your patient answer, even though the code has been released for several years.
I don't know if my understanding is correct: taking a color image as an example, each channel in each position of the image corresponds to 256 probability values, and the index corresponding to the maximum probability value is taken as the result of image generation (or the prediction result during the training stage).
On 6/19/2023 15:46,Mark ***@***.***> wrote:
hey, it's how many discrete levels each value of an image channel can take. For instance, for a black-and-white image (i.e. there is only a single channel) and color-levels equal to 2, the image is binary (each pixel value is equal to either one or two). If color-levels is 255 and image is coloured (i.e. there are 3 channels), you get a usual colored image.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
yea, you are absolutely right here |
appreciate your reply deeply and good luck for you!
…---- Replied Message ----
From
Mark ***@***.***>
Date
6/23/2023 14:01
To
***@***.***>
Cc
***@***.***>
,
***@***.***>
Subject
Re: [anordertoreclaim/PixelCNN] The meaning of arg “color-levels”? (Issue #14)
I don't know if my understanding is correct: taking a color image as an example, each channel in each position of the image corresponds to 256 probability values, and the index corresponding to the maximum probability value is taken as the result of image generation (or the prediction result during the training stage).
yea, you are absolutely right here
note that teacher forcing is used during the training
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hello, could you tell me what the meaning of "color-levels" is?
The text was updated successfully, but these errors were encountered: