rsi commited on
Commit
b0a245e
·
1 Parent(s): ebdb990

add droplidar and dinov2 models

Browse files
Files changed (43) hide show
  1. .gitignore +2 -0
  2. pix2poly/224/building_fusion/.hydra/config.yaml +122 -0
  3. pix2poly/224/building_fusion/.hydra/hydra.yaml +165 -0
  4. pix2poly/224/building_fusion/.hydra/overrides.yaml +3 -0
  5. pix2poly/224/building_fusion/train.log +0 -0
  6. pix2poly/224/dinov2/predictions_CH_test/best_val_iou.json +3 -0
  7. pix2poly/224/droplidar50/checkpoints/best_val_iou.pth +1 -1
  8. pix2poly/224/droplidar50/checkpoints/best_val_loss.pth +1 -1
  9. pix2poly/224/droplidar50/checkpoints/latest.pth +1 -1
  10. pix2poly/224/droplidar50/predictions_CH_val/best_val_iou.json +2 -2
  11. pix2poly/224/early_fusion_bs2x16_mnv64/.hydra/config.yaml +10 -9
  12. pix2poly/224/early_fusion_bs2x16_mnv64/.hydra/hydra.yaml +3 -4
  13. pix2poly/224/early_fusion_bs2x16_mnv64/.hydra/overrides.yaml +1 -2
  14. pix2poly/224/image_bs2x16/.hydra/config.yaml +110 -0
  15. pix2poly/224/image_bs2x16/.hydra/hydra.yaml +167 -0
  16. pix2poly/224/image_bs2x16/.hydra/overrides.yaml +5 -0
  17. pix2poly/224/image_bs2x16/checkpoints/best_val_iou.pth +3 -0
  18. pix2poly/224/image_bs2x16/checkpoints/best_val_loss.pth +3 -0
  19. pix2poly/224/image_bs2x16/checkpoints/latest.pth +3 -0
  20. pix2poly/224/image_bs2x16/predictions_CH_val/best_val_iou.json +3 -0
  21. pix2poly/224/image_bs2x16/train.log +0 -0
  22. pix2poly/224/p2p_fusion_droplidar50_bs2x16/.hydra/config.yaml +121 -0
  23. pix2poly/224/p2p_fusion_droplidar50_bs2x16/.hydra/hydra.yaml +166 -0
  24. pix2poly/224/p2p_fusion_droplidar50_bs2x16/.hydra/overrides.yaml +4 -0
  25. pix2poly/224/p2p_fusion_droplidar50_bs2x16/checkpoints/best_val_iou.pth +3 -0
  26. pix2poly/224/p2p_fusion_droplidar50_bs2x16/checkpoints/best_val_loss.pth +3 -0
  27. pix2poly/224/p2p_fusion_droplidar50_bs2x16/checkpoints/latest.pth +3 -0
  28. pix2poly/224/p2p_fusion_droplidar50_bs2x16/predictions_CH_val/best_val_iou.json +3 -0
  29. pix2poly/224/p2p_fusion_droplidar50_bs2x16/train.log +0 -0
  30. pix2poly/224/p2p_fusion_droplidar50_bs4x16/.hydra/config.yaml +120 -0
  31. pix2poly/224/p2p_fusion_droplidar50_bs4x16/.hydra/hydra.yaml +166 -0
  32. pix2poly/224/p2p_fusion_droplidar50_bs4x16/.hydra/overrides.yaml +4 -0
  33. pix2poly/224/p2p_fusion_droplidar50_bs4x16/checkpoints/best_val_iou.pth +3 -0
  34. pix2poly/224/p2p_fusion_droplidar50_bs4x16/checkpoints/best_val_loss.pth +3 -0
  35. pix2poly/224/p2p_fusion_droplidar50_bs4x16/checkpoints/latest.pth +3 -0
  36. pix2poly/224/p2p_fusion_droplidar50_bs4x16/predictions_CH_val/best_val_iou.json +3 -0
  37. pix2poly/224/p2p_fusion_droplidar50_bs4x16/train.log +0 -0
  38. pix2poly/224/v4_image_vit_bs4x16/.hydra/config.yaml +13 -11
  39. pix2poly/224/v4_image_vit_bs4x16/.hydra/hydra.yaml +7 -5
  40. pix2poly/224/v4_image_vit_bs4x16/.hydra/overrides.yaml +4 -2
  41. pix2poly/224/v4_image_vit_bs4x16/predict.log +0 -0
  42. pix2poly/224/v4_image_vit_bs4x16/predictions_CH_test/best_val_iou.json +3 -0
  43. pix2poly/224/v4_image_vit_bs4x16/predictions_CH_val/best_val_iou.json +3 -0
.gitignore CHANGED
@@ -2,3 +2,5 @@
2
  **/my_experiment
3
  **/wandb
4
  **/visualizations
 
 
 
2
  **/my_experiment
3
  **/wandb
4
  **/visualizations
5
+ **/epoch_*.json
6
+ **/epoch_*.pth
pix2poly/224/building_fusion/.hydra/config.yaml ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - host=gin
2
+ - experiment=p2p_fusion_building_ann
3
+ - run_type=release
pix2poly/224/building_fusion/train.log ADDED
File without changes
pix2poly/224/dinov2/predictions_CH_test/best_val_iou.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:885e18a6b32ab993013ed2aa5679b889ccc8aadbb1fa8c9c5835fec67b1c9d76
3
+ size 8038122
pix2poly/224/droplidar50/checkpoints/best_val_iou.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c59131c648411f51d711a69d01be0575cba0fc4c4693f18c936cb396c07ba98c
3
  size 415470058
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab3906c56bc30f0494bfba541c5ac4dca4e6d1971b048740eaf1e0167f821d9e
3
  size 415470058
pix2poly/224/droplidar50/checkpoints/best_val_loss.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0849339aa774cb14b36297e485de8367139a34b22324874f21b203fa3be0d4ac
3
  size 415471297
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ff17ce33bf2d9f904ebc9619480b2a9eb68e60d10a348c6e911affa7465c162
3
  size 415471297
pix2poly/224/droplidar50/checkpoints/latest.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e97e714f98b1c64b82ed8338cdf76f3b80412539e68a642f994f447da7013284
3
  size 415458080
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d5d511bbab67dd0f62be1c0baeeda2e8c307c42ae843044ec172c37b97bf634
3
  size 415458080
pix2poly/224/droplidar50/predictions_CH_val/best_val_iou.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a9bb7924edd3d65f911ca3c5a123b37167f2033d79d8dd48e854bdb8912a9b57
3
- size 275136
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a19854cc394e253a6692ef25becbd0f265d4db0b9a78bbd7c1cccb8743ed03ec
3
+ size 477324
pix2poly/224/early_fusion_bs2x16_mnv64/.hydra/config.yaml CHANGED
@@ -1,20 +1,21 @@
1
  host:
2
  name: gin
3
- data_root: /data/rsulzer/${..dataset.name}
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
  run_type:
10
- name: debug
11
  batch_size: 16
12
- train_subset: 256
13
- val_subset: 32
14
- test_subset: 32
15
- logging: DEBUG
16
- num_workers: 0
17
- log_to_wandb: false
18
  dataset:
19
  name: PixelsPointsPolygons
20
  size: ${..experiment.encoder.in_size}
@@ -100,6 +101,7 @@ experiment:
100
  weight_decay: 0.0001
101
  name: early_fusion_bs2x16_mnv64
102
  group_name: v2_${.model.name}
 
103
  country: all
104
  training:
105
  save_best: true
@@ -114,7 +116,6 @@ evaluation:
114
  modes:
115
  - iou
116
  eval_file: results/metrics
117
- experiment.name: debug
118
  output_dir: ${.host.model_root}/${.experiment.model.name}/${.experiment.encoder.in_size}/${.experiment.name}
119
  checkpoint: best_val_iou
120
  num_workers: ${.run_type.num_workers}
 
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}
 
101
  weight_decay: 0.0001
102
  name: early_fusion_bs2x16_mnv64
103
  group_name: v2_${.model.name}
104
+ lidar_dropout: null
105
  country: all
106
  training:
107
  save_best: true
 
116
  modes:
117
  - iou
118
  eval_file: results/metrics
 
119
  output_dir: ${.host.model_root}/${.experiment.model.name}/${.experiment.encoder.in_size}/${.experiment.name}
120
  checkpoint: best_val_iou
121
  num_workers: ${.run_type.num_workers}
pix2poly/224/early_fusion_bs2x16_mnv64/.hydra/hydra.yaml CHANGED
@@ -112,16 +112,15 @@ hydra:
112
  hydra:
113
  - hydra.mode=RUN
114
  task:
115
- - run_type=debug
116
- - host=gin
117
  - checkpoint=best_val_iou
118
  - experiment=p2p_fusion
119
  - +image_file=demo_data/image0_CH_val.tif
120
  - +lidar_file=demo_data/lidar0_CH_val.copc.laz
 
121
  job:
122
  name: predict_demo
123
  chdir: null
124
- override_dirname: +image_file=demo_data/image0_CH_val.tif,+lidar_file=demo_data/lidar0_CH_val.copc.laz,checkpoint=best_val_iou,experiment=p2p_fusion,host=gin,run_type=debug
125
  id: ???
126
  num: ???
127
  config_name: config
@@ -154,7 +153,7 @@ hydra:
154
  model@experiment.model: pix2poly
155
  encoder@experiment.encoder: early_fusion_vit
156
  dataset: p3
157
- run_type: debug
158
  host: gin
159
  hydra/env: default
160
  hydra/callbacks: null
 
112
  hydra:
113
  - hydra.mode=RUN
114
  task:
 
 
115
  - checkpoint=best_val_iou
116
  - experiment=p2p_fusion
117
  - +image_file=demo_data/image0_CH_val.tif
118
  - +lidar_file=demo_data/lidar0_CH_val.copc.laz
119
+ - host=gin
120
  job:
121
  name: predict_demo
122
  chdir: null
123
+ override_dirname: +image_file=demo_data/image0_CH_val.tif,+lidar_file=demo_data/lidar0_CH_val.copc.laz,checkpoint=best_val_iou,experiment=p2p_fusion,host=gin
124
  id: ???
125
  num: ???
126
  config_name: config
 
153
  model@experiment.model: pix2poly
154
  encoder@experiment.encoder: early_fusion_vit
155
  dataset: p3
156
+ run_type: release
157
  host: gin
158
  hydra/env: default
159
  hydra/callbacks: null
pix2poly/224/early_fusion_bs2x16_mnv64/.hydra/overrides.yaml CHANGED
@@ -1,6 +1,5 @@
1
- - run_type=debug
2
- - host=gin
3
  - checkpoint=best_val_iou
4
  - experiment=p2p_fusion
5
  - +image_file=demo_data/image0_CH_val.tif
6
  - +lidar_file=demo_data/lidar0_CH_val.copc.laz
 
 
 
 
1
  - checkpoint=best_val_iou
2
  - experiment=p2p_fusion
3
  - +image_file=demo_data/image0_CH_val.tif
4
  - +lidar_file=demo_data/lidar0_CH_val.copc.laz
5
+ - host=gin
pix2poly/224/image_bs2x16/.hydra/config.yaml ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ host:
2
+ name: g5k
3
+ data_root: /home/rsulzer/data_group/${..dataset.name}_dataset
4
+ model_root: /home/rsulzer/data_group/${..dataset.name}_output
5
+ multi_gpu: true
6
+ device: cuda
7
+ update_pbar_every: 60
8
+ ldof_exe: null
9
+ dino_v2_repo: /home/rsulzer/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/annotations_${...experiment.country}_train.json
25
+ val: ${..path}/annotations/annotations_${...experiment.country}_val.json
26
+ test: ${..path}/annotations/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: vit
37
+ use_images: true
38
+ use_lidar: false
39
+ type: vit_small_patch${.patch_size}_${.in_size}.dino
40
+ checkpoint_file: ${...host.model_root}/backbones/dino_deitsmall8_pretrain.pth
41
+ pretrained: true
42
+ in_size: 224
43
+ in_height: ${.in_size}
44
+ in_width: ${.in_size}
45
+ patch_size: 8
46
+ patch_feature_size: 28
47
+ patch_feature_height: ${.patch_feature_size}
48
+ patch_feature_width: ${.patch_feature_size}
49
+ patch_feature_dim: 384
50
+ num_patches: 784
51
+ out_feature_dim: ${..model.decoder.in_feature_dim}
52
+ image_mean:
53
+ - 0.0
54
+ - 0.0
55
+ - 0.0
56
+ image_std:
57
+ - 1.0
58
+ - 1.0
59
+ - 1.0
60
+ image_max_pixel_value: 255.0
61
+ augmentations:
62
+ - D4
63
+ - ColorJitter
64
+ - GaussNoise
65
+ - Normalize
66
+ model:
67
+ name: pix2poly
68
+ decoder:
69
+ in_feature_size: ${...encoder.patch_feature_size}
70
+ in_feature_width: ${.in_feature_size}
71
+ in_feature_height: ${.in_feature_size}
72
+ in_feature_dim: 256
73
+ tokenizer:
74
+ num_bins: ${...encoder.in_size}
75
+ shuffle_tokens: false
76
+ n_vertices: 192
77
+ max_len: null
78
+ pad_idx: null
79
+ generation_steps: null
80
+ fusion: patch_concat
81
+ sinkhorn_iterations: 100
82
+ label_smoothing: 0.0
83
+ vertex_loss_weight: 1.0
84
+ perm_loss_weight: 10.0
85
+ batch_size: ${...run_type.batch_size}
86
+ start_epoch: 0
87
+ num_epochs: 200
88
+ milestone: 0
89
+ learning_rate: 0.0003
90
+ weight_decay: 0.0001
91
+ name: image_bs2x16
92
+ group_name: v3_pix2poly
93
+ lidar_dropout: null
94
+ country: CH
95
+ training:
96
+ save_best: true
97
+ save_latest: true
98
+ save_every: 10
99
+ val_every: 1
100
+ best_val_loss: 10000000.0
101
+ best_val_iou: 0.0
102
+ evaluation:
103
+ split: val
104
+ pred_file: ${..output_dir}/predictions_${..experiment.country}_${.split}/${..checkpoint}.json
105
+ modes:
106
+ - iou
107
+ eval_file: results/metrics
108
+ output_dir: ${.host.model_root}/${.experiment.model.name}/${.experiment.encoder.in_size}/${.experiment.name}
109
+ checkpoint: null
110
+ num_workers: ${.run_type.num_workers}
pix2poly/224/image_bs2x16/.hydra/hydra.yaml ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - run_type=release
116
+ - host=g5k
117
+ - experiment=p2p_image
118
+ - experiment.name=image_bs2x16
119
+ - experiment.group_name=v3_pix2poly
120
+ job:
121
+ name: train
122
+ chdir: null
123
+ override_dirname: experiment.group_name=v3_pix2poly,experiment.name=image_bs2x16,experiment=p2p_image,host=g5k,run_type=release
124
+ id: ???
125
+ num: ???
126
+ config_name: config
127
+ env_set: {}
128
+ env_copy: []
129
+ config:
130
+ override_dirname:
131
+ kv_sep: '='
132
+ item_sep: ','
133
+ exclude_keys: []
134
+ runtime:
135
+ version: 1.3.2
136
+ version_base: '1.3'
137
+ cwd: /home/rsulzer/python/PixelsPointsPolygons
138
+ config_sources:
139
+ - path: hydra.conf
140
+ schema: pkg
141
+ provider: hydra
142
+ - path: /home/rsulzer/python/PixelsPointsPolygons/config
143
+ schema: file
144
+ provider: main
145
+ - path: ''
146
+ schema: structured
147
+ provider: schema
148
+ output_dir: /home/rsulzer/data_group/PixelsPointsPolygons_output/pix2poly/224/image_bs2x16
149
+ choices:
150
+ evaluation: val
151
+ training: default
152
+ experiment: p2p_image
153
+ model@experiment.model: pix2poly
154
+ encoder@experiment.encoder: vit
155
+ dataset: p3
156
+ run_type: release
157
+ host: g5k
158
+ hydra/env: default
159
+ hydra/callbacks: null
160
+ hydra/job_logging: default
161
+ hydra/hydra_logging: default
162
+ hydra/hydra_help: default
163
+ hydra/help: default
164
+ hydra/sweeper: basic
165
+ hydra/launcher: basic
166
+ hydra/output: default
167
+ verbose: false
pix2poly/224/image_bs2x16/.hydra/overrides.yaml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ - run_type=release
2
+ - host=g5k
3
+ - experiment=p2p_image
4
+ - experiment.name=image_bs2x16
5
+ - experiment.group_name=v3_pix2poly
pix2poly/224/image_bs2x16/checkpoints/best_val_iou.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57ae8f4db9e0d31d17e951e297a14af11c3ace15a94fbf493960f54c32832422
3
+ size 383278438
pix2poly/224/image_bs2x16/checkpoints/best_val_loss.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91340473a55e36998de5b0ef0592d42f6546ba8b9bc8cd62f29061f3db4f3070
3
+ size 383279628
pix2poly/224/image_bs2x16/checkpoints/latest.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4e8e8b6bd84ca7355ff6dd5a2a4c69af49ec33f038161a332deb580de3a6027
3
+ size 383266562
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:417117afafadfe360062181df75c55caedac3d370159a5b17cdfec528687196e
3
+ size 467261
pix2poly/224/image_bs2x16/train.log ADDED
File without changes
pix2poly/224/p2p_fusion_droplidar50_bs2x16/.hydra/config.yaml ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ host:
2
+ name: g5k
3
+ data_root: /home/rsulzer/data_group/${..dataset.name}_dataset
4
+ model_root: /home/rsulzer/data_group/${..dataset.name}_output
5
+ multi_gpu: true
6
+ device: cuda
7
+ update_pbar_every: 60
8
+ ldof_exe: null
9
+ dino_v2_repo: /home/rsulzer/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/annotations_${...experiment.country}_train.json
25
+ val: ${..path}/annotations/annotations_${...experiment.country}_val.json
26
+ test: ${..path}/annotations/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: p2p_fusion_droplidar50_bs2x16
103
+ group_name: v3_${.model.name}
104
+ lidar_dropout: 0.5
105
+ country: CH
106
+ training:
107
+ save_best: true
108
+ save_latest: true
109
+ save_every: 10
110
+ val_every: 1
111
+ best_val_loss: 10000000.0
112
+ best_val_iou: 0.0
113
+ evaluation:
114
+ split: val
115
+ pred_file: ${..output_dir}/predictions_${..experiment.country}_${.split}/${..checkpoint}.json
116
+ modes:
117
+ - iou
118
+ eval_file: results/metrics
119
+ output_dir: ${.host.model_root}/${.experiment.model.name}/${.experiment.encoder.in_size}/${.experiment.name}
120
+ checkpoint: null
121
+ num_workers: ${.run_type.num_workers}
pix2poly/224/p2p_fusion_droplidar50_bs2x16/.hydra/hydra.yaml ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - run_type=release
116
+ - host=g5k
117
+ - experiment=p2p_fusion_droplidar50
118
+ - experiment.name=p2p_fusion_droplidar50_bs2x16
119
+ job:
120
+ name: train
121
+ chdir: null
122
+ override_dirname: experiment.name=p2p_fusion_droplidar50_bs2x16,experiment=p2p_fusion_droplidar50,host=g5k,run_type=release
123
+ id: ???
124
+ num: ???
125
+ config_name: config
126
+ env_set: {}
127
+ env_copy: []
128
+ config:
129
+ override_dirname:
130
+ kv_sep: '='
131
+ item_sep: ','
132
+ exclude_keys: []
133
+ runtime:
134
+ version: 1.3.2
135
+ version_base: '1.3'
136
+ cwd: /home/rsulzer/python/PixelsPointsPolygons
137
+ config_sources:
138
+ - path: hydra.conf
139
+ schema: pkg
140
+ provider: hydra
141
+ - path: /home/rsulzer/python/PixelsPointsPolygons/config
142
+ schema: file
143
+ provider: main
144
+ - path: ''
145
+ schema: structured
146
+ provider: schema
147
+ output_dir: /home/rsulzer/data_group/PixelsPointsPolygons_output/pix2poly/224/p2p_fusion_droplidar50_bs2x16
148
+ choices:
149
+ evaluation: val
150
+ training: default
151
+ experiment: p2p_fusion_droplidar50
152
+ model@experiment.model: pix2poly
153
+ encoder@experiment.encoder: early_fusion_vit
154
+ dataset: p3
155
+ run_type: release
156
+ host: g5k
157
+ hydra/env: default
158
+ hydra/callbacks: null
159
+ hydra/job_logging: default
160
+ hydra/hydra_logging: default
161
+ hydra/hydra_help: default
162
+ hydra/help: default
163
+ hydra/sweeper: basic
164
+ hydra/launcher: basic
165
+ hydra/output: default
166
+ verbose: false
pix2poly/224/p2p_fusion_droplidar50_bs2x16/.hydra/overrides.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ - run_type=release
2
+ - host=g5k
3
+ - experiment=p2p_fusion_droplidar50
4
+ - experiment.name=p2p_fusion_droplidar50_bs2x16
pix2poly/224/p2p_fusion_droplidar50_bs2x16/checkpoints/best_val_iou.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f37d0972ee805354d8d07132ba62bf9e9940a0c24bbd42d6c2464148bc7300d6
3
+ size 415475370
pix2poly/224/p2p_fusion_droplidar50_bs2x16/checkpoints/best_val_loss.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e68dcb8a7cd84c837df11619cc74850c331456609d4cce9ad790a7325993eb3d
3
+ size 415476609
pix2poly/224/p2p_fusion_droplidar50_bs2x16/checkpoints/latest.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21c30f76381250bf79a282d93c4460de2bcdb591ed2bd666b6fb5ec96195f483
3
+ size 415463392
pix2poly/224/p2p_fusion_droplidar50_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:f1e16399f927d12c76f3c337e6c3ecc1ba58882ea9cc29ecba62131a2a0b0477
3
+ size 466962
pix2poly/224/p2p_fusion_droplidar50_bs2x16/train.log ADDED
File without changes
pix2poly/224/p2p_fusion_droplidar50_bs4x16/.hydra/config.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ host:
2
+ name: jeanzay
3
+ data_root: /linkhome/rech/genlgm01/uku93eu/data/${..dataset.name}_dataset
4
+ model_root: /linkhome/rech/genlgm01/uku93eu/data/${..dataset.name}_output
5
+ multi_gpu: true
6
+ device: cuda
7
+ update_pbar_every: 60
8
+ ldof_exe: null
9
+ run_type:
10
+ name: release
11
+ batch_size: 16
12
+ train_subset: null
13
+ val_subset: null
14
+ test_subset: null
15
+ logging: INFO
16
+ num_workers: 16
17
+ log_to_wandb: true
18
+ dataset:
19
+ name: PixelsPointsPolygons
20
+ size: ${..experiment.encoder.in_size}
21
+ path: ${host.data_root}/data/${.size}
22
+ annotations:
23
+ train: ${..path}/annotations/annotations_${...experiment.country}_train.json
24
+ val: ${..path}/annotations/annotations_${...experiment.country}_val.json
25
+ test: ${..path}/annotations/annotations_${...experiment.country}_test.json
26
+ ffl_stats:
27
+ train: ${..path}/ffl/train/stats-${...experiment.country}.pt
28
+ val: ${..path}/ffl/val/stats-${...experiment.country}.pt
29
+ test: ${..path}/ffl/test/stats-${...experiment.country}.pt
30
+ train_subset: ${..run_type.train_subset}
31
+ val_subset: ${..run_type.val_subset}
32
+ test_subset: ${..run_type.test_subset}
33
+ experiment:
34
+ encoder:
35
+ name: early_fusion_vit
36
+ use_images: true
37
+ use_lidar: true
38
+ in_size: 224
39
+ in_height: ${.in_size}
40
+ in_width: ${.in_size}
41
+ in_voxel_size:
42
+ x: 8
43
+ 'y': 8
44
+ z: 100
45
+ max_num_points_per_voxel: 64
46
+ max_num_voxels:
47
+ train: 784
48
+ test: 784
49
+ out_feature_width: 28
50
+ out_feature_height: 28
51
+ vit:
52
+ type: vit_small_patch${..patch_size}_${..in_size}.dino
53
+ checkpoint_file: ${....host.model_root}/backbones/dino_deitsmall8_pretrain.pth
54
+ pretrained: true
55
+ patch_size: 8
56
+ patch_feature_size: 28
57
+ patch_feature_height: ${.patch_feature_size}
58
+ patch_feature_width: ${.patch_feature_size}
59
+ patch_feature_dim: 384
60
+ num_patches: 784
61
+ out_feature_dim: ${..model.decoder.in_feature_dim}
62
+ image_mean:
63
+ - 0.0
64
+ - 0.0
65
+ - 0.0
66
+ image_std:
67
+ - 1.0
68
+ - 1.0
69
+ - 1.0
70
+ image_max_pixel_value: 255.0
71
+ augmentations:
72
+ - D4
73
+ - ColorJitter
74
+ - GaussNoise
75
+ - Normalize
76
+ model:
77
+ name: pix2poly
78
+ decoder:
79
+ in_feature_size: ${...encoder.patch_feature_size}
80
+ in_feature_width: ${.in_feature_size}
81
+ in_feature_height: ${.in_feature_size}
82
+ in_feature_dim: 256
83
+ tokenizer:
84
+ num_bins: ${...encoder.in_size}
85
+ shuffle_tokens: false
86
+ n_vertices: 192
87
+ max_len: null
88
+ pad_idx: null
89
+ generation_steps: null
90
+ fusion: patch_concat
91
+ sinkhorn_iterations: 100
92
+ label_smoothing: 0.0
93
+ vertex_loss_weight: 1.0
94
+ perm_loss_weight: 10.0
95
+ batch_size: ${...run_type.batch_size}
96
+ start_epoch: 0
97
+ num_epochs: 200
98
+ milestone: 0
99
+ learning_rate: 0.0003
100
+ weight_decay: 0.0001
101
+ name: p2p_fusion_droplidar50_bs4x16
102
+ group_name: v3_${.model.name}
103
+ lidar_dropout: 0.5
104
+ country: CH
105
+ training:
106
+ save_best: true
107
+ save_latest: true
108
+ save_every: 10
109
+ val_every: 1
110
+ best_val_loss: 10000000.0
111
+ best_val_iou: 0.0
112
+ evaluation:
113
+ split: val
114
+ pred_file: ${..output_dir}/predictions_${..experiment.country}_${.split}/${..checkpoint}.json
115
+ modes:
116
+ - iou
117
+ eval_file: results/metrics
118
+ output_dir: ${.host.model_root}/${.experiment.model.name}/${.experiment.encoder.in_size}/${.experiment.name}
119
+ checkpoint: null
120
+ num_workers: ${.run_type.num_workers}
pix2poly/224/p2p_fusion_droplidar50_bs4x16/.hydra/hydra.yaml ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - run_type=release
116
+ - host=jz
117
+ - experiment=p2p_fusion_droplidar50
118
+ - experiment.name=p2p_fusion_droplidar50_bs4x16
119
+ job:
120
+ name: train
121
+ chdir: null
122
+ override_dirname: experiment.name=p2p_fusion_droplidar50_bs4x16,experiment=p2p_fusion_droplidar50,host=jz,run_type=release
123
+ id: ???
124
+ num: ???
125
+ config_name: config
126
+ env_set: {}
127
+ env_copy: []
128
+ config:
129
+ override_dirname:
130
+ kv_sep: '='
131
+ item_sep: ','
132
+ exclude_keys: []
133
+ runtime:
134
+ version: 1.3.2
135
+ version_base: '1.3'
136
+ cwd: /lustre/fswork/projects/rech/cso/uku93eu/python/PixelsPointsPolygons
137
+ config_sources:
138
+ - path: hydra.conf
139
+ schema: pkg
140
+ provider: hydra
141
+ - path: /lustre/fswork/projects/rech/cso/uku93eu/python/PixelsPointsPolygons/config
142
+ schema: file
143
+ provider: main
144
+ - path: ''
145
+ schema: structured
146
+ provider: schema
147
+ output_dir: /linkhome/rech/genlgm01/uku93eu/data/PixelsPointsPolygons_output/pix2poly/224/p2p_fusion_droplidar50_bs4x16
148
+ choices:
149
+ evaluation: val
150
+ training: default
151
+ experiment: p2p_fusion_droplidar50
152
+ model@experiment.model: pix2poly
153
+ encoder@experiment.encoder: early_fusion_vit
154
+ dataset: p3
155
+ run_type: release
156
+ host: jz
157
+ hydra/env: default
158
+ hydra/callbacks: null
159
+ hydra/job_logging: default
160
+ hydra/hydra_logging: default
161
+ hydra/hydra_help: default
162
+ hydra/help: default
163
+ hydra/sweeper: basic
164
+ hydra/launcher: basic
165
+ hydra/output: default
166
+ verbose: false
pix2poly/224/p2p_fusion_droplidar50_bs4x16/.hydra/overrides.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ - run_type=release
2
+ - host=jz
3
+ - experiment=p2p_fusion_droplidar50
4
+ - experiment.name=p2p_fusion_droplidar50_bs4x16
pix2poly/224/p2p_fusion_droplidar50_bs4x16/checkpoints/best_val_iou.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cea42f1ce35f4bcf51a97fc37942a09252ad853ea7290e675e8e44f03ac689fe
3
+ size 415475370
pix2poly/224/p2p_fusion_droplidar50_bs4x16/checkpoints/best_val_loss.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a55d7007e64362aa20bc5a1ef3bc3899f100db0ae628fb31c7657e4639643d53
3
+ size 415476609
pix2poly/224/p2p_fusion_droplidar50_bs4x16/checkpoints/latest.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36560a265ff89144795aac9bd54128625610753ae1fd2f67f563e579f09d3f0e
3
+ size 415463392
pix2poly/224/p2p_fusion_droplidar50_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:965e363bf33ea4f1d7ec1e6030f4947685d51b6cbacc1576a2963b9b34e378ec
3
+ size 448205
pix2poly/224/p2p_fusion_droplidar50_bs4x16/train.log ADDED
File without changes
pix2poly/224/v4_image_vit_bs4x16/.hydra/config.yaml CHANGED
@@ -6,23 +6,25 @@ host:
6
  device: cuda
7
  update_pbar_every: 1
8
  ldof_exe: /user/rsulzer/home/cpp/line-DOF-metric/build/calculate_DoF
 
9
  run_type:
10
- name: debug
11
  batch_size: 16
12
- train_subset: 256
13
- val_subset: 32
14
- test_subset: 32
15
- logging: DEBUG
16
- num_workers: 0
17
  log_to_wandb: false
18
  dataset:
19
  name: PixelsPointsPolygons
20
  size: ${..experiment.encoder.in_size}
21
  path: ${host.data_root}/data/${.size}
 
22
  annotations:
23
- train: ${..path}/annotations/annotations_${...experiment.country}_train.json
24
- val: ${..path}/annotations/annotations_${...experiment.country}_val.json
25
- test: ${..path}/annotations/annotations_${...experiment.country}_test.json
26
  ffl_stats:
27
  train: ${..path}/ffl/train/stats-${...experiment.country}.pt
28
  val: ${..path}/ffl/val/stats-${...experiment.country}.pt
@@ -89,7 +91,8 @@ experiment:
89
  weight_decay: 0.0001
90
  name: v4_image_vit_bs4x16
91
  group_name: v2_${.model.name}
92
- country: CH
 
93
  training:
94
  save_best: true
95
  save_latest: true
@@ -106,4 +109,3 @@ evaluation:
106
  output_dir: ${.host.model_root}/${.experiment.model.name}/${.experiment.encoder.in_size}/${.experiment.name}
107
  checkpoint: best_val_iou
108
  num_workers: ${.run_type.num_workers}
109
- image_file: demo_data/image0_CH_val.tif
 
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: false
19
  dataset:
20
  name: PixelsPointsPolygons
21
  size: ${..experiment.encoder.in_size}
22
  path: ${host.data_root}/data/${.size}
23
+ annotation_type: blocks
24
  annotations:
25
+ train: ${..path}/annotations/${..annotation_type}/annotations_${...experiment.country}_train.json
26
+ val: ${..path}/annotations/${..annotation_type}/annotations_${...experiment.country}_val.json
27
+ test: ${..path}/annotations/${..annotation_type}/annotations_${...experiment.country}_test.json
28
  ffl_stats:
29
  train: ${..path}/ffl/train/stats-${...experiment.country}.pt
30
  val: ${..path}/ffl/val/stats-${...experiment.country}.pt
 
91
  weight_decay: 0.0001
92
  name: v4_image_vit_bs4x16
93
  group_name: v2_${.model.name}
94
+ lidar_dropout: null
95
+ country: NY
96
  training:
97
  save_best: true
98
  save_latest: true
 
109
  output_dir: ${.host.model_root}/${.experiment.model.name}/${.experiment.encoder.in_size}/${.experiment.name}
110
  checkpoint: best_val_iou
111
  num_workers: ${.run_type.num_workers}
 
pix2poly/224/v4_image_vit_bs4x16/.hydra/hydra.yaml CHANGED
@@ -112,15 +112,17 @@ hydra:
112
  hydra:
113
  - hydra.mode=RUN
114
  task:
115
- - run_type=debug
116
  - host=gin
 
117
  - checkpoint=best_val_iou
118
  - experiment=p2p_image
119
- - +image_file=demo_data/image0_CH_val.tif
 
120
  job:
121
- name: predict_demo
122
  chdir: null
123
- override_dirname: +image_file=demo_data/image0_CH_val.tif,checkpoint=best_val_iou,experiment=p2p_image,host=gin,run_type=debug
124
  id: ???
125
  num: ???
126
  config_name: config
@@ -153,7 +155,7 @@ hydra:
153
  model@experiment.model: pix2poly
154
  encoder@experiment.encoder: vit
155
  dataset: p3
156
- run_type: debug
157
  host: gin
158
  hydra/env: default
159
  hydra/callbacks: null
 
112
  hydra:
113
  - hydra.mode=RUN
114
  task:
115
+ - run_type=release
116
  - host=gin
117
+ - run_type.log_to_wandb=false
118
  - checkpoint=best_val_iou
119
  - experiment=p2p_image
120
+ - experiment.country=NY
121
+ - evaluation=val
122
  job:
123
+ name: predict
124
  chdir: null
125
+ override_dirname: checkpoint=best_val_iou,evaluation=val,experiment.country=NY,experiment=p2p_image,host=gin,run_type.log_to_wandb=false,run_type=release
126
  id: ???
127
  num: ???
128
  config_name: config
 
155
  model@experiment.model: pix2poly
156
  encoder@experiment.encoder: vit
157
  dataset: p3
158
+ run_type: release
159
  host: gin
160
  hydra/env: default
161
  hydra/callbacks: null
pix2poly/224/v4_image_vit_bs4x16/.hydra/overrides.yaml CHANGED
@@ -1,5 +1,7 @@
1
- - run_type=debug
2
  - host=gin
 
3
  - checkpoint=best_val_iou
4
  - experiment=p2p_image
5
- - +image_file=demo_data/image0_CH_val.tif
 
 
1
+ - run_type=release
2
  - host=gin
3
+ - run_type.log_to_wandb=false
4
  - checkpoint=best_val_iou
5
  - experiment=p2p_image
6
+ - experiment.country=NY
7
+ - evaluation=val
pix2poly/224/v4_image_vit_bs4x16/predict.log ADDED
File without changes
pix2poly/224/v4_image_vit_bs4x16/predictions_CH_test/best_val_iou.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e0683082c44df1131aa70b071c6d0d368c4f9fd077e9a487707881515fd85fa
3
+ size 7780182
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:1126f59e7ed29ec45143e31ec7de667abe64c89df29376d1a8323ffe0b5845a3
3
+ size 458422