tensorflow / tensorflow/models

During training checkpoints are being saved, also the last version of the trained model, which might not be the best model. So there should be an option to save the best model as well.

Open
#9,771 19 comments 0 reactions 3 assignees View on GitHub

Nobody has claimed this yet.

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/master/research/object_detection/g3doc/tf2_detection_zoo.md

2. Describe the feature you request

During training model checkpoints are being saved, also the last version of the trained model, which might not be the best model. So there should be an option to save the best model as well. I know of the tf.estimator.BestExporter estimator, but how can I use that with the latest and official model_main_tf2.py script of the object detection API?

Moreover, until there is such a solution, how can one get the best model during or after the training via the object detection API?

3. Additional context

I am following the official object detection API docs, thus using the model_main_tf2.py script, so a solution should be based on that script too, if possible.

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

In theory yes, but I am afraid that I don't know the TF object detection API well enough to be able to help.

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.