Skip to content

Commit 6cec2f0

Browse files
committed
Make default out_indices use stage outputs and skip the dct out
1 parent 4706c8e commit 6cec2f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

timm/models/csatv2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,12 +774,13 @@ def remap_stage(m):
774774

775775

776776
def _create_csatv2(variant: str, pretrained: bool = False, **kwargs) -> CSATv2:
777+
out_indices = kwargs.pop('out_indices', (1, 2, 3, 4))
777778
return build_model_with_cfg(
778779
CSATv2,
779780
variant,
780781
pretrained,
781782
pretrained_filter_fn=checkpoint_filter_fn,
782-
feature_cfg=dict(out_indices=(0, 1, 2, 3, 4), flatten_sequential=True),
783+
feature_cfg=dict(out_indices=out_indices, flatten_sequential=True),
783784
default_cfg=default_cfgs[variant],
784785
**kwargs,
785786
)

0 commit comments

Comments
 (0)