Update metaformers.py

pull/1647/head
Fredo Guan 2 years ago
parent 42741b7cdb
commit 0bde1c1218

@ -601,10 +601,11 @@ class MetaFormer(nn.Module):
res_scale_init_value=res_scale_init_values[i],
) for j in range(depths[i])]
)
stages.append(downsample_layers[i])
stages.append(stage)
cur += depths[i]
self.stages = nn.Sequential(zip(*downsample_layers, *stages))
self.stages = nn.Sequential(*stages)
self.norm = output_norm(dims[-1])

Loading…
Cancel
Save