try modify swin

This commit is contained in:
thanhvc3 2024-04-29 17:15:54 +07:00
parent 805d4fb536
commit b661823661

View File

@ -565,12 +565,12 @@ class FouriER(torch.nn.Module):
if downsamples[i] or embed_dims[i] != embed_dims[i+1]:
# downsampling between two stages
network.append(
# PatchEmbed(
# patch_size=down_patch_size, stride=down_stride,
# padding=down_pad,
# in_chans=embed_dims[i], embed_dim=embed_dims[i+1]
# )
PatchMerging(dim=embed_dims[i+1])
PatchEmbed(
patch_size=down_patch_size, stride=down_stride,
padding=down_pad,
in_chans=embed_dims[i], embed_dim=embed_dims[i+1]
)
# PatchMerging(dim=embed_dims[i+1])
)
self.network = nn.ModuleList(network)