- class composer.algorithms.BlurPool(replace_convs=True, replace_maxpools=True, blur_first=True, min_channels=16)#
BlurPool adds anti-aliasing filters to convolutional layers.
This algorithm increases accuracy and invariance to small shifts in the input. It runs on
blur_first (bool) – when
True, blur input before the associated convolution. When set to
False, the convolution is applied with a stride of 1 before the blurring, resulting in significant overhead (though more closely matching the paper). See
BlurConv2dfor further discussion. Default:
min_channels (int, optional) – Skip replacing layers with in_channels < min_channels. Commonly used to prevent the blurring of the first layer. Default: 16.