"num_examples:2000"在TensorFlow对象检测配置文件中的含义是什么?

mr4*_*r49 7 object-detection tensorflow

在TensorFlow对象检测的示例管道配置文件中,有以下代码段:

  eval_config: {
    num_examples: 2000
    # Note: The below line limits the evaluation process to 10 evaluations.
    # Remove the below line to evaluate indefinitely.
    max_evals: 10
  }
Run Code Online (Sandbox Code Playgroud)

"num_examples"是否表示每个评估运行使用相同的前2000个图像,或者它将测试集视为循环缓冲区并且每次使用不同的2000个图像?

Cip*_*agă 1

TL;DR循环缓冲区(如果足够num_epochs而没有)shuffle

我相信它可以与输入读取器配置“协作”。如果在 中eval_input_reader设置num_epochs为 1,那么它将处理输入队列中的前 2000 个图像(前提是 )shuffle = false,否则处理一些随机的 2000 个图像。如果您没有 2000 个图像,则可能会失败,因为队列已清空。

相关代码在这里这里