Double Convolution
- class vformer.decoder.task_heads.segmentation.head.DoubleConv(in_channels, out_channels)[source]
Bases:
Module
Module consisting of two convolution layers and activations
- 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 vformer.decoder.task_heads.segmentation.head.SegmentationHead(out_channels=1, embed_dims=[64, 128, 256, 512])[source]
Bases:
Module
U-net like up-sampling block
- forward(skip_connections)[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.