-
Notifications
You must be signed in to change notification settings - Fork 466
Expand file tree
/
Copy pathyolox_x_tile.yaml
More file actions
106 lines (99 loc) · 3 KB
/
Copy pathyolox_x_tile.yaml
File metadata and controls
106 lines (99 loc) · 3 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
task: DETECTION
model:
class_path: getitune.backend.lightning.models.detection.yolox.YOLOX
init_args:
model_name: yolox_x
label_info: 80
optimizer:
class_path: torch.optim.SGD
init_args:
lr: 0.001
momentum: 0.9
weight_decay: 0.0001
scheduler:
class_path: getitune.backend.lightning.schedulers.LinearWarmupSchedulerCallable
init_args:
num_warmup_steps: 0
main_scheduler_callable:
class_path: lightning.pytorch.cli.ReduceLROnPlateau
init_args:
mode: max
factor: 0.1
patience: 4
monitor: val/map_50
engine:
device: auto
callback_monitor: val/map_50
data: ../_base_/data/detection_tile.yaml
callbacks:
- class_path: getitune.backend.lightning.callbacks.adaptive_early_stopping.EarlyStoppingWithWarmup
init_args:
mode: max
patience: 10
check_on_train_epoch_end: false
monitor: val/map_50
min_delta: 0.001
warmup_iters: 30
warmup_epochs: 3
- class_path: lightning.pytorch.callbacks.ModelCheckpoint
init_args:
dirpath: "" # use engine.work_dir
monitor: val/map_50
mode: max
save_top_k: 1
save_last: true
auto_insert_metric_name: false
filename: "checkpoints/epoch_{epoch:03d}"
overrides:
gradient_clip_val: 35.0
data:
input_size:
- 640
- 640
train_subset:
batch_size: 4
augmentations_cpu:
- class_path: getitune.data.augmentation.transforms.Resize
init_args:
size: $(input_size)
keep_aspect_ratio: false
- class_path: torchvision.transforms.v2.RandomHorizontalFlip
init_args:
p: 0.5
- class_path: torchvision.transforms.v2.ColorJitter
init_args:
brightness: 0.125
contrast: 0.5
saturation: 0.5
hue: 0.05
augmentations_gpu:
- class_path: kornia.augmentation.Normalize
init_args:
mean: [0.0, 0.0, 0.0]
std: [0.00392156862745098, 0.00392156862745098, 0.00392156862745098]
val_subset:
batch_size: 4
augmentations_cpu:
- class_path: getitune.data.augmentation.transforms.Resize
init_args:
size: $(input_size)
keep_aspect_ratio: false
resize_targets: false
augmentations_gpu:
- class_path: kornia.augmentation.Normalize
init_args:
mean: [0.0, 0.0, 0.0]
std: [0.00392156862745098, 0.00392156862745098, 0.00392156862745098]
test_subset:
batch_size: 4
augmentations_cpu:
- class_path: getitune.data.augmentation.transforms.Resize
init_args:
size: $(input_size)
keep_aspect_ratio: false
resize_targets: false
augmentations_gpu:
- class_path: kornia.augmentation.Normalize
init_args:
mean: [0.0, 0.0, 0.0]
std: [0.00392156862745098, 0.00392156862745098, 0.00392156862745098]