lpiccinelli commited on
Commit
694ed6e
·
verified ·
1 Parent(s): 1d0d3c5

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. config.json +152 -29
  3. model.safetensors +2 -2
README.md CHANGED
@@ -1,9 +1,9 @@
1
  ---
2
  library_name: UniDepth
3
  tags:
 
4
  - monocular-metric-depth-estimation
5
  - pytorch_model_hub_mixin
6
- - model_hub_mixin
7
  ---
8
 
9
  This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
 
1
  ---
2
  library_name: UniDepth
3
  tags:
4
+ - model_hub_mixin
5
  - monocular-metric-depth-estimation
6
  - pytorch_model_hub_mixin
 
7
  ---
8
 
9
  This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
config.json CHANGED
@@ -1,24 +1,49 @@
1
  {
2
  "data": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "image_shape": [
4
- 420,
5
- 560
6
  ],
7
- "shape_constraints": {
8
- "patch_size": 14,
9
- "pixels_bounds": [
10
- 1400,
11
- 2400
12
- ],
13
- "pixels_bounds_ori": [
14
- 1400,
15
- 2400
16
- ],
17
- "ratio_bounds": [
18
- 0.66,
19
- 2.0
20
- ]
21
- }
22
  },
23
  "eps": 1e-06,
24
  "generic": {
@@ -27,22 +52,52 @@
27
  },
28
  "model": {
29
  "expansion": 4,
 
30
  "name": "UniDepthV2",
31
  "num_heads": 8,
32
  "pixel_decoder": {
33
  "depths": [
34
- 6,
35
- 0,
36
- 0
37
  ],
38
  "dropout": 0.0,
39
- "hidden_dim": 512
 
 
 
40
  },
41
  "pixel_encoder": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  "depths": [
43
- 21,
44
- 22,
45
- 23,
46
  24
47
  ],
48
  "embed_dim": 1024,
@@ -72,18 +127,86 @@
72
  1024,
73
  1024
74
  ],
 
 
 
75
  "name": "dinov2_vitl14",
 
76
  "output_idx": [
77
- 21,
78
- 22,
79
- 23,
80
  24
81
  ],
82
  "patch_size": 14,
83
  "pretrained": null,
84
  "stacking_fn": "last",
85
- "use_norm": true
 
86
  }
87
  },
88
- "training": {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  }
 
1
  {
2
  "data": {
3
+ "augmentations": {
4
+ "blur_p": 0.2,
5
+ "flip_p": 0.5,
6
+ "gamma_p": 0.8,
7
+ "grayscale_p": 0.2,
8
+ "jitter_p": 0.8,
9
+ "random_blur": 2.0,
10
+ "random_gamma": 0.2,
11
+ "random_jitter": 0.4,
12
+ "random_scale": 2.0,
13
+ "shape_constraints": {
14
+ "height_min": 15,
15
+ "pixels_max": 200000,
16
+ "pixels_min": 600000,
17
+ "ratio_bounds": [
18
+ 0.5,
19
+ 2.5
20
+ ],
21
+ "sample": true,
22
+ "shape_mult": 14,
23
+ "width_min": 15
24
+ },
25
+ "test_context": 1.0
26
+ },
27
+ "crop": "garg",
28
+ "data_root": "datasets",
29
  "image_shape": [
30
+ 480,
31
+ 640
32
  ],
33
+ "normalization": "imagenet",
34
+ "num_copies": 2,
35
+ "num_frames": 1,
36
+ "sampling": {
37
+ "ETH3D": 1.0,
38
+ "Waymo": 1.0
39
+ },
40
+ "train_datasets": [
41
+ "ETH3D",
42
+ "Waymo"
43
+ ],
44
+ "val_datasets": [
45
+ "IBims"
46
+ ]
 
47
  },
48
  "eps": 1e-06,
49
  "generic": {
 
52
  },
53
  "model": {
54
  "expansion": 4,
55
+ "layer_scale": 1.0,
56
  "name": "UniDepthV2",
57
  "num_heads": 8,
58
  "pixel_decoder": {
59
  "depths": [
60
+ 2,
61
+ 2,
62
+ 2
63
  ],
64
  "dropout": 0.0,
65
+ "hidden_dim": 512,
66
+ "kernel_size": 3,
67
+ "name": "Decoder",
68
+ "out_dim": 64
69
  },
70
  "pixel_encoder": {
71
+ "cls_token_embed_dims": [
72
+ 1024,
73
+ 1024,
74
+ 1024,
75
+ 1024,
76
+ 1024,
77
+ 1024,
78
+ 1024,
79
+ 1024,
80
+ 1024,
81
+ 1024,
82
+ 1024,
83
+ 1024,
84
+ 1024,
85
+ 1024,
86
+ 1024,
87
+ 1024,
88
+ 1024,
89
+ 1024,
90
+ 1024,
91
+ 1024,
92
+ 1024,
93
+ 1024,
94
+ 1024,
95
+ 1024
96
+ ],
97
  "depths": [
98
+ 6,
99
+ 12,
100
+ 18,
101
  24
102
  ],
103
  "embed_dim": 1024,
 
127
  1024,
128
  1024
129
  ],
130
+ "freeze_norm": true,
131
+ "frozen_stages": 0,
132
+ "lr": 2e-06,
133
  "name": "dinov2_vitl14",
134
+ "num_register_tokens": 0,
135
  "output_idx": [
136
+ 6,
137
+ 12,
138
+ 18,
139
  24
140
  ],
141
  "patch_size": 14,
142
  "pretrained": null,
143
  "stacking_fn": "last",
144
+ "use_norm": true,
145
+ "wd": 0.1
146
  }
147
  },
148
+ "training": {
149
+ "batch_size": 8,
150
+ "clipping": 1.0,
151
+ "cycle_beta": false,
152
+ "drop_path": 0.0,
153
+ "ema": true,
154
+ "f16": true,
155
+ "ld": 1.0,
156
+ "losses": {
157
+ "camera": {
158
+ "alpha": 1.0,
159
+ "fn": "l2",
160
+ "gamma": 1.0,
161
+ "input_fn": "linear",
162
+ "name": "Regression",
163
+ "output_fn": "sqrt",
164
+ "weight": 0.25
165
+ },
166
+ "confidence": {
167
+ "alpha": 1.0,
168
+ "fn": "l1",
169
+ "gamma": 1.0,
170
+ "input_fn": "linear",
171
+ "name": "Regression",
172
+ "output_fn": "sqrt",
173
+ "weight": 0.1
174
+ },
175
+ "depth": {
176
+ "dims": [
177
+ -2,
178
+ -1
179
+ ],
180
+ "input_fn": "log",
181
+ "integrated": 0.15,
182
+ "name": "SILog",
183
+ "output_fn": "sqrt",
184
+ "weight": 1.0
185
+ },
186
+ "invariance": {
187
+ "name": "SelfDistill",
188
+ "output_fn": "sqrt",
189
+ "weight": 0.1
190
+ },
191
+ "ssi": {
192
+ "input_fn": "log1i",
193
+ "min_samples": 6,
194
+ "name": "EdgeGuidedLocalSSI",
195
+ "output_fn": "sqrt",
196
+ "use_global": true,
197
+ "weight": 1.0
198
+ }
199
+ },
200
+ "lr": 0.0001,
201
+ "lr_final": 1e-06,
202
+ "lr_warmup": 1.0,
203
+ "n_iters": 300000,
204
+ "nsteps_accumulation_gradient": 2,
205
+ "pretrained": "/srv/beegfs02/scratch/3d_tracking/data/pami2025_unidepth/checkpoints/unidepth-v2-vitl14.pt",
206
+ "use_checkpoint": false,
207
+ "validation_interval": 2,
208
+ "warmup_iters": 75000,
209
+ "wd": 0.1,
210
+ "wd_final": 0.1
211
+ }
212
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:13952af59d28d21d4de5873f8b8bf6d679c5dd031dbf7f9e5818cbeca579f6af
3
- size 1452916608
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba73d3de735302ccc64a50f1e557122050c4b1893e6060b28dba05d6af3e67c6
3
+ size 1415383604