File size: 1,290 Bytes
fe8202e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
seed: 42
device: "cuda"
amp: true
synthetic: true

data:
  format: "segmamba_npz"
  root_dir: "./data/fullres/train"
  modalities: ["t1n", "t1c", "t2f", "t2w"]
  seg_name: "seg"
  orientation: "RAS"
  do_spacing: false
  spacing: [1.0, 1.0, 1.0]
  crop_size: [8, 64, 64]
  num_samples: 1
  rand_scale_prob: 0.1
  rand_shift_prob: 0.1
  batch_size: 2
  synthetic_shape: [8, 64, 64]
  synthetic_cases: 6

model:
  patch_size: 16
  token_dim: 96
  depth: 2
  heads: 4
  mlp_ratio: 4.0
  slice_attn_k: 4
  slice_attn_random_dir: true
  spectral_bins: 16
  spectral_q: 3
  msda_scales: [3, 5, 7]
  moe_experts: 5
  moe_topk: 2
  decoder_hidden: 64
  prompt_mlp_hidden: 96
  use_sam3_backbone: false
  sam3_ckpt_path: "/data/yty/sam3/sam3.pt"
  sam3_freeze: true
  sam3_in_chans: 7
  sam3_input_mean: [0.5, 0.5, 0.5]
  sam3_input_std: [0.5, 0.5, 0.5]

loss:
  dice_weight: 1.0
  bce_weight: 1.0
  et_focal_weight: 0.2
  focal_gamma: 2.0
  pres_weight: 0.1
  hier_weight: 0.1
  moe_weight: 0.01

train:
  epochs: 1
  max_steps: 12
  lr: 0.0003
  weight_decay: 0.00001
  log_every: 2
  save_every: 6
  ckpt_dir: "./checkpoints"
  fourier_mix_prob: 0.3
  num_workers: 0
  use_label_prompt: true

infer:
  roi_size: [8, 64, 64]
  sw_batch_size: 1
  overlap: 0.5
  threshold: 0.5
  et_cc_min_size: 20