tensorflow / tensorflow/models

model_main.py does not save max checkpoints as specified

Open
#7,497 2 comments 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since Jun 22, 2020.

models:research:odapi type:support
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

System information

  • What is the top-level directory of the model you are using:
    https://github.com/tensorflow/models/blob/master/research/object_detection/

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
    No

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
    Linux ubuntu 16.04

  • TensorFlow installed from (source or binary):
    anaconda

  • TensorFlow version (use command below):
    1.13

  • Bazel version (if compiling from source):

  • CUDA/cuDNN version:
    CUDA 10.0.130

  • GPU model and memory:
    GTX 2080Ti 11 Gb

  • Exact command to reproduce:

python /home/admin/code/models/research/object_detection/model_main.py \
    --pipeline_config_path=${PIPELINE_CONFIG_PATH} \
    --model_dir=${MODEL_DIR} \
    --alsologtostderr

Describe the problem

I use the config as config = tf.estimator.RunConfig(model_dir=FLAGS.model_dir, save_checkpoints_secs=900, keep_checkpoint_max=100) in model_main.py, the save_checkpoints_secs is effective, it save checkpoint every 15 minutes, but keep_checkpoint_max is not effective, there are only 5 models at most

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.