mmagic.models.editors.fba.fba_encoder
¶
Module Contents¶
Classes¶
ResNet-based encoder for FBA image matting. |
- class mmagic.models.editors.fba.fba_encoder.FBAResnetDilated(depth: int, in_channels: int = 3, stem_channels: int = 64, base_channels: int = 64, num_stages: int = 4, strides: Sequence[int] = (1, 2, 2, 2), dilations: Sequence[int] = (1, 1, 2, 4), deep_stem: bool = False, avg_down: bool = False, frozen_stages: int = - 1, act_cfg: dict = dict(type='ReLU'), conv_cfg: Optional[dict] = None, norm_cfg: dict = dict(type='BN'), with_cp: bool = False, multi_grid: Optional[Sequence[int]] = None, contract_dilation: bool = False, zero_init_residual: bool = True)[源代码]¶
Bases:
mmagic.models.archs.ResNet
ResNet-based encoder for FBA image matting.