h0c06.yaml 2.1 KB
Newer Older
mibaumgartner's avatar
mibaumgartner committed
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
# @package __global__
defaults:
  - augmentation: base_more

model: "RetinaUNetC009LH1"
trainer: "BoxTrainer"
predictor: "BoxPredictorSelective"
plan: D3C002_3d

planners:
  2d: [D2C002]
  3d: [D3C003FDR] # [D3C002LR15, D3C002LR20] [D3C002NR, D3C002RibFrac] [D2C002, D3C002]

augment_cfg:
  oversample_foreground_percent: 0.5 # ratio of fg and bg in batches
  augmentation: ${augmentation}
  dataloader: "DataLoader{}DOffset"
  dataloader_kwargs: {}

trainer_cfg:
  # Per default training is deterministic, non-deterministic allows
  # cudnn.benchmark which can give up to 20% performance. Set this to false
  # to perform non-deterministic training
  deterministic: True
  fp16: True # enable fp16 training. Makes sense for supported hardware only!
  eval_score_key: "mAP_IoU_0.10_0.50_0.05_MaxDet_100" # metric to optimize

  num_batches_per_epoch: 2500 # number of train batches per epoch
  num_val_batches_per_epoch: 100 # number of val batches per epoch
  max_num_epochs: 50 # max number of epochs
  overwrites: {}

  initial_lr: 0.01 # initial learning rate to start with
  weight_decay: 3.e-5 # weight decay for optimizer

  warmup: 4000 # number of iterations with warmup
  warmup_lr: 1.e-6 # learning rate to start warmup from

model_cfg:
  matching:
    # IoU Matcher Parameters
    fg_iou_thresh: 0.4 # IoU threshold for anchors to be matched positive
    bg_iou_thresh: 0.3 # IoU threshold for anchors to be matched negative
    # If ground truth has no matched anchors, use the best anchor which was found
    allow_low_quality_matches: True

    # ATSS matching
    num_candidates: 4
    center_in_gt: False

  hnm: # parameters for hard negative mining
    batch_size_per_image: 32 # number of anchors sampled per image
    positive_fraction: 0.33 # defines ratio between positive and negative anchors
    # hard negatives are sampled from a pool of size:
    # batch_size_per_image * (1 - positive_fraction) * pool_size
    pool_size: 20
    min_neg: 1 # minimum number of negative anchors sampled per image

  plan_arch_overwrites: {} # overwrite arguments of architecture
  plan_anchors_overwrites: {} # overwrite arguments of anchors