Unetr bottleneck layer weight freezing for transfer learning #1376
-
Dear MONAI Community, I want to freeze the weights of the bottleneck layers of Unetr for transfer learning: Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @justinzhang528 , you could see the forward function in UNETR. the so called bottleneck layer output should be the "x"
I assume what you need to freeze is the self.vit, and "x" is the bottleneck feature, you can also get intermediate (hidden) features from VIT at different blocks. |
Beta Was this translation helpful? Give feedback.
@tangy5 Sorry, I want to know bottleneck feature about SwinUnetr as well
Here are SwinUnetr layer weights: