mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
set self.num_features to neck_chans if neck_chans > 0
This commit is contained in:
parent
3a44e6c602
commit
2048f6f20f
@ -434,6 +434,7 @@ class VisionTransformerSAM(nn.Module):
|
||||
),
|
||||
LayerNorm2d(neck_chans),
|
||||
)
|
||||
self.num_features = neck_chans
|
||||
else:
|
||||
self.neck = nn.Identity()
|
||||
neck_chans = embed_dim
|
||||
|
Loading…
x
Reference in New Issue
Block a user