MaybeRichard commited on
Commit
926f715
·
verified ·
1 Parent(s): 9649687

sync configs/kermany/fm_stage2/DiTDH-XL_VisionFM.yaml

Browse files
configs/kermany/fm_stage2/DiTDH-XL_VisionFM.yaml ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ stage_1:
2
+ target: stage1.RAE
3
+ params:
4
+ encoder_cls: VisionFM
5
+ encoder_config_path: /mnt/tidal-alsh-share2/dataset/qinshengqian/research/c3/Data/Classification/OCT_8/Baseline/RAE-main/configs/encoders/visionfm
6
+ encoder_input_size: 256
7
+ encoder_params:
8
+ weight_path: /mnt/tidal-alsh-share2/dataset/qinshengqian/research/c3/Data/Classification/OCT_8/Baseline/VisionFM/VFM_OCT_weights.pth
9
+ encoder_input_size: 256
10
+ decoder_config_path: /mnt/tidal-alsh-share2/dataset/qinshengqian/research/c3/Data/Classification/OCT_8/Baseline/RAE-main/configs/decoder/ViTXL
11
+ decoder_patch_size: 16
12
+ pretrained_decoder_path: /mnt/tidal-alsh-share2/dataset/qinshengqian/research/c3/Data/Classification/OCT_8/Baseline/RAE-main/results_kermany/stage1/stage1_VisionFM/checkpoints/decoder_ema.pt
13
+ noise_tau: 0.0
14
+ reshape_to_2d: true
15
+ normalization_stat_path: /mnt/tidal-alsh-share2/dataset/qinshengqian/research/c3/Data/Classification/OCT_8/Baseline/RAE-main/results_kermany/stats/VisionFM/normalization_stats.pt
16
+ stage_2:
17
+ target: stage2.models.DDT.DiTwDDTHead
18
+ params:
19
+ input_size: 16
20
+ patch_size: 1
21
+ in_channels: 768
22
+ hidden_size:
23
+ - 1152
24
+ - 2048
25
+ depth:
26
+ - 28
27
+ - 2
28
+ num_heads:
29
+ - 16
30
+ - 16
31
+ mlp_ratio: 4.0
32
+ class_dropout_prob: 0.1
33
+ num_classes: 4
34
+ use_qknorm: false
35
+ use_swiglu: true
36
+ use_rope: true
37
+ use_rmsnorm: true
38
+ wo_shift: false
39
+ use_pos_embed: true
40
+ transport:
41
+ params:
42
+ path_type: Linear
43
+ prediction: velocity
44
+ loss_weight: null
45
+ time_dist_type: logit-normal_0_1
46
+ sampler:
47
+ mode: ODE
48
+ params:
49
+ sampling_method: euler
50
+ num_steps: 50
51
+ atol: 1.0e-06
52
+ rtol: 0.001
53
+ reverse: false
54
+ guidance:
55
+ method: cfg
56
+ scale: 1.0
57
+ t_min: 0.0
58
+ t_max: 1.0
59
+ misc:
60
+ latent_size:
61
+ - 768
62
+ - 16
63
+ - 16
64
+ num_classes: 4
65
+ time_dist_shift_dim: 196608
66
+ time_dist_shift_base: 4096
67
+ training:
68
+ epochs: 50
69
+ global_batch_size: 64
70
+ grad_accum_steps: 1
71
+ ema_decay: 0.9995
72
+ num_workers: 8
73
+ log_interval: 100
74
+ checkpoint_interval: 20
75
+ sample_every: 5000
76
+ clip_grad: 1.0
77
+ global_seed: 42
78
+ optimizer:
79
+ lr: 0.0002
80
+ betas:
81
+ - 0.9
82
+ - 0.95
83
+ weight_decay: 0.0
84
+ scheduler:
85
+ type: linear
86
+ warmup_epochs: 10
87
+ decay_end_epoch: 50
88
+ base_lr: 0.0002
89
+ final_lr: 2.0e-05
90
+ warmup_from_zero: false