tensorflow / tensorflow/models

Object detection training from_detection_checkpoint doesn't keep step number

Open
#7,132 1 comment 1 reaction 3 assignees View on GitHub

@pkulzc is already working on this.

Since Jun 19, 2020.

models:research:odapi
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: models/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): os x
  • TensorFlow installed from (source or binary): source
  • TensorFlow version (use command below): v1.14.0-0-g87989f6959 1.14.0
  • Bazel version (if compiling from source): NA
  • CUDA/cuDNN version: NA
  • GPU model and memory: NA
  • Exact command to reproduce:
python /content/models/research/object_detection/model_main.py \
    --pipeline_config_path=/content/resnet101.config \
    --model_dir=/content/output \
    --alsologtostderr
Describe the problem

When fine-tuning from a detection checkpoint, even with from_detection_checkpoint: true, the training process restarts at step 0.

Example, with:

  fine_tune_checkpoint: "restnet101/model.ckpt-1234"
  from_detection_checkpoint: true

Training will load the checkpoint without issue but will start at step 0, not at step 1234. I am pretty sure this behaviour changed "recently", do you know what might be causing this? Did I get something wrong in my config?

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.