sync configs/kermany/sample_DINOv2L.yaml
Browse files
configs/kermany/sample_DINOv2L.yaml
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
stage_1:
|
| 2 |
+
target: stage1.RAE
|
| 3 |
+
params:
|
| 4 |
+
encoder_cls: Dinov2withNorm
|
| 5 |
+
encoder_config_path: facebook/dinov2-with-registers-large
|
| 6 |
+
encoder_input_size: 224
|
| 7 |
+
encoder_params:
|
| 8 |
+
dinov2_path: facebook/dinov2-with-registers-large
|
| 9 |
+
normalize: true
|
| 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_DINOv2L/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/DINOv2L/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: 1024
|
| 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 |
+
ckpt: /mnt/tidal-alsh-share2/dataset/qinshengqian/research/c3/Data/Classification/OCT_8/Baseline/RAE-main/results_kermany/stage2/stage2_DINOv2L/checkpoints/ep-last.pt
|
| 41 |
+
transport:
|
| 42 |
+
params:
|
| 43 |
+
path_type: Linear
|
| 44 |
+
prediction: velocity
|
| 45 |
+
loss_weight: null
|
| 46 |
+
time_dist_type: logit-normal_0_1
|
| 47 |
+
sampler:
|
| 48 |
+
mode: ODE
|
| 49 |
+
params:
|
| 50 |
+
sampling_method: euler
|
| 51 |
+
num_steps: 50
|
| 52 |
+
atol: 1.0e-06
|
| 53 |
+
rtol: 0.001
|
| 54 |
+
reverse: false
|
| 55 |
+
guidance:
|
| 56 |
+
method: cfg
|
| 57 |
+
scale: 1.0
|
| 58 |
+
t_min: 0.0
|
| 59 |
+
t_max: 1.0
|
| 60 |
+
misc:
|
| 61 |
+
latent_size:
|
| 62 |
+
- 1024
|
| 63 |
+
- 16
|
| 64 |
+
- 16
|
| 65 |
+
num_classes: 4
|
| 66 |
+
time_dist_shift_dim: 262144
|
| 67 |
+
time_dist_shift_base: 4096
|
| 68 |
+
training:
|
| 69 |
+
epochs: 50
|
| 70 |
+
global_batch_size: 64
|
| 71 |
+
grad_accum_steps: 1
|
| 72 |
+
ema_decay: 0.9995
|
| 73 |
+
num_workers: 8
|
| 74 |
+
log_interval: 100
|
| 75 |
+
checkpoint_interval: 20
|
| 76 |
+
sample_every: 5000
|
| 77 |
+
clip_grad: 1.0
|
| 78 |
+
global_seed: 42
|
| 79 |
+
optimizer:
|
| 80 |
+
lr: 0.0002
|
| 81 |
+
betas:
|
| 82 |
+
- 0.9
|
| 83 |
+
- 0.95
|
| 84 |
+
weight_decay: 0.0
|
| 85 |
+
scheduler:
|
| 86 |
+
type: linear
|
| 87 |
+
warmup_epochs: 10
|
| 88 |
+
decay_end_epoch: 50
|
| 89 |
+
base_lr: 0.0002
|
| 90 |
+
final_lr: 2.0e-05
|
| 91 |
+
warmup_from_zero: false
|