class documentation
class CRAFT(nn.Module): (source)
Constructor: CRAFT(in_chans, window_size, embed_dim, depths, ...)
- Cross-Refinement Adaptive Fusion Transformer
- Some codes are based on SwinIR.
| Parameters | |
| in | Number of input image channels. Default: 3 |
| embed | Patch embedding dimension. Default: 96 |
| depths | Depth of each Swin Transformer layer. |
| num | Number of attention heads in different layers. |
| mlp | Ratio of mlp hidden dim to embedding dim. Default: 2 |
| qkv | If True, add a learnable bias to query, key, value. Default: True |
| qk | Override default qk scale of head_dim ** -0.5 if set. Default: None |
| norm | Normalization layer. Default: nn.LayerNorm. |
| upscale | Upscale factor. 2/3/4/ |
| img | Image range. 1. or 255. |
| resi | The convolutional block before residual connection. '1conv'/'3conv' |
| Method | __init__ |
Undocumented |
| Method | calculate |
Undocumented |
| Method | forward |
Undocumented |
| Method | forward |
Undocumented |
| Method | no |
Undocumented |
| Method | no |
Undocumented |
| Class Variable | hyperparameters |
Undocumented |
| Instance Variable | conv |
Undocumented |
| Instance Variable | conv |
Undocumented |
| Instance Variable | embed |
Undocumented |
| Instance Variable | h |
Undocumented |
| Instance Variable | img |
Undocumented |
| Instance Variable | layers |
Undocumented |
| Instance Variable | mean |
Undocumented |
| Instance Variable | mlp |
Undocumented |
| Instance Variable | norm |
Undocumented |
| Instance Variable | num |
Undocumented |
| Instance Variable | num |
Undocumented |
| Instance Variable | num |
Undocumented |
| Instance Variable | num |
Undocumented |
| Instance Variable | split |
Undocumented |
| Instance Variable | upsample |
Undocumented |
| Instance Variable | upscale |
Undocumented |
| Instance Variable | w |
Undocumented |
| Instance Variable | window |
Undocumented |
| Method | _init |
Undocumented |