salad.models.vision packageΒΆ
SubmodulesΒΆ
salad.models.vision.unet moduleΒΆ
Models for image registration
-
class
salad.models.vision.unet.
UNet
(n_channels, n_classes, channels=[16, 16, 32, 32])ΒΆ Bases:
torch.nn.modules.module.Module
-
forward
(x)ΒΆ 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.
-
get_n_params
()ΒΆ
-
-
class
salad.models.vision.unet.
double_conv
(in_ch, out_ch)ΒΆ Bases:
torch.nn.modules.module.Module
(conv => BN => ReLU) * 2
-
forward
(x)ΒΆ 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
salad.models.vision.unet.
down
(in_ch, out_ch)ΒΆ Bases:
torch.nn.modules.module.Module
-
forward
(x)ΒΆ 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
salad.models.vision.unet.
inconv
(in_ch, out_ch)ΒΆ Bases:
torch.nn.modules.module.Module
-
forward
(x)ΒΆ 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
salad.models.vision.unet.
outconv
(in_ch, out_ch)ΒΆ Bases:
torch.nn.modules.module.Module
-
forward
(x)ΒΆ 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
salad.models.vision.unet.
up
(in_ch, out_ch, bilinear=True)ΒΆ Bases:
torch.nn.modules.module.Module
-
forward
(x1, x2)ΒΆ 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.
-