WDSR
- class biapy.models.wdsr.wdsr(scale, num_filters=32, num_res_blocks=16, res_block_expansion=6, num_channels=1)[source]
Bases:
Module
WDSR model.
Reference: Wide Activation for Efficient and Accurate Image Super-Resolution.
Adapted from here.
- forward(x)[source]
Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
- class biapy.models.wdsr.Block(num_residual_units, kernel_size, width_multiplier=1, weight_norm=<function weight_norm>, res_scale=1)[source]
Bases:
Module
- forward(x)[source]
Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.