try modify swin
This commit is contained in:
parent
805d4fb536
commit
b661823661
12
models.py
12
models.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user