fulkast commited on
Commit
f7dfd9f
·
0 Parent(s):

DRS VPT weights

Browse files
Files changed (4) hide show
  1. .gitattributes +35 -0
  2. README.md +38 -0
  3. config.json +296 -0
  4. model.safetensors +3 -0
.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ library_name: pytorch
4
+ tags:
5
+ - visual-localization
6
+ - point-cloud
7
+ - camera-relocalization
8
+ ---
9
+
10
+ # DRS-VPT
11
+
12
+ Weights for **DRS-VPT: Directly Relocalizing in a Scan with Vision Point Transformers** (ECCV 2026). The model
13
+ localizes a camera image directly in a point cloud map.
14
+
15
+ Code, demo and training: https://github.com/ori-drs/drs-vpt
16
+
17
+ ```python
18
+ from drs_vpt.hub import load_model, load_sample
19
+
20
+ model = load_model(device="cuda") # downloads these weights
21
+ sample = load_sample("kitti") # a demo map and query frame from fulkast/drs_vpt_demo_data
22
+ ```
23
+
24
+ ## Licence
25
+
26
+ The weights are released under CC BY-NC-SA 4.0 (non-commercial use only), because the training data includes
27
+ non-commercial ShareAlike datasets (KITTI, nuScenes). The code is Apache 2.0.
28
+
29
+ ## Citation
30
+
31
+ ```bibtex
32
+ @inproceedings{fu2026drsvpt,
33
+ title = {{DRS}-{VPT}: Directly Relocalizing in a Scan with Vision Point Transformers},
34
+ author = {Fu, Lanke Frank Tarimo and Fallon, Maurice},
35
+ booktitle = {Proceedings of the European Conference on Computer Vision (ECCV)},
36
+ year = {2026}
37
+ }
38
+ ```
config.json ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cloud_encoder_config": {
3
+ "attn_drop": 0.0,
4
+ "drop_path": 0.3,
5
+ "enable_flash": false,
6
+ "enable_rpe": false,
7
+ "enc_channels": [
8
+ 48,
9
+ 96,
10
+ 192,
11
+ 384,
12
+ 512
13
+ ],
14
+ "enc_depths": [
15
+ 3,
16
+ 3,
17
+ 3,
18
+ 12,
19
+ 3
20
+ ],
21
+ "enc_mode": true,
22
+ "enc_num_head": [
23
+ 3,
24
+ 6,
25
+ 12,
26
+ 24,
27
+ 32
28
+ ],
29
+ "enc_patch_size": [
30
+ 128,
31
+ 128,
32
+ 128,
33
+ 128,
34
+ 128
35
+ ],
36
+ "in_channels": 9,
37
+ "mask_token": true,
38
+ "mlp_ratio": 4,
39
+ "order": [
40
+ "z",
41
+ "z-trans",
42
+ "hilbert",
43
+ "hilbert-trans"
44
+ ],
45
+ "pre_norm": true,
46
+ "proj_drop": 0.0,
47
+ "qk_scale": null,
48
+ "qkv_bias": true,
49
+ "shuffle_orders": true,
50
+ "stride": [
51
+ 2,
52
+ 2,
53
+ 2,
54
+ 2
55
+ ],
56
+ "traceable": true,
57
+ "upcast_attention": false,
58
+ "upcast_softmax": false
59
+ },
60
+ "encoder_config": {
61
+ "data_norm_type": "dinov2",
62
+ "encoder_str": "dinov2",
63
+ "gradient_checkpointing": false,
64
+ "name": "dinov2_large",
65
+ "size": "large",
66
+ "torch_hub_force_reload": false,
67
+ "uses_torch_hub": true,
68
+ "with_registers": false
69
+ },
70
+ "geometric_input_config": {
71
+ "cam_prob": 0,
72
+ "cam_rot_encoder_config": {
73
+ "enc_embed_dim": 1024,
74
+ "encoder_str": "global_rep_encoder",
75
+ "in_chans": 4,
76
+ "name": "cam_rot_quats_encoder"
77
+ },
78
+ "cam_trans_encoder_config": {
79
+ "enc_embed_dim": 1024,
80
+ "encoder_str": "global_rep_encoder",
81
+ "in_chans": 3,
82
+ "name": "cam_trans_encoder"
83
+ },
84
+ "depth_encoder_config": {
85
+ "apply_pe": false,
86
+ "enc_embed_dim": 1024,
87
+ "encoder_str": "dense_rep_encoder",
88
+ "in_chans": 1,
89
+ "name": "depth_encoder",
90
+ "patch_size": 14
91
+ },
92
+ "depth_prob": 0,
93
+ "depth_scale_norm_all_prob": 0,
94
+ "dropout_prob": 1,
95
+ "overall_prob": 0,
96
+ "pose_scale_norm_all_prob": 0,
97
+ "ray_dirs_encoder_config": {
98
+ "apply_pe": false,
99
+ "enc_embed_dim": 1024,
100
+ "encoder_str": "dense_rep_encoder",
101
+ "in_chans": 3,
102
+ "name": "ray_dirs_encoder",
103
+ "patch_size": 14
104
+ },
105
+ "ray_dirs_prob": 0,
106
+ "scale_encoder_config": {
107
+ "enc_embed_dim": 1024,
108
+ "encoder_str": "global_rep_encoder",
109
+ "in_chans": 1,
110
+ "name": "scale_encoder"
111
+ },
112
+ "sparse_depth_prob": 0,
113
+ "sparsification_removal_percent": 0
114
+ },
115
+ "info_sharing_config": {
116
+ "custom_positional_encoding": null,
117
+ "model_return_type": "intermediate_features",
118
+ "model_type": "alternating_attention",
119
+ "module_args": {
120
+ "custom_positional_encoding": null,
121
+ "depth": 24,
122
+ "distinguish_ref_and_non_ref_views": true,
123
+ "gradient_checkpointing": false,
124
+ "indices": [
125
+ 11,
126
+ 17
127
+ ],
128
+ "input_embed_dim": 1024,
129
+ "name": "aat_24_layers_ifr",
130
+ "norm_intermediate": true,
131
+ "size": "24_layers"
132
+ }
133
+ },
134
+ "load_specific_pretrained_submodules": false,
135
+ "name": "drs-vpt",
136
+ "pred_head_config": {
137
+ "adaptor_config": {
138
+ "align_feature_init_dict": {
139
+ "confidence_type": "sigmoid",
140
+ "confidence_vmax": 1,
141
+ "confidence_vmin": 0.01,
142
+ "feature_dimension": 24,
143
+ "name": "align_feat_24"
144
+ },
145
+ "cloud_pred_init_dict": {
146
+ "confidence_type": "exp",
147
+ "confidence_vmax": Infinity,
148
+ "confidence_vmin": 0,
149
+ "depth_mode": "exp",
150
+ "depth_vmax": Infinity,
151
+ "depth_vmin": 0,
152
+ "name": "raydirs+depth+confidence",
153
+ "ray_directions_clamp_min_of_z_dir": false,
154
+ "ray_directions_mode": "linear",
155
+ "ray_directions_normalize_to_unit_image_plane": false,
156
+ "ray_directions_normalize_to_unit_sphere": true,
157
+ "ray_directions_vmax": Infinity,
158
+ "ray_directions_vmin": -Infinity,
159
+ "ray_directions_z_dir_min": -Infinity
160
+ },
161
+ "dense_pred_init_dict": {
162
+ "confidence_type": "exp",
163
+ "confidence_vmax": Infinity,
164
+ "confidence_vmin": 1,
165
+ "depth_mode": "exp",
166
+ "depth_vmax": Infinity,
167
+ "depth_vmin": 0,
168
+ "name": "raydirs+depth+pose+confidence+mask+scale",
169
+ "ray_directions_clamp_min_of_z_dir": false,
170
+ "ray_directions_mode": "linear",
171
+ "ray_directions_normalize_to_unit_image_plane": false,
172
+ "ray_directions_normalize_to_unit_sphere": true,
173
+ "ray_directions_vmax": Infinity,
174
+ "ray_directions_vmin": -Infinity,
175
+ "ray_directions_z_dir_min": -Infinity
176
+ },
177
+ "input_dim": 6,
178
+ "pose_pred_init_dict": {
179
+ "cam_trans_mode": "linear",
180
+ "cam_trans_vmax": Infinity,
181
+ "cam_trans_vmin": -Infinity,
182
+ "name": "raydirs+depth+pose+confidence+mask+scale",
183
+ "quaternions_mode": "linear",
184
+ "quaternions_normalize": true,
185
+ "quaternions_vmax": Infinity,
186
+ "quaternions_vmin": -Infinity
187
+ },
188
+ "scale_pred_init_dict": {
189
+ "mode": "exp",
190
+ "name": "raydirs+depth+pose+confidence+mask+scale",
191
+ "vmax": Infinity,
192
+ "vmin": 1e-08
193
+ },
194
+ "scene_rep_dim": 4,
195
+ "scene_rep_type": "raydirs+depth+pose",
196
+ "type": "raydirs+depth+pose+confidence+mask"
197
+ },
198
+ "adaptor_type": "raydirs+depth+pose+confidence+mask",
199
+ "align_adaptor": {
200
+ "confidence_type": "sigmoid",
201
+ "confidence_vmax": 1,
202
+ "confidence_vmin": 0.01,
203
+ "feature_dimension": 24,
204
+ "name": "align_feat_24"
205
+ },
206
+ "align_feature_head": {
207
+ "feature_dim": 24
208
+ },
209
+ "cloud_adaptor": {
210
+ "confidence_type": "exp",
211
+ "confidence_vmax": Infinity,
212
+ "confidence_vmin": 0,
213
+ "depth_mode": "exp",
214
+ "depth_vmax": Infinity,
215
+ "depth_vmin": 0,
216
+ "name": "raydirs+depth+confidence",
217
+ "ray_directions_clamp_min_of_z_dir": false,
218
+ "ray_directions_mode": "linear",
219
+ "ray_directions_normalize_to_unit_image_plane": false,
220
+ "ray_directions_normalize_to_unit_sphere": true,
221
+ "ray_directions_vmax": Infinity,
222
+ "ray_directions_vmin": -Infinity,
223
+ "ray_directions_z_dir_min": -Infinity
224
+ },
225
+ "dpt_adaptor": {
226
+ "confidence_type": "exp",
227
+ "confidence_vmax": Infinity,
228
+ "confidence_vmin": 1,
229
+ "depth_mode": "exp",
230
+ "depth_vmax": Infinity,
231
+ "depth_vmin": 0,
232
+ "name": "raydirs+depth+pose+confidence+mask+scale",
233
+ "ray_directions_clamp_min_of_z_dir": false,
234
+ "ray_directions_mode": "linear",
235
+ "ray_directions_normalize_to_unit_image_plane": false,
236
+ "ray_directions_normalize_to_unit_sphere": true,
237
+ "ray_directions_vmax": Infinity,
238
+ "ray_directions_vmin": -Infinity,
239
+ "ray_directions_z_dir_min": -Infinity
240
+ },
241
+ "feature_head": {
242
+ "checkpoint_gradient": false,
243
+ "feature_dim": 256,
244
+ "hooks": [
245
+ 0,
246
+ 1,
247
+ 2,
248
+ 3
249
+ ],
250
+ "input_feature_dims": [
251
+ 1024,
252
+ 768,
253
+ 768,
254
+ 768
255
+ ],
256
+ "patch_size": 14
257
+ },
258
+ "gradient_checkpointing": false,
259
+ "pose_adaptor": {
260
+ "cam_trans_mode": "linear",
261
+ "cam_trans_vmax": Infinity,
262
+ "cam_trans_vmin": -Infinity,
263
+ "name": "raydirs+depth+pose+confidence+mask+scale",
264
+ "quaternions_mode": "linear",
265
+ "quaternions_normalize": true,
266
+ "quaternions_vmax": Infinity,
267
+ "quaternions_vmin": -Infinity
268
+ },
269
+ "pose_head": {
270
+ "input_feature_dim": 768,
271
+ "num_resconv_block": 2,
272
+ "patch_size": 14,
273
+ "rot_representation_dim": 4
274
+ },
275
+ "regressor_head": {
276
+ "checkpoint_gradient": false,
277
+ "input_feature_dim": 256,
278
+ "output_dim": 6
279
+ },
280
+ "scale_adaptor": {
281
+ "mode": "exp",
282
+ "name": "raydirs+depth+pose+confidence+mask+scale",
283
+ "vmax": Infinity,
284
+ "vmin": 1e-08
285
+ },
286
+ "scale_head": {
287
+ "input_feature_dim": 768,
288
+ "output_dim": 1
289
+ },
290
+ "type": "dpt+pose"
291
+ },
292
+ "pretrained_checkpoint_path": null,
293
+ "skip_encoder_pretrain": true,
294
+ "specific_pretrained_submodules": [],
295
+ "torch_hub_force_reload": false
296
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80c790017158640dfd3799f62be870815663838ba0735136e8ca028ab984a728
3
+ size 2676732796