karisu commited on
Commit
a9d65eb
·
verified ·
1 Parent(s): 9d126e1

Upload timm_dla34/config.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. timm_dla34/config.yaml +160 -0
timm_dla34/config.yaml ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ losses:
2
+ FocalLoss:
3
+ print_name: focal_loss
4
+ from_torch: false
5
+ output_idx: 0
6
+ target_idx: 0
7
+ lambda_const: 1.0
8
+ kwargs:
9
+ alpha: 2
10
+ beta: 4
11
+ reduction: mean
12
+ normalize: false
13
+ CrossEntropyLoss:
14
+ print_name: ce_loss
15
+ from_torch: true
16
+ output_idx: 1
17
+ target_idx: 1
18
+ lambda_const: 1.0
19
+ background_class_weight: 0.1
20
+ kwargs:
21
+ reduction: mean
22
+ weight:
23
+ - ${losses.CrossEntropyLoss.background_class_weight}
24
+ - 5
25
+ - 0.1
26
+ datasets:
27
+ img_size:
28
+ - 512
29
+ - 512
30
+ anno_type: point
31
+ num_classes: 3
32
+ collate_fn: null
33
+ class_def:
34
+ 1: iguana_point
35
+ 2: hard_negative
36
+ train:
37
+ name: CSVDataset
38
+ csv_file: /raid/cwinkelmann/training_data/iguana/2025_12_02/last_run/train/herdnet_format_800_160_crops.csv
39
+ root_dir: /raid/cwinkelmann/training_data/iguana/2025_12_02/last_run/train/crops_800_numNone_overlap160
40
+ sampler: null
41
+ augmentation_multiplier: 1
42
+ albu_transforms:
43
+ HorizontalFlip:
44
+ p: 0.5
45
+ VerticalFlip:
46
+ p: 0.5
47
+ MotionBlur:
48
+ p: 0.1
49
+ ObjectAwareRandomCropEdgeBlackout:
50
+ height: 512
51
+ width: 512
52
+ p: 1.0
53
+ attempts: 10
54
+ Normalize:
55
+ p: 1.0
56
+ end_transforms:
57
+ MultiTransformsWrapper:
58
+ FIDT:
59
+ num_classes: ${datasets.num_classes}
60
+ down_ratio: ${model.kwargs.down_ratio}
61
+ radius: 1
62
+ PointsToMask:
63
+ radius: 2
64
+ num_classes: ${datasets.num_classes}
65
+ squeeze: true
66
+ down_ratio: 32
67
+ validate:
68
+ name: CSVDataset
69
+ csv_file: /raid/cwinkelmann/training_data/iguana/2025_12_02/last_run/val/herdnet_format_800_160_crops.csv
70
+ root_dir: /raid/cwinkelmann/training_data/iguana/2025_12_02/last_run/val/crops_800_numNone_overlap160
71
+ albu_transforms:
72
+ Normalize:
73
+ p: 1.0
74
+ end_transforms:
75
+ DownSample:
76
+ down_ratio: ${model.kwargs.down_ratio}
77
+ anno_type: ${datasets.anno_type}
78
+ test:
79
+ name: CSVDataset
80
+ csv_file: /raid/cwinkelmann/training_data/iguana/2025_11_12/Fernandina_fwk/val/herdnet_format.csv
81
+ root_dir: /raid/cwinkelmann/training_data/iguana/2025_11_12/Fernandina_fwk/val/Default
82
+ tile_size: 2500
83
+ albu_transforms:
84
+ Normalize:
85
+ p: 1.0
86
+ end_transforms:
87
+ DownSample:
88
+ down_ratio: ${model.kwargs.down_ratio}
89
+ anno_type: ${datasets.anno_type}
90
+ training_settings:
91
+ trainer: Trainer
92
+ epochs: 50
93
+ valid_freq: 1
94
+ print_freq: 225
95
+ batch_size: 25
96
+ optimizer: adamW
97
+ lr: 0.0001
98
+ backbone_lr: 1.0e-05
99
+ head_lr: 0.001
100
+ weight_decay: 0.00016
101
+ num_workers: 2
102
+ auto_lr:
103
+ mode: max
104
+ patience: 35
105
+ threshold: 0.0001
106
+ threshold_mode: rel
107
+ cooldown: 10
108
+ min_lr: 1.0e-07
109
+ verbose: true
110
+ warmup_iters: 500
111
+ vizual_fn: visualize_sample
112
+ visualiser:
113
+ name: HeatMapVisualizer
114
+ output_dir: ./visualizations
115
+ down_ratio: 4
116
+ loss_evaluation: null
117
+ evaluator:
118
+ name: HerdNetEvaluator
119
+ threshold: 100
120
+ select_mode: max
121
+ validate_on: f1_score
122
+ kwargs:
123
+ print_freq: 125
124
+ lmds_kwargs:
125
+ kernel_size:
126
+ - 9
127
+ - 9
128
+ adapt_ts: 0.3
129
+ scale_factor: 1
130
+ up: true
131
+ stitcher:
132
+ name: HerdNetStitcher
133
+ kwargs:
134
+ overlap: 120
135
+ down_ratio: ${model.kwargs.down_ratio}
136
+ up: false
137
+ reduction: mean
138
+ debug_visualiser: null
139
+ model:
140
+ name: 'HerdNet'
141
+ from_torchvision: False
142
+ load_from: null
143
+ resume_from: null
144
+ kwargs:
145
+ num_layers: 34
146
+ pretrained: True
147
+ down_ratio: 2 # was two before
148
+ head_conv: 64 # was 64
149
+ freeze: null
150
+ wandb_notes: 'fine tune on full iguana dataset with timm DLA34 model
151
+
152
+ '
153
+ wandb_flag: false
154
+ wandb_project: f1_last_run
155
+ wandb_entity: karisu
156
+ wandb_run: x25_dla34
157
+ wandb_tags:
158
+ - dla
159
+ seed: 1
160
+ device_name: null