rsi commited on
Commit
c911343
·
1 Parent(s): 7b20bb5
hisup/224/v3_image_vit_cnn_bs4x12/.hydra/config.yaml CHANGED
@@ -1,42 +1,46 @@
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
  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: vit_cnn
36
  use_images: true
37
  use_lidar: false
38
  type: vit_small_patch${.patch_size}_${.in_size}.dino
39
- checkpoint_file: ${...host.model_root}/backbones/dino_deitsmall8_pretrain.pth
40
  pretrained: true
41
  in_size: 224
42
  in_height: ${.in_size}
@@ -94,25 +98,21 @@ experiment:
94
  loss_remask: 1.0
95
  name: v3_image_vit_cnn_bs4x12
96
  group_name: v2_${.model.name}
97
- country: CH
98
  training:
99
  save_best: true
100
  save_latest: true
101
  save_every: 10
102
- val_every: 1
103
  best_val_loss: 10000000.0
104
  best_val_iou: 0.0
105
  evaluation:
106
  split: val
107
- pred_file: ${..output_dir}/predictions_${..experiment.country}_${.split}/${..checkpoint}.json
108
  modes:
109
- - ldof
110
- - hausdorff
111
- - coco
112
  - iou
113
- - polis
114
- - mta
115
  eval_file: results/metrics
116
- output_dir: ${.host.model_root}/${.experiment.model.name}/${.experiment.encoder.in_size}/${.experiment.name}
117
  checkpoint: best_val_iou
118
  num_workers: ${.run_type.num_workers}
 
 
1
  host:
2
  name: gin
3
+ dataset_root: /data/rsulzer
4
+ model_root: /data/rsulzer
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: debug
12
  batch_size: 16
13
+ train_subset: 256
14
+ val_subset: 32
15
+ test_subset: 32
16
+ logging: DEBUG
17
+ num_workers: 0
18
+ log_to_wandb: false
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  experiment:
20
+ dataset:
21
+ name: PixelsPointsPolygons
22
+ size: ${..encoder.in_size}
23
+ in_path: ${host.dataset_root}/${..dataset.name}_dataset/data/${.size}
24
+ out_path: ${host.model_root}/${..dataset.name}_output
25
+ annotation_type: blocks
26
+ country: CH
27
+ annotations:
28
+ train: ${..in_path}/annotations/${..annotation_type}/annotations_${..country}_train.json
29
+ val: ${..in_path}/annotations/${..annotation_type}/annotations_${..country}_val.json
30
+ test: ${..in_path}/annotations/${..annotation_type}/annotations_${..country}_test.json
31
+ ffl_stats:
32
+ train: ${..in_path}/ffl/train/stats-${..country}.pt
33
+ val: ${..in_path}/ffl/val/stats-${..country}.pt
34
+ test: ${..in_path}/ffl/test/stats-${..country}.pt
35
+ train_subset: ${...run_type.train_subset}
36
+ val_subset: ${...run_type.val_subset}
37
+ test_subset: ${...run_type.test_subset}
38
  encoder:
39
  name: vit_cnn
40
  use_images: true
41
  use_lidar: false
42
  type: vit_small_patch${.patch_size}_${.in_size}.dino
43
+ checkpoint_file: ${..dataset.out_path}/backbones/dino_deitsmall8_pretrain.pth
44
  pretrained: true
45
  in_size: 224
46
  in_height: ${.in_size}
 
98
  loss_remask: 1.0
99
  name: v3_image_vit_cnn_bs4x12
100
  group_name: v2_${.model.name}
101
+ project_name: HiSup
102
  training:
103
  save_best: true
104
  save_latest: true
105
  save_every: 10
106
+ val_every: 5
107
  best_val_loss: 10000000.0
108
  best_val_iou: 0.0
109
  evaluation:
110
  split: val
111
+ pred_file: ${..output_dir}/predictions_${..experiment.dataset.country}_${.split}/${..checkpoint}.json
112
  modes:
 
 
 
113
  - iou
 
 
114
  eval_file: results/metrics
115
+ output_dir: ${.experiment.dataset.out_path}/${.experiment.model.name}/${.experiment.encoder.in_size}/${.experiment.name}
116
  checkpoint: best_val_iou
117
  num_workers: ${.run_type.num_workers}
118
+ image_file: demo_data/image0_CH_val.tif
hisup/224/v3_image_vit_cnn_bs4x12/.hydra/hydra.yaml CHANGED
@@ -112,17 +112,15 @@ hydra:
112
  hydra:
113
  - hydra.mode=RUN
114
  task:
115
- - experiment=hisup_image
116
- - run_type=release
117
- - evaluation=test
118
- - experiment.country=CH
119
- - checkpoint=best_val_iou
120
  - host=gin
121
- - evaluation.split=val
 
 
122
  job:
123
- name: predict
124
  chdir: null
125
- override_dirname: checkpoint=best_val_iou,evaluation.split=val,evaluation=test,experiment.country=CH,experiment=hisup_image,host=gin,run_type=release
126
  id: ???
127
  num: ???
128
  config_name: config
@@ -149,13 +147,13 @@ hydra:
149
  provider: schema
150
  output_dir: /data/rsulzer/PixelsPointsPolygons_output/hisup/224/v3_image_vit_cnn_bs4x12
151
  choices:
152
- evaluation: test
153
  training: default
154
  experiment: hisup_image
155
  model@experiment.model: hisup
156
  encoder@experiment.encoder: vit_cnn
157
- dataset: p3
158
- run_type: release
159
  host: gin
160
  hydra/env: default
161
  hydra/callbacks: null
 
112
  hydra:
113
  - hydra.mode=RUN
114
  task:
115
+ - run_type=debug
 
 
 
 
116
  - host=gin
117
+ - checkpoint=best_val_iou
118
+ - experiment=hisup_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=hisup_image,host=gin,run_type=debug
124
  id: ???
125
  num: ???
126
  config_name: config
 
147
  provider: schema
148
  output_dir: /data/rsulzer/PixelsPointsPolygons_output/hisup/224/v3_image_vit_cnn_bs4x12
149
  choices:
150
+ evaluation: val
151
  training: default
152
  experiment: hisup_image
153
  model@experiment.model: hisup
154
  encoder@experiment.encoder: vit_cnn
155
+ dataset@experiment.dataset: p3
156
+ run_type: debug
157
  host: gin
158
  hydra/env: default
159
  hydra/callbacks: null
hisup/224/v3_image_vit_cnn_bs4x12/.hydra/overrides.yaml CHANGED
@@ -1,7 +1,5 @@
1
- - experiment=hisup_image
2
- - run_type=release
3
- - evaluation=test
4
- - experiment.country=CH
5
- - checkpoint=best_val_iou
6
  - host=gin
7
- - evaluation.split=val
 
 
 
1
+ - run_type=debug
 
 
 
 
2
  - host=gin
3
+ - checkpoint=best_val_iou
4
+ - experiment=hisup_image
5
+ - +image_file=demo_data/image0_CH_val.tif
pix2poly/224/image_bs2x16/predictions_CH_val/best_val_iou.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:417117afafadfe360062181df75c55caedac3d370159a5b17cdfec528687196e
3
- size 467261
 
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 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1126f59e7ed29ec45143e31ec7de667abe64c89df29376d1a8323ffe0b5845a3
3
- size 458422
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96ffc916fa37450666cb606a281e01a117f60687fd85242c39f5c804b80f3589
3
+ size 35885