timm documentation

DLA

You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v1.0.30).
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

DLA

Category: CNN · Code: timm/models/dla.py · Architectures: 12 · Pretrained weights: 12 (12 with ImageNet-1k results)

Deep Layer Aggregation (DLA) networks merge features across blocks and stages with iterative and hierarchical aggregation nodes. Includes DLA variants built from Res2Net blocks.

Papers

Usage

See the Quickstart for loading pretrained weights, image preprocessing and fine-tuning, and Feature Extraction for using the models as backbones.

>>> import timm
>>> model = timm.create_model('dla102x.in1k', pretrained=True)
>>> data_config = timm.data.resolve_model_data_config(model)

Model API support

FeatureDLA
features_only=True feature maps✓ (strides 2, 4, 8, 16, 32)
forward_intermediates()✗
prune_intermediate_layers()✗
Any input size, no changes needed✓
set_input_size()–
dynamic_img_size=True–
set_grad_checkpointing()✗
Layer-wise LR decay (group_matcher())✓
reset_classifier()✓

✓ supported, ✓ (square) works for square sizes only, ✗ not supported, – not needed (the model already accepts any input size). Checked by running each feature on a randomly initialized model (DLA with dla46x_c at 224), other architectures of the same class are expected to behave the same. See the Model API page for details.

Architectures

ArchitectureParams (M)GMACsInput sizePretrained weights
dla3415.743.072241
dla46_c1.300.582241
dla46x_c1.070.542241
dla6022.044.262241
dla60_res2net20.854.152241
dla60_res2next17.033.492241
dla60x17.353.542241
dla60x_c1.320.592241
dla10233.277.192241
dla102x26.315.892241
dla102x241.289.342241
dla16953.3911.602241

GMACs and parameter counts are for the default input size and classifier of each architecture, from the benchmark results.

Pretrained weights

Top-1 is ImageNet-1k validation accuracy from results-imagenet.csv at the listed eval size, - if the weight has no ImageNet-1k result (e.g. pretraining or image-text weights). Classes is the size of the pretrained classifier, none for weights without one.

WeightInput sizeTop-1 (%)Eval sizeClassesLicenseHub
dla34.in1k22474.6322241000bsd-3-clausetimm
dla46_c.in1k22464.8802241000bsd-3-clausetimm
dla46x_c.in1k22466.0082241000bsd-3-clausetimm
dla60.in1k22477.0362241000bsd-3-clausetimm
dla60_res2net.in1k22478.4802241000unknowntimm
dla60_res2next.in1k22478.4882241000unknowntimm
dla60x.in1k22478.2342241000bsd-3-clausetimm
dla60x_c.in1k22467.9282241000bsd-3-clausetimm
dla102.in1k22478.0162241000bsd-3-clausetimm
dla102x.in1k22478.5162241000bsd-3-clausetimm
dla102x2.in1k22479.4482241000bsd-3-clausetimm
dla169.in1k22478.7022241000bsd-3-clausetimm
Update on GitHub