Show more images in Tensorboard - Tensorflow object detection

有些话、适合烂在心里 提交于 2020-01-12 05:24:41

问题


I am using Tensorflow's object detection framework. Training and evaluation jobs are going well, but in tensorboard I am only able to see 10 images for the evaluation job. Is there a way to increase this number to look at more images? I tried changing the config file:

eval_config: {
  num_examples: 1000
  max_evals: 50
}

eval_input_reader: {
  tf_record_input_reader {
    input_path: "xxx/eval.record"
  }
  label_map_path: "xxx/label_map.pbtxt"
  shuffle: false
  num_readers: 1
}

I thought the max_eval parameter would change this but it doesn't.

This is the command i'm running for the evaluation job:

python ../models/research/object_detection/eval.py \
    --logtostderr \
    --pipeline_config_path=xxx/ssd.config \
    --checkpoint_dir="xxx/train/" \
    --eval_dir="xxx/eval"

回答1:


It should be the num_visualizations parameter in your eval_config (cf. eval.proto code).




回答2:


I've been able to get this to work in Tensorboard 1.11.0 by editing the object_detection/protos/eval.proto file, then re-running protoc (see the Tensorflow docs). For example, this line in eval.proto would enable 100 examples (instead of the default 10):

optional uint32 num_visualizations = 1 [default=100];

This probably has an impact on system memory, browser performance, eval performance, etc.. so use with caution.




回答3:


Probably the easiest way is to add command line argument --samples_per_plugin

Full example

tensorboard --logdir . --samples_per_plugin=images=100

https://github.com/tensorflow/tensorboard/issues/1012



来源:https://stackoverflow.com/questions/50027635/show-more-images-in-tensorboard-tensorflow-object-detection

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