Skip to content

Commit

Permalink
Update ssl_head.py (Project-MONAI#91)
Browse files Browse the repository at this point in the history
Model name needs to be changed at line 88 to match the change made in the last update at line 23.
  • Loading branch information
numanai authored Aug 13, 2022
1 parent 659d711 commit 32c8209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwinUNETR/Pretrain/models/ssl_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self, args, upsample='vae', dim=768):
)

def forward(self, x):
x_out = self.swin_vit(x.contiguous())[4]
x_out = self.swinViT(x.contiguous())[4]
_, c, h, w, d = x_out.shape
x4_reshape = x_out.flatten(start_dim=2, end_dim=4)
x4_reshape = x4_reshape.transpose(1, 2)
Expand Down

0 comments on commit 32c8209

Please sign in to comment.