了解检测API配置文件

时间:2018-07-23 13:03:51

标签: tensorflow object-detection coco

我想使用“ coco_detection_metrics”。我在论坛上读到我应该在eval_config中添加 metrics_set:“ coco_detection_metrics”

eval_config: {
  num_examples:2000
  max_evals: 10
  eval_interval_secs: 5
  metrics_set: "coco_detection_metrics"
}

但是每种型号都有两个配置文件,我在两个文件中都看到“ eval_config”,例如“ ssd_mobilenet_v1_coco”:

1- ssd_mobilenet_v1_coco.config

(located in: **samples/configs/**)

2- ssd_mobilenet_v1_coco_2018_01_28 / pipeline.config

(located in: **ssd_mobilenet_v1_coco_2018_01_28.tar.gz**)

应该修改哪个?这两个文件有什么区别?在培训或评估中将使用哪一个?

谢谢!

1 个答案:

答案 0 :(得分:0)

修改您传递给train.py脚本的标记:

python3 object_detection/train.py --logtostderr --pipeline_config_path=/path/to/your/config_file.config --train_dir=/your/train/dir

因此,可以在文件系统上的任何位置创建配置文件,根据需要对其进行修改,然后将其传递到火车或评估脚本,如上所示。