← MIC coverage of Transformers model types

Intel/dpt-large

huggingface-mic/dpt-large-mic@fef05122ed4b ← Intel/dpt-large@bc15f29aa3a8 · DPTForDepthEstimation · overfit weights

CI: no failure on main in 30 days · MIC failures dashboard

Original343.0Mparameters
Fixture1.0Mparameters
Layer stacks4compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Layer stacks

One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.

dpt.encoder.layer

Original · 24
Fixture · 4
KindOriginalFixture
ViTLayer244✓ kept

neck.reassemble_stage.layers

Original · 4
Fixture · 4
KindOriginalFixture
ConvTranspose2d22✓ kept
no ConvTranspose2d22✓ kept

neck.reassemble_stage.readout_projects

Original · 4
Fixture · 4
KindOriginalFixture
Linear44✓ kept

neck.fusion_stage.layers

Original · 4
Fixture · 4
KindOriginalFixture
FeatureFusionLayer44✓ kept

Where the parameters are

Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.

Original
Fixture
ComponentOriginalShareFixtureShare
dpt.encoder.layer302.3M88.1%133.9K12.8%
neck.reassemble_stage.layers14.4M4.2%56.6K5.4%
neck.fusion_stage.layers9.7M2.8%607.5K58.1%
neck.reassemble_stage.readout_projects8.4M2.4%33.0K3.2%
neck.convs6.5M1.9%101.4K9.7%
dpt.embeddings1.4M0.4%86.2K8.2%
head.head332.0K0.1%27.7K2.7%
1 others2.0K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedptdpt✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size384384✓ kept
modelpatch_size1616✓ kept
modelnum_channels33✓ kept

Module classes

Instances of each class in the built model (prefix DPT omitted).

ClassOriginalFixture
Linear14828
Dropout499
LayerNorm499
Conv2d3333
GELUActivation288
SelfAttention244
ViTAttention244
ViTIntermediate244
ViTLayer244
ViTOutput244
ViTSelfOutput244
ReLU1818
PreActResidualLayer88
ModuleList55
Sequential55
FeatureFusionLayer44
ReassembleLayer44
ConvTranspose2d22
DepthEstimationHead11
FeatureFusionStage11
ForDepthEstimation11
Model11
Neck11
ReassembleStage11
ViTEmbeddings11
ViTEncoder11
ViTPatchEmbeddings11
Identity11
Upsample11

Config changes

7 fields changed, 34 unchanged.

FieldOriginalFixture
backbone_out_indices[5, 11, 17, 23][0, 1, 2, 3]
fusion_hidden_size25664
hidden_size102464
intermediate_size4096128
neck_hidden_sizes[256, 512, 1024, 1024][16, 32, 64, 64]
num_attention_heads164
num_hidden_layers244