monai.FlexibleUNet
U-Net style segmentation network whose encoder can be any registered EfficientNet or ResNet backbone.
Medical imaging · 373 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Medical imaging
- Parameters
- 7.1M
- Operations
- 373
- Framework
- PyTorch
- Recurrent
- No
- Source
- monai 1.5.2
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m7420
- Graph hash
- 57c43143624a8b3270c964a0353ef7ddc184d98647bcc5bea775efe180b1202e
- Skeleton hash
- 9433b182fcff3843307462b3633b40550aef642a5ffdde6d0723294ce2100a7a
- Architecture hash
- d0a5b0e3b1fb0505820117fd83eed75a9fed37bce9253b3460a242fd92ac7461
- Diagram SHA-256
- 3047c05a21a003eeaf2886a61a13c5d5bd3bf71968391f8ae3c8200d8cf51601
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
monai.networks.nets.flexible_unet.FlexibleUNet(in_channels=3, out_channels=2, backbone='efficientnet-b0', pretrained=False, spatial_dims=2)
What it is
FlexibleUNet is MONAI's flexible implementation of a UNet-like encoder-decoder architecture. Its backbone or encoder can be swapped for any registered efficient or residual network, currently EfficientNet b0 through b8 and l2 or ResNet 10 through 200. Inputs may have 2 or 3 spatial dimensions, and each spatial size must be a multiple of 32 unless padding is enabled.
The decoder follows the UNet decoder of segmentation_models.pytorch, upsampling and concatenating encoder skip features at each stage, with default channel widths of 256, 128, 64, 32 and 16. Upsampling can be a transposed convolution, pixel shuffle or a non-trainable interpolation, and padding lets the input take arbitrary spatial sizes. A segmentation head with a 3-wide convolution produces raw predictions with one channel per output class. ImageNet weights can be loaded for 2D EfficientNet encoders and MedicalNet weights for 3D single-channel ResNet encoders, but pretrained initialization is off by default.
The model comes from MONAI, a PyTorch-based open-source framework for deep learning in healthcare imaging.
Key idea. FlexibleUNet lets a U-Net decoder sit on any registered EfficientNet or ResNet encoder, in 2D or 3D, with optional pretrained encoder weights.
- flexibleunet
- flexunet
- u-net
- efficientnet backbone
- resnet backbone
- segmentation
- medical image segmentation
- encoder-decoder
- monai
- replaceable encoder
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.