SeparableConv2DBlock
- class lib.model.nn_blocks.SeparableConv2DBlock(filters: int, kernel_size: int | tuple[int, int] = 5, strides: int | tuple[int, int] = 2, **kwargs)
Bases:
objectSeperable Convolution Block.
- Parameters:
filters (int) – The dimensionality of the output space (i.e. the number of output filters in the convolution)
kernel_size (int, optional) – An integer or tuple/list of 2 integers, specifying the height and width of the 2D convolution window. Can be a single integer to specify the same value for all spatial dimensions. Default: 5
strides (tuple or int, optional) – An integer or tuple/list of 2 integers, specifying the strides of the convolution along the height and width. Can be a single integer to specify the same value for all spatial dimensions. Default: 2
kwargs (dict) – Any additional Keras standard layer keyword arguments to pass to the Separable Convolutional 2D layer
Methods Summary
__call__(inputs)Call the Faceswap Separable Convolutional 2D Block.
Methods Documentation
- __call__(inputs: KerasTensor) KerasTensor
Call the Faceswap Separable Convolutional 2D Block.
- Parameters:
inputs (
keras.KerasTensor) – The input to the layer- Returns:
The output tensor from the Upscale Layer
- Return type:
keras.KerasTensor
- __call__(inputs: KerasTensor) KerasTensor
Call the Faceswap Separable Convolutional 2D Block.
- Parameters:
inputs (
keras.KerasTensor) – The input to the layer- Returns:
The output tensor from the Upscale Layer
- Return type:
keras.KerasTensor