Bavantha11 commited on
Commit
42a4af4
·
verified ·
1 Parent(s): f301af3

Upload configs/nyudv2/m2h_mx_l.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. configs/nyudv2/m2h_mx_l.yaml +102 -0
configs/nyudv2/m2h_mx_l.yaml ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dataset:
2
+ name: NYUD
3
+ root: data/NYUDv2
4
+ image_size: [480, 640]
5
+ num_classes: 40
6
+ min_depth: 0.01
7
+ max_depth: 10.0
8
+ visual_min_depth: 0.01
9
+ visual_max_depth: 10.0
10
+ augment:
11
+ random_scale: [1.0, 1.2] # narrower scaling for stability
12
+ random_crop: true
13
+ horizontal_flip: true
14
+ color_jitter: {brightness: 0.15, contrast: 0.15, saturation: 0.15, hue: 0.05}
15
+ erase_prob: 0.0
16
+ blur_prob: 0.0
17
+ noise_std: 0.0
18
+ gamma: [0.95, 1.05]
19
+
20
+ training:
21
+ epochs: 40
22
+ batch_size: 4
23
+ eval_batch_size: 12
24
+ num_workers: 4
25
+ device: cuda
26
+ mixed_precision: true
27
+ log_interval: 50
28
+ ckpt_interval: 1
29
+ grad_clip: 1.0
30
+ output_dir: outputs/nyudv2_m2h_mx_l
31
+ ema_decay: 0.999
32
+ eval_use_ema: true
33
+ finetune: true
34
+
35
+ optimization:
36
+ lr: 3.0e-5
37
+ weight_decay: 0.05
38
+ betas: [0.9, 0.999]
39
+ warmup_epochs: 3
40
+ scheduler:
41
+ type: cosine
42
+ min_lr: 1.0e-6
43
+
44
+ tasks:
45
+ include_semseg: true
46
+ include_depth: true
47
+ include_edge: true
48
+ include_normals: true
49
+ edge_pos_weight: 1.0
50
+
51
+ loss:
52
+ weights:
53
+ semseg: 3.0 # boost semantics
54
+ depth_si: 1.5 # temper depth
55
+ edge: 0.2 # lower edge emphasis
56
+ normals: 0.5 # lighten normals
57
+ focal_for_edges: true
58
+ geom_consistency_weight: 0.2
59
+ consistency_depth_normals: 0.2
60
+ consistency_sem_edge: 0.25
61
+ depth_scale_weight: 0.1
62
+ depth_coarse_weight: 0.2
63
+ depth_offset_weight: 0.1
64
+ depth_bin_weight: 0.2
65
+ edge_dice_weight: 0.1
66
+ depth_edge_weight: 0.01
67
+ sem_edge_entropy_weight: 0.01
68
+ use_uncertainty_balancer: false # fixed weights for stable fine-tuning
69
+
70
+ model:
71
+ arch: m2h_mx_l
72
+ num_classes: 40
73
+ min_depth: 0.01
74
+ max_depth: 10.0
75
+
76
+ m2h_mx:
77
+ decoder_dim: 256
78
+ num_seg_classes: 40
79
+ backbone_lr_scale: 0.2
80
+ ltc_window_size: 4
81
+ hm_d_state: 32
82
+ hm_drop_path: 0.1
83
+ gtf_extra_levels: 2
84
+ train_last_n_blocks: 12
85
+ intermediate_layer_indices: [5, 11, 17, 23]
86
+ depth_aux_weight: 0.1
87
+ num_register_tokens: 4
88
+ use_lora: true
89
+ lora_rank: 16
90
+ lora_alpha: 32.0
91
+ lora_dropout: 0.05
92
+ depth_bins: 64
93
+ aux_weights:
94
+ semseg: 0.3
95
+ depth: 0.2
96
+ edge: 0.15
97
+ normals: 0.15
98
+ backbone_name: facebook/dinov3-vitl16-pretrain-lvd1689m
99
+
100
+ validation:
101
+ interval_steps: 100
102
+ save_best_on: ["sem_mIoU", "dep_AbsRel"]