class documentation
class Compact(nn.Module): (source)
Constructor: Compact(num_in_ch, num_out_ch, num_feat, num_conv, ...)
A compact VGG-style network structure for super-resolution.
It is a compact network structure, which performs upsampling in the last layer and no convolution is conducted on the HR feature space.
| Parameters | |
| num | Channel number of inputs. Default: 3. |
| num | Channel number of outputs. Default: 3. |
| num | Channel number of intermediate features. Default: 64. |
| num | Number of convolution layers in the body network. Default: 16. |
| upscale | Upsampling factor. Default: 4. |
| act | Activation type, options: 'relu', 'prelu', 'leakyrelu'. Default: prelu. |
| Method | __init__ |
Undocumented |
| Method | forward |
Undocumented |
| Class Variable | hyperparameters |
Undocumented |
| Instance Variable | act |
Undocumented |
| Instance Variable | body |
Undocumented |
| Instance Variable | num |
Undocumented |
| Instance Variable | num |
Undocumented |
| Instance Variable | num |
Undocumented |
| Instance Variable | num |
Undocumented |
| Instance Variable | upsampler |
Undocumented |
| Instance Variable | upscale |
Undocumented |