Commit ffb2d2eb authored by Jaehong Kim's avatar Jaehong Kim Committed by A. Unique TensorFlower
Browse files

Update hyper-parameters for mobilenetV2 object detection task with QAT.

PiperOrigin-RevId: 465124474
parent 22016644
# --experiment_type=retinanet_spinenet_mobile_coco_qat # --experiment_type=retinanet_spinenet_mobile_coco_qat
# COCO mAP: 18.4 (Evaluated on the TFLite after conversion.) # COCO mAP: 21.62 (Evaluated on the TFLite after conversion.)
# QAT only supports float32 tpu due to fake-quant op. # QAT only supports float32 tpu due to fake-quant op.
runtime: runtime:
distribution_strategy: 'tpu' distribution_strategy: 'tpu'
mixed_precision_dtype: 'float32' mixed_precision_dtype: 'float32'
task: task:
losses: losses:
l2_weight_decay: 3.0e-05 l2_weight_decay: 3.0e-04
model: model:
anchor: anchor:
anchor_size: 3 anchor_size: 3
...@@ -45,7 +45,7 @@ task: ...@@ -45,7 +45,7 @@ task:
aug_scale_min: 0.5 aug_scale_min: 0.5
validation_data: validation_data:
dtype: 'float32' dtype: 'float32'
global_batch_size: 16 global_batch_size: 64
is_training: false is_training: false
quantization: quantization:
pretrained_original_checkpoint: 'gs://**/tf2_mobilenetv2_ssd_jul29/28129005/ckpt-277200' pretrained_original_checkpoint: 'gs://**/tf2_mobilenetv2_ssd_jul29/28129005/ckpt-277200'
...@@ -54,15 +54,15 @@ task: ...@@ -54,15 +54,15 @@ task:
trainer: trainer:
optimizer_config: optimizer_config:
learning_rate: learning_rate:
stepwise: type: 'exponential'
boundaries: [263340, 272580] exponential:
values: [0.032, 0.0032, 0.00032] decay_rate: 0.96
type: 'stepwise' decay_steps: 231
warmup: initial_learning_rate: 0.2
linear: name: 'ExponentialDecay'
warmup_learning_rate: 0.00067 offset: 0
warmup_steps: 2000 staircase: true
steps_per_loop: 462 steps_per_loop: 462
train_steps: 277200 train_steps: 46200
validation_interval: 462 validation_interval: 462
validation_steps: 625 validation_steps: 625
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment