how to check both training/eval performances in tensorflow object_detection

社会主义新天地 提交于 2019-11-30 14:17:43

问题


When I check the tensorboard for observing the training performance, there only shows the eval_0 (in blue) result.

While it should be a separate train (in orange) and eval (in blue) result as shown in the website of tensorboard (https://www.tensorflow.org/guide/summaries_and_tensorboard?).

However, I want to compare the model performance on training dataset and eval dataset.

So I checked the models/research/object_detection/model_main.py and want to know

if I I can get the precision based on the train and eval dataset by set the flag of model_dir to model/eval folder and set the flag of eval_training_data to model/train folder?

flags.DEFINE_string('model_dir', None, 'Path to output model directory '
                     'where event and checkpoint files will be written.')

flags.DEFINE_boolean('eval_training_data', False,
                     'If training data should be evaluated for this job. Note '
                     'that one call only use this in eval-only mode, and '
                     '`checkpoint_dir` must be supplied.')

And I'm confused with this sentence.

Note that one call only use this in eval-only mode, and checkpoint_dir must be supplied.

Does it means if I just want run it in eval-only mode, then I must set the checkpoint_dir? And if I want to run it with train and eval at the same time, I don't need to set the checkpoint_dir?

来源:https://stackoverflow.com/questions/53663384/how-to-check-both-training-eval-performances-in-tensorflow-object-detection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!