MIR.models.Deformable_Swin_Transformer_v2
Deformable Swin Transformer v2 backbone for 3D registration.
Functions
|
|
|
|
|
Classes
|
A basic Swin Transformer layer for one stage. |
|
Deformable Swin Transformer |
|
LayerNorm applied over channel-last representation. |
|
Feed-forward MLP block used inside transformer blocks. |
|
Offset prediction block for deformable attention. |
|
Offset prediction block for deformable attention (lightweight). |
|
Image to Patch Embedding :param patch_size: Patch token size. |
|
Patch Merging Layer. |
|
|
|
Rotary Position Embedding |
|
Swin Transformer Block. |
|
Window based multi-head self attention (W-MSA) module with relative position bias. |
|