tensorflow / tensorflow/models

Controlling number and frequency of checkpointing for Object Detection API

Open
#8,930 2 comments 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since Jul 22, 2020.

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

Description

Prerequisites

Please answer the following question for yourself before submitting an issue.

  • I checked to make sure that this feature has not been requested already.

Well, there are a couple other issues #4636, #5139 discussing the same feature, but I can't find any clear instructions/solutions.

1. The entire URL of the file you are using

https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf1.md

2. Describe the feature you request

Two questions:

  1. Can we control the frequency of checkpointing?
  2. Can we control how many checkpoints are saved? Currently it seems like only the latest few checkpoints are saved when training, while the earlier checkpoints are automatically deleted. This defeats the purpose of checkpointing to some extent, as often users would want to train for many epochs and then find/use the checkpoint just before overfitting.

Is this already possible? If so, could clear instructions for these be added to the documentation?

3. Additional context

I'm using TF1 and particularly interested in instructions for TF1, but adding documentation for both TF1 and TF2 would be the ideal.

4. Are you willing to contribute it? (Yes or No)

May be.

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.