MONAI icon indicating copy to clipboard operation
MONAI copied to clipboard

Support for pre-activation residual blocks in SwinUNETR

Open philnovv opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. SwinUNETR v2 (https://rdcu.be/dnwDO) suggest the use of pre-activation residual blocks. As it stands, the MONAI implementation of SwinUNETR only accommodates post-activation residual blocks (setting res_block = True when calling UnetrBasicBlock).

Describe the solution you'd like An option to specify whether pre- or post-activation should be used when initializing UnetrBasicBlock. UnetrBasicBlock calls monai.networks.blocks.dynunet_block.UnetResBlock during init; the latter can be easily changed to accept an additional str input specifying the type of residual block required.

philnovv avatar May 13 '24 13:05 philnovv