I was wondering how can I train and evaluate the model at each checkpoint in Tf2 object detection API. In the documentation, they suggest to train and then evaluate the model
train
python object_detection/model_main_tf2.py \
--pipeline_config_path=${PIPELINE_CONFIG_PATH} \
--model_dir=${MODEL_DIR} \
--alsologtostderr
evaluate
python object_detection/model_main_tf2.py \
--pipeline_config_path=${PIPELINE_CONFIG_PATH} \
--model_dir=${MODEL_DIR} \
--checkpoint_dir=${CHECKPOINT_DIR} \
--alsologtostderr
what I want is to do the training and after each checkpoint created (1000 step) have an evaluation done. I know that in TF-1 object detection API the evaluation is done automatically each 1000 step and that what I want to replicate in TF-2