Hello everyone, I have 2 questions and thank you for your interest.
1- https://www.tensorflow.org/tfmodels/vision/object_detection Does this tutorial contain transfer learning? If your answers yes, Can you explain how do you understand that.
2- I just follow this tutorial with different data set which is pothole data.
Validation metrics are very bad. How can I increase validation metrics. I need more than 0.5 AP.
I use 30000 step to train model.
Model and model parameters are:
exp_config = exp_factory.get_exp_config(âretinanet_resnetfpn_cocoâ)
batch_size = 32
num_classes = 1
HEIGHT, WIDTH = 640, 640
IMG_SIZE = [HEIGHT, WIDTH, 3]
Backbone config.
exp_config.task.freeze_backbone = True
exp_config.task.annotation_file = ââ
Model config.
exp_config.task.model.input_size = IMG_SIZE
exp_config.task.model.num_classes = num_classes + 1
exp_config.task.model.detection_generator.tflite_post_processing.max_classes_per_detection = exp_config.task.model.num_classes
Training data config.
exp_config.task.train_data.input_path = train_data_input_path
exp_config.task.train_data.dtype = âfloat32â
exp_config.task.train_data.global_batch_size = batch_size
exp_config.task.train_data.parser.aug_scale_max = 1.0
exp_config.task.train_data.parser.aug_scale_min = 1.0
Validation data config.
exp_config.task.validation_data.input_path = valid_data_input_path
exp_config.task.validation_data.dtype = âfloat32â
exp_config.task.validation_data.global_batch_size = batch_size
Result Metrics are:
eval | step: 30000 | steps/sec: 5.4 | eval time: 18.4 sec | output:
{âAPâ: 0.10134392,
âAP50â: 0.29438367,
âAP75â: 0.03953968,
âAPlâ: 0.550495,
âAPmâ: 0.26847038,
âAPsâ: 0.050420657,
âARlâ: 0.55,
âARmâ: 0.36355934,
âARmax1â: 0.107679464,
âARmax10â: 0.18247078,
âARmax100â: 0.21385643,
âARsâ: 0.17557411,
âbox_lossâ: 0.009063716,
âcls_lossâ: 0.60130537,
âmodel_lossâ: 1.054491,
âsteps_per_secondâ: 5.423086661586954,
âtotal_lossâ: 5.3274546,
âvalidation_lossâ: 5.3274546}
