Tensorflow object detection next steps

拟墨画扇 提交于 2019-12-04 12:58:26

Wow, a lot of questions to answer here.

1 .I think your config file is correct, usually the fields that need to be carefully configured are:

  • num_classes: the number of classes of your dataset
  • fine_tune_checkpoint: the checkpoint to start the training with if you adopt tansfer learning, this should be provided if from_detection_checkpoint is set true.
  • label_map_path: path to your label file, the number of classes should be equal to num_classes
  • input_path in both train_input_reader and eval_input_reader
  • num_examples in eval_config, this is your validation dataset size, e.g. the number of examples in your validation dataset.
  • num_steps: this is the total number of training steps to reach before the model stops training.

2 Yes, your training process is being saved, it is saved at train_dir (if you are using the older version api, but model_dir if you are using the latest version), the official description is here. You can use tensorbard to visualize your training process.

3 The output if of COCO evaluation format as this is the default evalution metric option. But you can try other evalution metrics by setting metrics_set : in eval_config in the config file, other options are available here. For coco metrics, specifically:

  • IoU is Intersection over Union, this defines how much your detection bounding box overlaps with your groundtruth box. This answer provides more details for you to understand how the precision is calculated on different IoUs.
  • maxDets is thresholds on max detections per image (see here for better discussion)
  • area, there are three categories of area, it depends the number of pixels the area takes, small, medium and large are all defined here.
  • As for negative precision for category 'large', I think this is because this is the default value if no detections are categorized as 'large' (But I cannot confirm this, you may refer to the official coco website http://cocodataset.org/#home)
  • The evaluation is performed on the whole validation dataset, so all images in your validation set.
  • This file provides more details on coco metrics

4 The training will stop once the total number of training step is reached to num_steps as set in your cofig file. In your case, every 15 minutes an evaluation session is performed. Also how often each evaluation is performed can also be configured in the config file.

5 Although you followed the tutorial above, but I suggest follow the official API documentation https://github.com/tensorflow/models/tree/master/research/object_detection.

PS: Indeed I can confirm the negative precision score is because of the absence of corresponding category. See reference in the cocoapi.

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