mmedit.models.base_archs.vgg¶
Module Contents¶
Classes¶
Customized VGG16 Encoder. |
- class mmedit.models.base_archs.vgg.VGG16(in_channels: int, batch_norm: Optional[bool] = False, aspp: Optional[bool] = False, dilations: Optional[List[int]] = None, init_cfg: Optional[dict] = None)[源代码]¶
Bases:
mmengine.model.BaseModuleCustomized VGG16 Encoder.
A 1x1 conv is added after the original VGG16 conv layers. The indices of max pooling layers are returned for unpooling layers in decoders.
- 参数
in_channels (int) – Number of input channels.
batch_norm (bool, optional) – Whether use
nn.BatchNorm2d. Default to False.aspp (bool, optional) – Whether use ASPP module after the last conv layer. Default to False.
dilations (list[int], optional) – Atrous rates of ASPP module. Default to None.
init_cfg (dict, optional) – Initialization config dict.