Intel/dpt-large
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
| Kind | Original | Fixture | |
|---|---|---|---|
| ViTLayer | 24 | 4 | ✓ kept |
neck.reassemble_stage.layers
Original · 4
Fixture · 4
| Kind | Original | Fixture | |
|---|---|---|---|
| ConvTranspose2d | 2 | 2 | ✓ kept |
| no ConvTranspose2d | 2 | 2 | ✓ kept |
neck.reassemble_stage.readout_projects
Original · 4
Fixture · 4
| Kind | Original | Fixture | |
|---|---|---|---|
| Linear | 4 | 4 | ✓ kept |
neck.fusion_stage.layers
Original · 4
Fixture · 4
| Kind | Original | Fixture | |
|---|---|---|---|
| FeatureFusionLayer | 4 | 4 | ✓ 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
| Component | Original | Share | Fixture | Share |
|---|---|---|---|---|
| dpt.encoder.layer | 302.3M | 88.1% | 133.9K | 12.8% |
| neck.reassemble_stage.layers | 14.4M | 4.2% | 56.6K | 5.4% |
| neck.fusion_stage.layers | 9.7M | 2.8% | 607.5K | 58.1% |
| neck.reassemble_stage.readout_projects | 8.4M | 2.4% | 33.0K | 3.2% |
| neck.convs | 6.5M | 1.9% | 101.4K | 9.7% |
| dpt.embeddings | 1.4M | 0.4% | 86.2K | 8.2% |
| head.head | 332.0K | 0.1% | 27.7K | 2.7% |
| 1 others | 2.0K | 0.0% | 128 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | dpt | dpt | ✓ kept |
| model | hidden_act | gelu | gelu | ✓ kept |
| model | image_size | 384 | 384 | ✓ kept |
| model | patch_size | 16 | 16 | ✓ kept |
| model | num_channels | 3 | 3 | ✓ kept |
Module classes
Instances of each class in the built model (prefix DPT omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 148 | 28 |
| Dropout | 49 | 9 |
| LayerNorm | 49 | 9 |
| Conv2d | 33 | 33 |
| GELUActivation | 28 | 8 |
| SelfAttention | 24 | 4 |
| ViTAttention | 24 | 4 |
| ViTIntermediate | 24 | 4 |
| ViTLayer | 24 | 4 |
| ViTOutput | 24 | 4 |
| ViTSelfOutput | 24 | 4 |
| ReLU | 18 | 18 |
| PreActResidualLayer | 8 | 8 |
| ModuleList | 5 | 5 |
| Sequential | 5 | 5 |
| FeatureFusionLayer | 4 | 4 |
| ReassembleLayer | 4 | 4 |
| ConvTranspose2d | 2 | 2 |
| DepthEstimationHead | 1 | 1 |
| FeatureFusionStage | 1 | 1 |
| ForDepthEstimation | 1 | 1 |
| Model | 1 | 1 |
| Neck | 1 | 1 |
| ReassembleStage | 1 | 1 |
| ViTEmbeddings | 1 | 1 |
| ViTEncoder | 1 | 1 |
| ViTPatchEmbeddings | 1 | 1 |
| Identity | 1 | 1 |
| Upsample | 1 | 1 |
Config changes
7 fields changed, 34 unchanged.
| Field | Original | Fixture |
|---|---|---|
| backbone_out_indices | [5, 11, 17, 23] | [0, 1, 2, 3] |
| fusion_hidden_size | 256 | 64 |
| hidden_size | 1024 | 64 |
| intermediate_size | 4096 | 128 |
| neck_hidden_sizes | [256, 512, 1024, 1024] | [16, 32, 64, 64] |
| num_attention_heads | 16 | 4 |
| num_hidden_layers | 24 | 4 |