Update metaformers.py

pull/1647/head
Fredo Guan 2 years ago
parent 116345b4d3
commit 42741b7cdb

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

Loading…
Cancel
Save