tensorflow / tensorflow/models

no flag for checkpoint_max_to_keep in model_main_tf2.py

Open
#10,793 0 comments 0 reactions 3 assignees View on GitHub

Nobody has claimed this yet.

models:research 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.

1. The entire URL of the file you are using

https://github.com/tensorflow/models/blob/0d13df63c3dee2d226f715fcac39e38008c66b5a/research/object_detection/model_main_tf2.py

2. Describe the feature you request

model_lib_v2.train_loop supports passing in checkpoint_max_to_keep - but the cli script model_main_tf2.py does not have a flag which allows the user to pass this param through.

https://github.com/tensorflow/models/blob/0d13df63c3dee2d226f715fcac39e38008c66b5a/research/object_detection/model_main_tf2.py

https://github.com/tensorflow/models/blob/0d13df63c3dee2d226f715fcac39e38008c66b5a/research/object_detection/model_lib_v2.py#L452

3. Additional context

Exposing this flag will allow users to specify the number of checkpoints they would like to keep while training.

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

Yes

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.