seifbenayed commited on
Commit
1444206
·
verified ·
1 Parent(s): ec3f8a5

Upload detector2.yaml

Browse files
Files changed (1) hide show
  1. configs/detector2.yaml +142 -0
configs/detector2.yaml ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ TASK: custom_laanet
2
+ PRECISION: float32
3
+ METRICS_BASE: binary
4
+ SEED: 317
5
+ DATA_RELOAD: False
6
+ Resume: True
7
+ begin_epoch: 100
8
+
9
+ MODEL:
10
+ # PRETRAINED_PATH: ''
11
+ type: PoseEfficientNet
12
+ model_name: efficientnet-b4
13
+ num_layers: B4
14
+ include_top: False
15
+ include_hm_decoder: True
16
+ head_conv: 64
17
+ use_c2: False
18
+ use_c3: True
19
+ use_c4: True
20
+ use_c51: True
21
+ efpn: True
22
+ tfpn: False
23
+ se_layer: False
24
+ heads:
25
+ hm: 1
26
+ cls: 1
27
+ cstency: 256
28
+ INIT_WEIGHTS:
29
+ pretrained: True
30
+ advprop: True
31
+
32
+ DATASET:
33
+ type: BinaryFaceForensic
34
+ FROM_FILE: False
35
+ PIN_MEMORY: True
36
+ NUM_WORKERS: 7
37
+ COLOR_NORM: 'simple'
38
+ mean: [0.485, 0.456, 0.406]
39
+ std: [0.229, 0.224, 0.225]
40
+ IMAGE_SUFFIX: png
41
+ COMPRESSION: c0
42
+ IMAGE_SUFFIX: png
43
+ IMAGE_SIZE: [384, 384]
44
+ HEATMAP_SIZE: [96, 96] #[IMAGE_SIZE//4, IMAGE_SIZE//4]
45
+ SIGMA: 2
46
+ ADAPTIVE_SIGMA: True
47
+ HEATMAP_TYPE: gaussian
48
+ SPLIT_IMAGE: False
49
+ DATA:
50
+ TYPE: frames
51
+ SAMPLES_PER_VIDEO:
52
+ ACTIVE: True
53
+ TRAIN: 8
54
+ VAL: 8
55
+ TEST: 32
56
+ TRAIN:
57
+ NAME: custom_dataset
58
+ ROOT: ./datasets/train/
59
+ FROM_FILE: False
60
+ FAKETYPE: [fake]
61
+ LABEL_FOLDER: [real, fake]
62
+
63
+ VAL:
64
+ NAME: custom_dataset
65
+ ROOT: ./datasets/test/
66
+ FROM_FILE: False
67
+ FAKETYPE: [fake]
68
+ LABEL_FOLDER: [real, fake]
69
+ TEST:
70
+ NAME: custom_dataset
71
+ ROOT: ./datasets/test/
72
+ FROM_FILE: False
73
+ FAKETYPE: [fake]
74
+ LABEL_FOLDER: [real, fake]
75
+ TRANSFORM:
76
+ geometry:
77
+ type: GeometryTransform
78
+ resize: [384, 384, 0] #h, w, p=probability. If no affine transform, set p=1
79
+ normalize: 0
80
+ horizontal_flip: 0.5
81
+ cropping: [0.15, 0.5] #Format: [crop_limit, prob]
82
+ scale: [0.15, 0.5] #Format: [scale_limit, prob]
83
+ rand_erasing: [0.5, 1] #Format: [p, max_count]
84
+ color:
85
+ type: ColorJitterTransform
86
+ clahe: 0.0
87
+ colorjitter: 0.3
88
+ gaussianblur: 0.3
89
+ gaussnoise: 0.3
90
+ jpegcompression: [0.5, 40, 100] # prob, lower and upper quality respectively
91
+ rgbshift: 0.3
92
+ randomcontrast: 0.0
93
+ randomgamma: 0.5
94
+ randombrightness: 1
95
+ huesat: 1
96
+ normalize:
97
+ mean: [0.5, 0.5, 0.5]
98
+ std: [0.5, 0.5, 0.5]
99
+
100
+ TRAIN:
101
+ resume: True
102
+ gpus: [0]
103
+ pretrained_model: './logs/27-03-2025/PoseEfficientNet_custom_laanet_model_final.pth'
104
+ batch_size: 32
105
+ lr: 0.00005
106
+ epochs: 150
107
+ begin_epoch: 100
108
+ warm_up: 6
109
+ every_val_epochs: 1
110
+ loss:
111
+ type: CombinedFocalLoss
112
+ use_target_weight: False
113
+ cls_lmda: 1
114
+ dst_hm_cls_lmda: 0
115
+ offset_lmda: 0
116
+ hm_lmda: 100
117
+ cstency_lmda: 100
118
+ mse_reduction: sum
119
+ ce_reduction: mean
120
+ optimizer: SAM
121
+ distributed: False
122
+ tensorboard: False
123
+ resume: True
124
+ lr_scheduler:
125
+ # type: MultiStepLR
126
+ milestones: [5, 15, 20, 25]
127
+ gamma: 0.5
128
+ freeze_backbone: True
129
+ debug:
130
+ active: False
131
+ save_hm_gt: True
132
+ save_hm_pred: True
133
+
134
+ TEST:
135
+ gpus: [0]
136
+ subtask: 'eval'
137
+ test_file: ''
138
+ vis_hm: True
139
+ threshold: 0.5
140
+ flip_test: True
141
+ video_level: True
142
+ pretrained: './training/weights/final_model.pth'