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
About the number of input channels #4
Comments
I think the input channel is 3 (rgb) + 6 (blurred trimap) = 9. In code dataloader.py, the author defined a function called read_trimap. This function first reads the single-channel trimap, then transforms the pure foreground and pure background area into one-hot version. At this time, 1 channel trimap -> 2 channel one-hot trimap (indicating fg and bg area). After that, trimap_transform function in transforms.py is used to blur the fg and bg at 3 scale levels separately. Thus, 2 channel trimap -> 6 channel trimap (3 for fg, and 3 for bg). In the end, we can get 6 channel trimap + 3 channel RGB. |
I got it. |
how is the one hot encoding done in the code ? are you referring to these lines ?
|
if yes wouldn't this binarize the trimap? Ideally trimap should be continous b/w 0 and 1 |
In paper 3.1 :
I know the output channels is 7 (a=1, F=3, B=3)
But why the input channels is 9?
In you code,I saw the input are image and trimap,then input channels will be 4.
So,why the input channels is 9 in paper 3.1?
The text was updated successfully, but these errors were encountered: