mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Update metaformers.py
This commit is contained in:
parent
116345b4d3
commit
42741b7cdb
@ -601,7 +601,7 @@ class MetaFormer(nn.Module):
|
||||
res_scale_init_value=res_scale_init_values[i],
|
||||
) for j in range(depths[i])]
|
||||
)
|
||||
self.stages.append(stage)
|
||||
stages.append(stage)
|
||||
cur += depths[i]
|
||||
|
||||
self.stages = nn.Sequential(zip(*downsample_layers, *stages))
|
||||
|
Loading…
x
Reference in New Issue
Block a user