-
Notifications
You must be signed in to change notification settings - Fork 1
/
yolo_v4_minneapple.txt
87 lines (87 loc) · 2.06 KB
/
yolo_v4_minneapple.txt
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
random_seed: 42
yolov4_config {
big_anchor_shape: "[(29.33, 27.00), (32.27, 35.00), (41.07, 42.00)]"
mid_anchor_shape: "[(20.53, 21.00), (25.42, 20.00), (22.49, 29.00)]"
small_anchor_shape: "[(15.64, 12.00), (12.71, 18.00), (17.60, 22.00)]"
box_matching_iou: 0.25
matching_neutral_box_iou: 0.5
arch: "resnet"
nlayers: 18
arch_conv_blocks: 2
loss_loc_weight: 1.0
loss_neg_obj_weights: 1.0
loss_class_weights: 1.0
label_smoothing: 0.0
big_grid_xy_extend: 0.05
mid_grid_xy_extend: 0.1
small_grid_xy_extend: 0.2
freeze_bn: false
#freeze_blocks: 0
force_relu: false
}
training_config {
batch_size_per_gpu: 4
num_epochs: 50
enable_qat: false
checkpoint_interval: 10
learning_rate {
soft_start_cosine_annealing_schedule {
min_learning_rate: 1e-7
max_learning_rate: 1e-4
soft_start: 0.3
}
}
regularizer {
type: L1
weight: 3e-5
}
optimizer {
adam {
epsilon: 1e-7
beta1: 0.9
beta2: 0.999
amsgrad: false
}
}
pretrain_model_path: "/workspace/tao-experiments/yolo_v4/pretrained_resnet18/pretrained_object_detection_vresnet18/resnet_18.hdf5"
}
eval_config {
average_precision_mode: SAMPLE
batch_size: 8
matching_iou_threshold: 0.5
}
nms_config {
confidence_threshold: 0.001
clustering_iou_threshold: 0.5
top_k: 200
}
augmentation_config {
hue: 0.1
saturation: 1.5
exposure:1.5
vertical_flip:0
horizontal_flip: 0.5
jitter: 0.3
output_width: 704
output_height: 1280
output_channel: 3
randomize_input_shape_period: 0
mosaic_prob: 0.5
mosaic_min_ratio:0.2
}
dataset_config {
data_sources: {
label_directory_path: "/workspace/tao-experiments/data/train/labels"
image_directory_path: "/workspace/tao-experiments/data/train/images"
}
include_difficult_in_training: true
image_extension: "png"
validation_data_sources: {
label_directory_path: "/workspace/tao-experiments/data/train/labels"
image_directory_path: "/workspace/tao-experiments/data/train/images"
}
target_class_mapping {
key: "car"
value: "Apple"
}
}