FBA_Matting icon indicating copy to clipboard operation
FBA_Matting copied to clipboard

About the input channels

Open tonytonglt opened this issue 5 years ago • 1 comments

Hi. As you mentioned in the paper, you changed the input channels from 3 to 9. However, when I look into your code, in models.py line 53, I found that num_channels = 3 + 6 + 2. Does it mean input channel of 11? What does 3, 6 and 2 indicate? Looking forward to your reply. Thanks.

tonytonglt avatar Jul 07 '20 07:07 tonytonglt

I think the channels are distributed like this:

  • 3 channels: This is the input image (group normalized).
  • 6 channels: Some kind of approximate alpha matte computed from the distance to the foreground and background of the trimap. See https://github.com/MarcoForte/FBA_Matting/issues/17 for more details.
  • 2 channels: The foreground and background channels of the trimap.

99991 avatar Jul 16 '20 06:07 99991