Skip to content

Commit 565b7f3

Browse files
Merge pull request #10605 from PurdueDualityLab:yolov4_tiny_pr
PiperOrigin-RevId: 568323458
2 parents 0a33281 + 286bcf6 commit 565b7f3

File tree

2 files changed

+142
-0
lines changed

2 files changed

+142
-0
lines changed

official/projects/yolo/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ https://arxiv.org/abs/2103.14259)) which gives more gains on mAP.
6060
* Akhil Chinnakotla ([@GitHub The-Indian-Chinna](https://github.com/The-Indian-Chinna))
6161
* Tristan Yan ([@GitHub Tyan3001](https://github.com/Tyan3001))
6262
* Naveen Vivek ([@GitHub naveen-vivek](https://github.com/naveen-vivek))
63+
* Jacob Zietek ([@GitHub jacob-zietek](https://github.com/jacob-zietek))
6364

6465
### YOLOv7
6566

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# --experiment_type=yolo_darknet
2+
# 21.21 AP
3+
# 41.68 AP50
4+
# 19.12 AP75
5+
# 29.59 APl
6+
# 23.94 APm
7+
# 9.67 APs
8+
9+
runtime:
10+
distribution_strategy: 'tpu'
11+
mixed_precision_dtype: 'float32'
12+
task:
13+
smart_bias_lr: 0.0
14+
model:
15+
darknet_based_model: true
16+
input_size: [416, 416, 3]
17+
backbone:
18+
type: 'darknet'
19+
darknet:
20+
model_id: 'cspdarknettiny'
21+
max_level: 5
22+
min_level: 4
23+
decoder:
24+
type: yolo_decoder
25+
yolo_decoder:
26+
version: v4
27+
type: tiny
28+
head:
29+
smart_bias: true
30+
detection_generator:
31+
box_type:
32+
'all': original
33+
scale_xy:
34+
'all': 1.05
35+
max_boxes: 300
36+
nms_type: iou
37+
iou_thresh: 0.001
38+
nms_thresh: 0.60
39+
loss:
40+
use_scaled_loss: false
41+
box_loss_type:
42+
'all': ciou
43+
ignore_thresh:
44+
'all': 0.7
45+
iou_normalizer:
46+
'all': 0.07
47+
cls_normalizer:
48+
'all': 1.0
49+
object_normalizer:
50+
'all': 1.0
51+
objectness_smooth:
52+
'all': 0.0
53+
max_delta:
54+
'all': .inf
55+
norm_activation:
56+
activation: leaky
57+
norm_epsilon: 0.00001
58+
norm_momentum: 0.99
59+
use_sync_bn: true
60+
num_classes: 80
61+
anchor_boxes:
62+
anchors_per_scale: 3
63+
boxes: [box: [10, 14], box: [23, 27], box: [37, 58], box: [81, 82], box: [135, 169], box: [344, 319]]
64+
train_data:
65+
prefetch_buffer_size: 32
66+
global_batch_size: 512
67+
dtype: float32
68+
input_path: 'gs://cam2-datasets/coco/train*'
69+
is_training: true
70+
drop_remainder: true
71+
seed: 1000
72+
parser:
73+
mosaic:
74+
mosaic_frequency: 0.0
75+
mixup_frequency: 0.0
76+
max_num_instances: 300
77+
letter_box: false
78+
random_flip: true
79+
aug_rand_saturation: 1.5
80+
aug_rand_brightness: 1.5
81+
aug_rand_hue: 0.1
82+
aug_scale_min: 0.50
83+
aug_scale_max: 1.5
84+
aug_rand_translate: 0.0
85+
jitter: 0.3
86+
area_thresh: 0.0
87+
random_pad: true
88+
use_tie_breaker: false
89+
best_match_only: false
90+
anchor_thresh: 1.0
91+
validation_data:
92+
prefetch_buffer_size: 32
93+
global_batch_size: 8
94+
dtype: float32
95+
input_path: 'gs://cam2-datasets/coco/val*'
96+
is_training: false
97+
drop_remainder: true
98+
parser:
99+
max_num_instances: 300
100+
letter_box: false
101+
use_tie_breaker: false
102+
best_match_only: false
103+
anchor_thresh: 1.0
104+
weight_decay: 0.000
105+
init_checkpoint: null
106+
init_checkpoint_modules: null
107+
annotation_file: null
108+
trainer:
109+
best_checkpoint_eval_metric: 'AP'
110+
best_checkpoint_export_subdir: 'best_ckpt'
111+
best_checkpoint_metric_comp: 'higher'
112+
train_steps: 553126
113+
validation_steps: 625
114+
steps_per_loop: 920
115+
summary_interval: 920
116+
validation_interval: 9200
117+
checkpoint_interval: 920
118+
optimizer_config:
119+
ema:
120+
average_decay: 0.9998
121+
trainable_weights_only: false
122+
dynamic_decay: true
123+
learning_rate:
124+
type: stepwise
125+
stepwise:
126+
boundaries: [442500, 497814]
127+
name: PiecewiseConstantDecay
128+
values: [0.04176, 0.004176, 0.0004176]
129+
optimizer:
130+
type: sgd_torch
131+
sgd_torch:
132+
momentum: 0.9
133+
momentum_start: 0.9
134+
nesterov: true
135+
warmup_steps: 2000
136+
weight_decay: 0.0005
137+
name: SGD
138+
warmup:
139+
type: 'linear'
140+
linear:
141+
warmup_steps: 2000

0 commit comments

Comments
 (0)