-
Hey folks, I have a question regarding the UNet network for segmentation purposes. I want to add a second head to the UNet for a second loss calculation. The UNet parameters for the are the following:
I want to access the bottleneck layer to put a projection head on it. If I get it right the UNet is build from the bottom layer recursively to the top with several nn.Sequential blocks. This makes it hard to iterate over the layers. In a hard coded network I could simply go for something like Tl;dr: Access the tensor/layer of the bottleneck in the MONAI UNet for further use. First discussion btw. I hope I could explain my problem properly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @hellebe,
|
Beta Was this translation helpful? Give feedback.
Hi @hellebe,
Since both UNet and DynUNet were rewritten in a recursive manner. It may not be easy to get the bottom latent layer.
Here, I showed an ugly way to access the bottom bottleneck. Hope it may help.