layers3.bilinearUpSample¶
-
class
layers3.bilinearUpSample(factor)¶ Basic bilinear upsampling layer. The biliear upsampling in tensorflow 1.x version has some mismatch with cv2&PIL&pytorch.
-
__init__(factor)¶ Parameters: factor (int) – The upsample factor. The output will become factor times larger as the input tensor.
-
build(input_shape)¶ Creates the variables of the layer (optional, for subclass implementers).
This is a method that implementers of subclasses of Layer or Model can override if they need a state-creation step in-between layer instantiation and layer call.
This is typically used to create the weights of Layer subclasses.
Parameters: input_shape – Instance of TensorShape, or list of instances of TensorShape if the layer expects a list of inputs (one instance per input).
-
call(x)¶ Parameters: x – Input tensor or numpy array. The object will be automatically converted to tensor if the input is np.array. Note that other arrays in args or kwargs will not be auto-converted.
-
get_kernel(dim, chn, factor)¶
-
upsample_kernel(size)¶
-
upsample_kernel_1d(size)¶
-
upsample_kernel_3d(size)¶
-