CUpsampling2DLayer Class
August 31, 2021 ยท View on GitHub
The class implements a layer that scales up a set of two-dimensional multi-channel images. The new pixels are filled up by repeating the existing pixels' values.
Settings
Height multiplier
void SetHeightCopyCount( int newHeightCopyCount );
Width multiplier
void SetWidthCopyCount( int newHeightCopyCount );
Trainable parameters
The layer has no trainable parameters.
Inputs
Each of the inputs accepts a blob of int or float data with a set of images:
BatchLength * BatchWidth * ListSizeis the number of images in the setHeightis the images' heightWidthis the images' widthDepth * Channelsis the number of channels the image format uses
Outputs
For each input, the corresponding output returns a blob with the upscaled image. Upsampling is performed by repetition of original pixels without any interpolation.
The blob dimensions are:
BatchLength,BatchWidth,ListSize,Depth, andChannelsequal the input dimensionsHeightisGetHeightCopyCount()times larger than the inputHeightWidthisGetWidthCopyCount()times larger than the inputWidth