View source on GitHub
|
Creates a mask scoring layer.
tfm.vision.heads.MaskScoring(
num_classes: int,
fc_input_size: List[int],
num_convs: int = 3,
num_filters: int = 256,
use_depthwise_convolution: bool = False,
fc_dims: int = 1024,
num_fcs: int = 2,
activation: str = 'relu',
use_sync_bn: bool = False,
norm_momentum: float = 0.99,
norm_epsilon: float = 0.001,
kernel_regularizer: Optional[tf_keras.regularizers.Regularizer] = None,
bias_regularizer: Optional[tf_keras.regularizers.Regularizer] = None,
**kwargs
)
This implements mask scoring layer from the paper:
Zhaojin Huang, Lichao Huang, Yongchao Gong, Chang Huang, Xinggang Wang. Mask Scoring R-CNN. (https://arxiv.org/pdf/1903.00241.pdf)
Methods
call
call(
inputs: tf.Tensor, training: bool = None
)
Forward pass mask scoring head.
| Args | |
|---|---|
inputs
|
A tf.Tensor of the shape [batch_size, width, size, num_classes],
representing the segmentation logits.
|
training
|
a bool indicating whether it is in training mode.
|
| Returns | |
|---|---|
mask_scores
|
A tf.Tensor of predicted mask scores
[batch_size, num_classes].
|
View source on GitHub