mmagic.models.editors.tdan.tdan_net
¶
Module Contents¶
Classes¶
TDAN network structure for video super-resolution. |
|
Augmented Deformable Convolution Pack. |
- class mmagic.models.editors.tdan.tdan_net.TDANNet(in_channels=3, mid_channels=64, out_channels=3, num_blocks_before_align=5, num_blocks_after_align=10)[source]¶
Bases:
mmengine.model.BaseModule
TDAN network structure for video super-resolution.
Support only x4 upsampling.
- Paper:
TDAN: Temporally-Deformable Alignment Network for Video Super- Resolution, CVPR, 2020
- Parameters
in_channels (int) – Number of channels of the input image. Default: 3.
mid_channels (int) – Number of channels of the intermediate features. Default: 64.
out_channels (int) – Number of channels of the output image. Default: 3.
num_blocks_before_align (int) – Number of residual blocks before temporal alignment. Default: 5.
num_blocks_after_align (int) – Number of residual blocks after temporal alignment. Default: 10.
- class mmagic.models.editors.tdan.tdan_net.AugmentedDeformConv2dPack(*args, **kwargs)[source]¶
Bases:
mmcv.ops.DeformConv2d
Augmented Deformable Convolution Pack.
Different from DeformConv2dPack, which generates offsets from the preceding feature, this AugmentedDeformConv2dPack takes another feature to generate the offsets.
- Parameters
in_channels (int) – Number of channels in the input feature.
out_channels (int) – Number of channels produced by the convolution.
kernel_size (int or tuple[int]) – Size of the convolving kernel.
stride (int or tuple[int]) – Stride of the convolution. Default: 1.
padding (int or tuple[int]) – Zero-padding added to both sides of the input. Default: 0.
dilation (int or tuple[int]) – Spacing between kernel elements. Default: 1.
groups (int) – Number of blocked connections from input channels to output channels. Default: 1.
deform_groups (int) – Number of deformable group partitions.
bias (bool or str) – If specified as auto, it will be decided by the norm_cfg. Bias will be set as True if norm_cfg is None, otherwise False.