Open rubi-du opened 1 week ago
When there is a minimum value in the mask tensor, it can lead to incorrect Expand mask results and loss of mask calculation
As shown in the above figure, directly converting the mask to an image can work normally, but the mask is lost after expanding it
Yes, "grow" only works for binary masks (all values 0 or 1).
A more general dilation for smooth mask is a lot more expensive I think (at least I can't think of a method to do it as a convolution).
When there is a minimum value in the mask tensor, it can lead to incorrect Expand mask results and loss of mask calculation
As shown in the above figure, directly converting the mask to an image can work normally, but the mask is lost after expanding it