rsi commited on
Commit
b5bf527
·
2 Parent(s): 6a1b465 9804055

merge to soph

Browse files
backbones/DINOv3_LICENSE.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DINOv3 License
2
+
3
+ *Last Updated: August 19, 2025*
4
+
5
+ **“Agreement”** means the terms and conditions for use, reproduction, distribution and modification of the DINO Materials set forth herein.
6
+
7
+ **“DINO Materials”** means, collectively, Documentation and the models, software and algorithms, including machine-learning model code, trained model weights, inference-enabling code, training-enabling code, fine-tuning enabling code, and other elements of the foregoing distributed by Meta and made available under this Agreement.
8
+
9
+ **“Documentation”** means the specifications, manuals and documentation accompanying
10
+ DINO Materials distributed by Meta.
11
+
12
+ **“Licensee”** or **“you”** means you, or your employer or any other person or entity (if you are entering into this Agreement on such person or entity’s behalf), of the age required under applicable laws, rules or regulations to provide legal consent and that has legal authority to bind your employer or such other person or entity if you are entering in this Agreement on their behalf.
13
+
14
+ **“Meta”** or **“we”** means Meta Platforms Ireland Limited (if you are located in or, if you are an entity, your principal place of business is in the EEA or Switzerland) or Meta Platforms, Inc. (if you are located outside of the EEA or Switzerland).
15
+
16
+ **“Sanctions”** means any economic or trade sanctions or restrictions administered or enforced by the United States (including the Office of Foreign Assets Control of the U.S. Department of the Treasury (“OFAC”), the U.S. Department of State and the U.S. Department of Commerce), the United Nations, the European Union, or the United Kingdom.
17
+
18
+ **“Trade Controls”** means any of the following: Sanctions and applicable export and import controls.
19
+
20
+ By clicking “I Accept” below or by using or distributing any portion or element of the DINO Materials, you agree to be bound by this Agreement.
21
+
22
+ ## 1. License Rights and Redistribution.
23
+
24
+ a. <ins>Grant of Rights</ins>. You are granted a non-exclusive, worldwide, non-transferable and royalty-free limited license under Meta’s intellectual property or other rights owned by Meta embodied in the DINO Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the DINO Materials.
25
+
26
+ b. <ins>Redistribution and Use</ins>.
27
+
28
+ i. Distribution of DINO Materials, and any derivative works thereof, are subject to the terms of this Agreement. If you distribute or make the DINO Materials, or any derivative works thereof, available to a third party, you may only do so under the terms of this Agreement and you shall provide a copy of this Agreement with any such DINO Materials.
29
+
30
+ ii. If you submit for publication the results of research you perform on, using, or otherwise in connection with DINO Materials, you must acknowledge the use of DINO Materials in your publication.
31
+
32
+ iii. Your use of the DINO Materials must comply with applicable laws and regulations, including Trade Control Laws and applicable privacy and data protection laws.
33
+
34
+ iv. Your use of the DINO Materials will not involve or encourage others to reverse engineer, decompile or discover the underlying components of the DINO Materials.
35
+
36
+ v. You are not the target of Trade Controls and your use of DINO Materials must comply with Trade Controls. You agree not to use, or permit others to use, DINO Materials for any activities subject to the International Traffic in Arms Regulations (ITAR) or end uses prohibited by Trade Controls, including those related to military or warfare purposes, nuclear industries or applications, espionage, or the development or use of guns or illegal weapons.
37
+
38
+ ## 2. User Support.
39
+
40
+ Your use of the DINO Materials is done at your own discretion; Meta does not process any information nor provide any service in relation to such use. Meta is under no obligation to provide any support services for the DINO Materials. Any support provided is “as is”, “with all faults”, and without warranty of any kind.
41
+
42
+ ## 3. Disclaimer of Warranty.
43
+
44
+ UNLESS REQUIRED BY APPLICABLE LAW, THE DINO MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE DINO MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE DINO MATERIALS AND ANY OUTPUT AND RESULTS.
45
+
46
+ ## 4. Limitation of Liability.
47
+
48
+ IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY DIRECT OR INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
49
+
50
+ ## 5. Intellectual Property.
51
+
52
+ a. Subject to Meta’s ownership of DINO Materials and derivatives made by or for Meta, with respect to any derivative works and modifications of the DINO Materials that are made by you, as between you and Meta, you are and will be the owner of such derivative works and modifications.
53
+
54
+ b. If you institute litigation or other proceedings against Meta or any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the DINO Materials, outputs or results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other rights owned or licensable by you, then any licenses granted to you under this Agreement shall terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold harmless Meta from and against any claim by any third party arising out of or related to your use or distribution of the DINO Materials.
55
+
56
+ ## 6. Term and Termination.
57
+
58
+ The term of this Agreement will commence upon your acceptance of this Agreement or access to the DINO Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein. Meta may terminate this Agreement if you are in breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete and cease use of the DINO Materials. Sections 3, 4 and 7 shall survive the termination of this Agreement.
59
+
60
+ ## 7. Governing Law and Jurisdiction.
61
+
62
+ This Agreement will be governed and construed under the laws of the State of California without regard to choice of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement. The courts of California shall have exclusive jurisdiction of any dispute arising out of this Agreement.
63
+
64
+ ## 8. Modifications and Amendments.
65
+
66
+ Meta may modify this Agreement from time to time; provided that they are similar in spirit to the current version of the Agreement, but may differ in detail to address new problems or concerns. All such changes will be effective immediately. Your continued use of the DINO Materials after any modification to this Agreement constitutes your agreement to such modification. Except as provided in this Agreement, no modification or addition to any provision of this Agreement will be binding unless it is in writing and signed by an authorized representative of both you and Meta.
backbones/dinov3_convnext_small_pretrain_lvd1689m-296db49d.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:296db49dcbd622625befd3fc23318cbbcd98049f4c4b0cc026463de6bcd24952
3
+ size 201537738
backbones/dinov3_convnext_tiny_pretrain_lvd1689m-21b726bb.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21b726bb286e037f00a23fb4699fa9bda9c75b6a615bd57ce3013cec1b528d54
3
+ size 112235916
backbones/dinov3_vits16_pretrain_lvd1689m-08c60483.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08c60483bc63c04f533611e34bf70b120eedb7240f469bc16e9e20bf344b941d
3
+ size 86531063
backbones/dinov3_vits16plus_pretrain_lvd1689m-4057cbaa.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4057cbaaad8c16657adb09d6815f28d4164eeba30532fde23f0d17313124caea
3
+ size 114924783
pix2poly/224/building_fusion/.hydra/config.yaml DELETED
@@ -1,122 +0,0 @@
1
- host:
2
- name: gin
3
- data_root: /data/rsulzer/${..dataset.name}_dataset
4
- model_root: /data/rsulzer/${..dataset.name}_output
5
- multi_gpu: false
6
- device: cuda
7
- update_pbar_every: 1
8
- ldof_exe: /user/rsulzer/home/cpp/line-DOF-metric/build/calculate_DoF
9
- dino_v2_repo: /user/rsulzer/home/remote_python/dinov2
10
- run_type:
11
- name: release
12
- batch_size: 16
13
- train_subset: null
14
- val_subset: null
15
- test_subset: null
16
- logging: INFO
17
- num_workers: 16
18
- log_to_wandb: true
19
- dataset:
20
- name: PixelsPointsPolygons
21
- size: ${..experiment.encoder.in_size}
22
- path: ${host.data_root}/data/${.size}
23
- annotations:
24
- train: ${..path}/annotations/${...experiment.annotation_type}/annotations_${...experiment.country}_train.json
25
- val: ${..path}/annotations/${...experiment.annotation_type}/annotations_${...experiment.country}_val.json
26
- test: ${..path}/annotations/${...experiment.annotation_type}/annotations_${...experiment.country}_test.json
27
- ffl_stats:
28
- train: ${..path}/ffl/train/stats-${...experiment.country}.pt
29
- val: ${..path}/ffl/val/stats-${...experiment.country}.pt
30
- test: ${..path}/ffl/test/stats-${...experiment.country}.pt
31
- train_subset: ${..run_type.train_subset}
32
- val_subset: ${..run_type.val_subset}
33
- test_subset: ${..run_type.test_subset}
34
- experiment:
35
- encoder:
36
- name: early_fusion_vit
37
- use_images: true
38
- use_lidar: true
39
- in_size: 224
40
- in_height: ${.in_size}
41
- in_width: ${.in_size}
42
- in_voxel_size:
43
- x: 8
44
- 'y': 8
45
- z: 100
46
- max_num_points_per_voxel: 64
47
- max_num_voxels:
48
- train: 784
49
- test: 784
50
- out_feature_width: 28
51
- out_feature_height: 28
52
- vit:
53
- type: vit_small_patch${..patch_size}_${..in_size}.dino
54
- checkpoint_file: ${....host.model_root}/backbones/dino_deitsmall8_pretrain.pth
55
- pretrained: true
56
- patch_size: 8
57
- patch_feature_size: 28
58
- patch_feature_height: ${.patch_feature_size}
59
- patch_feature_width: ${.patch_feature_size}
60
- patch_feature_dim: 384
61
- num_patches: 784
62
- out_feature_dim: ${..model.decoder.in_feature_dim}
63
- image_mean:
64
- - 0.0
65
- - 0.0
66
- - 0.0
67
- image_std:
68
- - 1.0
69
- - 1.0
70
- - 1.0
71
- image_max_pixel_value: 255.0
72
- augmentations:
73
- - D4
74
- - ColorJitter
75
- - GaussNoise
76
- - Normalize
77
- model:
78
- name: pix2poly
79
- decoder:
80
- in_feature_size: ${...encoder.patch_feature_size}
81
- in_feature_width: ${.in_feature_size}
82
- in_feature_height: ${.in_feature_size}
83
- in_feature_dim: 256
84
- tokenizer:
85
- num_bins: ${...encoder.in_size}
86
- shuffle_tokens: false
87
- n_vertices: 192
88
- max_len: null
89
- pad_idx: null
90
- generation_steps: null
91
- fusion: patch_concat
92
- sinkhorn_iterations: 100
93
- label_smoothing: 0.0
94
- vertex_loss_weight: 1.0
95
- perm_loss_weight: 10.0
96
- batch_size: ${...run_type.batch_size}
97
- start_epoch: 0
98
- num_epochs: 200
99
- milestone: 0
100
- learning_rate: 0.0003
101
- weight_decay: 0.0001
102
- name: building_fusion
103
- group_name: v3_${.model.name}
104
- lidar_dropout: null
105
- country: CH
106
- annotation_type: buildings
107
- training:
108
- save_best: true
109
- save_latest: true
110
- save_every: 10
111
- val_every: 1
112
- best_val_loss: 10000000.0
113
- best_val_iou: 0.0
114
- evaluation:
115
- split: val
116
- pred_file: ${..output_dir}/predictions_${..experiment.country}_${.split}/${..checkpoint}.json
117
- modes:
118
- - iou
119
- eval_file: results/metrics
120
- output_dir: ${.host.model_root}/${.experiment.model.name}/${.experiment.encoder.in_size}/${.experiment.name}
121
- checkpoint: null
122
- num_workers: ${.run_type.num_workers}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pix2poly/224/building_fusion/.hydra/hydra.yaml DELETED
@@ -1,165 +0,0 @@
1
- hydra:
2
- run:
3
- dir: ${...output_dir}
4
- sweep:
5
- dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
- subdir: ${hydra.job.num}
7
- launcher:
8
- _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
- sweeper:
10
- _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
- max_batch_size: null
12
- params: null
13
- help:
14
- app_name: ${hydra.job.name}
15
- header: '${hydra.help.app_name} is powered by Hydra.
16
-
17
- '
18
- footer: 'Powered by Hydra (https://hydra.cc)
19
-
20
- Use --hydra-help to view Hydra specific help
21
-
22
- '
23
- template: '${hydra.help.header}
24
-
25
- == Configuration groups ==
26
-
27
- Compose your configuration from those groups (group=option)
28
-
29
-
30
- $APP_CONFIG_GROUPS
31
-
32
-
33
- == Config ==
34
-
35
- Override anything in the config (foo.bar=value)
36
-
37
-
38
- $CONFIG
39
-
40
-
41
- ${hydra.help.footer}
42
-
43
- '
44
- hydra_help:
45
- template: 'Hydra (${hydra.runtime.version})
46
-
47
- See https://hydra.cc for more info.
48
-
49
-
50
- == Flags ==
51
-
52
- $FLAGS_HELP
53
-
54
-
55
- == Configuration groups ==
56
-
57
- Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
- to command line)
59
-
60
-
61
- $HYDRA_CONFIG_GROUPS
62
-
63
-
64
- Use ''--cfg hydra'' to Show the Hydra config.
65
-
66
- '
67
- hydra_help: ???
68
- hydra_logging:
69
- version: 1
70
- formatters:
71
- simple:
72
- format: '[%(asctime)s][HYDRA] %(message)s'
73
- handlers:
74
- console:
75
- class: logging.StreamHandler
76
- formatter: simple
77
- stream: ext://sys.stdout
78
- root:
79
- level: INFO
80
- handlers:
81
- - console
82
- loggers:
83
- logging_example:
84
- level: DEBUG
85
- disable_existing_loggers: false
86
- job_logging:
87
- version: 1
88
- formatters:
89
- simple:
90
- format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
- handlers:
92
- console:
93
- class: logging.StreamHandler
94
- formatter: simple
95
- stream: ext://sys.stdout
96
- file:
97
- class: logging.FileHandler
98
- formatter: simple
99
- filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
- root:
101
- level: INFO
102
- handlers:
103
- - console
104
- - file
105
- disable_existing_loggers: false
106
- env: {}
107
- mode: RUN
108
- searchpath: []
109
- callbacks: {}
110
- output_subdir: .hydra
111
- overrides:
112
- hydra:
113
- - hydra.mode=RUN
114
- task:
115
- - host=gin
116
- - experiment=p2p_fusion_building_ann
117
- - run_type=release
118
- job:
119
- name: train
120
- chdir: null
121
- override_dirname: experiment=p2p_fusion_building_ann,host=gin,run_type=release
122
- id: ???
123
- num: ???
124
- config_name: config
125
- env_set: {}
126
- env_copy: []
127
- config:
128
- override_dirname:
129
- kv_sep: '='
130
- item_sep: ','
131
- exclude_keys: []
132
- runtime:
133
- version: 1.3.2
134
- version_base: '1.3'
135
- cwd: /run/netsop/u/home-sam/home/rsulzer/remote_python/pixelspointspolygons
136
- config_sources:
137
- - path: hydra.conf
138
- schema: pkg
139
- provider: hydra
140
- - path: /run/netsop/u/home-sam/home/rsulzer/remote_python/pixelspointspolygons/config
141
- schema: file
142
- provider: main
143
- - path: ''
144
- schema: structured
145
- provider: schema
146
- output_dir: /data/rsulzer/PixelsPointsPolygons_output/pix2poly/224/building_fusion
147
- choices:
148
- evaluation: val
149
- training: default
150
- experiment: p2p_fusion_building_ann
151
- model@experiment.model: pix2poly
152
- encoder@experiment.encoder: early_fusion_vit
153
- dataset: p3
154
- run_type: release
155
- host: gin
156
- hydra/env: default
157
- hydra/callbacks: null
158
- hydra/job_logging: default
159
- hydra/hydra_logging: default
160
- hydra/hydra_help: default
161
- hydra/help: default
162
- hydra/sweeper: basic
163
- hydra/launcher: basic
164
- hydra/output: default
165
- verbose: false
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pix2poly/224/building_fusion/.hydra/overrides.yaml DELETED
@@ -1,3 +0,0 @@
1
- - host=gin
2
- - experiment=p2p_fusion_building_ann
3
- - run_type=release
 
 
 
 
pix2poly/224/building_fusion/train.log DELETED
File without changes
pix2poly/224/building_fusion_bs2x16/predictions_CH_train/best_val_iou.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01b5f228372704506a47404bdf135d72a817d41af6cec4111f7e30d5d60b90cc
3
+ size 486281
pix2poly/224/image_bs2x16/predictions_CH_val/best_val_iou.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e33a00bfd76c962dfbe6734f8a2b9b4ed1aebb7754d6fccb43dd83ccc141d96
3
+ size 33457
pix2poly/224/v4_image_vit_bs4x16/predictions_CH_val/best_val_iou.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96ffc916fa37450666cb606a281e01a117f60687fd85242c39f5c804b80f3589
3
+ size 35885