meddlr.modeling#
Meddlr ships with some popular models for image reconstruction and analysis tasks. These models can be configured using meddlr configuration files, which allows for faster iteration and hyperparameter management.
Meddlr also provides model blocks and layers, which are modularized components for different models. This affords the flexibility of creating new model architectures without having to re-implement useful blocks/layers.
meddlr.modeling.meta_arch#
Meddlr is composed of a series of meta-architectures, which can be leveraged in different applications.
While some of these architectures are unique to particular applications (e.g. unrolled networks for image reconstruction),
most networks are built for plug-and-play use for any application (e.g. U-Net). Some of these meta architectures
are wrappers around more basic architectures. For example, VortexModel and N2RModel wrap around other architectures.
Compressed sensing reconstruction with l1 wavelet regularization. |
|
A denoising trainer. |
|
A general implementation of the U-Net architecture. |
|
Unrolled compressed sensing model. |
|
Noise2Recon model. |
|
Self-supervised learning via data undersampling. |
|
VORTEX model. |
meddlr.modeling.layers#
Layers are the most elementary components of the model architecture. Meddlr provides a unified interface for building both default PyTorch and custom layers implemented in Meddlr.
Custom layers#
Conv2d with Weight Standardization. |
|
Conv3d with Weight Standardization. |
|
Creates an operator that blurs a tensor using a Gaussian filter. |
Build utils#
Returns the layer type based on the name and, in some cases, the dimension. |
|
Returns the layer kind based on the layer type. |
meddlr.modeling.blocks#
Layers can be assembled together to make blocks. The default blocks provided in meddlr can be constructed using sequences of strings and optional keyword arguments.
A convolutional block supporting normalization, conv, activation, and dropout. |
|
2D implementation of |
|
3D implementation of |
|
Residual block. |
|
2D implementation of :cls:`ResBlockNd`. |
|
3D implementation of |
|
|
|
2D implementation of |
|
3D implementation of |