-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsettings.json
85 lines (85 loc) · 2.08 KB
/
settings.json
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
{
"model": {
"name": "yolov7-e6",
"pretrained": true,
"freeze": false,
"weight_path" : false,
"weight_dataset": "Fine24",
"load_anchors" : true
},
"optimizer": {
"name": "SGD",
"learning_rate": 0.05,
"weight_decay": 0.0005,
"lr_scheduler": "OneCycleLR"
},
"lr_scheduler": {
"warmup_epochs": 1,
"warmup_multiplier": 0.2,
"milestones": [
40,
50
],
"milestone_multiplier": 0.1
},
"lr_onecycle": {
"pct_start": 0.4,
"base_momentum": 0.8,
"max_momentum": 0.937,
"div_factor": 20.0,
"final_div_factor": 10000.0
},
"loss": {
"box_loss_weight": 0.05,
"cls_loss_weight": 0.5,
"obj_loss_weight": 1.0,
"ota_loss": true
},
"dataset": {
"name": "CropsOrWeed9",
"batch_size": 6,
"eval_batch_scale" : 10,
"num_workers" : 8,
"accumulate_batch_size": 1,
"use_extra_class": 0,
"image_size": [
1280,
1280
],
"stack2_images": true,
"normalize_images" : false,
"seed": 4222
},
"mAP": {
"min_confidence": 0.02,
"nms_threshold": 0.02,
"iou_threshold": 0.7,
"max_detections": 150
},
"trainer": {
"max_epochs": 36,
"strategy": "auto",
"accumulate_grad_batches": 2,
"check_val_every_n_epoch" : 2,
"val_check_interval" : false,
"ckpt_path" : false,
"disable_val_sanity_checks" : true,
"deepspeed_config" : {
"zero_allow_untested_optimizer": true,
"zero_force_ds_cpu_optimizer": false,
"train_batch_size" : "batch_size",
"train_micro_batch_size_per_gpu" : "batch_size",
"zero_optimization": {
"stage": 2,
"offload_optimizer": true,
"allgather_bucket_size": 5e8,
"reduce_bucket_size": 5e8,
"offload_optimizer": {
"device": "cpu",
"pin_memory": true
}
}
},
"precision" : 16
}
}