eval.proto 3.83 KB
Newer Older
1
2
3
4
5
syntax = "proto2";

package object_detection.protos;

// Message for configuring DetectionModel evaluation jobs (eval.py).
6
// Next id - 30
7
message EvalConfig {
8
  optional uint32 batch_size = 25 [default = 1];
9
  // Number of visualization images to generate.
10
  optional uint32 num_visualizations = 1 [default = 10];
11
12

  // Number of examples to process of evaluation.
13
  optional uint32 num_examples = 2 [default = 5000, deprecated = true];
14
15

  // How often to run evaluation.
16
  optional uint32 eval_interval_secs = 3 [default = 300];
17
18

  // Maximum number of times to run evaluation. If set to 0, will run forever.
19
  optional uint32 max_evals = 4 [default = 0, deprecated = true];
20
21

  // Whether the TensorFlow graph used for evaluation should be saved to disk.
22
  optional bool save_graph = 5 [default = false];
23
24
25

  // Path to directory to store visualizations in. If empty, visualization
  // images are not exported (only shown on Tensorboard).
26
  optional string visualization_export_dir = 6 [default = ""];
27
28

  // BNS name of the TensorFlow master.
29
  optional string eval_master = 7 [default = ""];
30

31
32
  // Type of metrics to use for evaluation.
  repeated string metrics_set = 8;
33
34

  // Path to export detections to COCO compatible JSON format.
35
  optional string export_path = 9 [default =''];
36
37
38

  // Option to not read groundtruth labels and only export detections to
  // COCO-compatible JSON file.
39
  optional bool ignore_groundtruth = 10 [default = false];
40
41

  // Use exponential moving averages of variables for evaluation.
42
43
  // TODO(rathodv): When this is false make sure the model is constructed
  // without moving averages in restore_fn.
44
  optional bool use_moving_averages = 11 [default = false];
45
46

  // Whether to evaluate instance masks.
Vivek Rathod's avatar
Vivek Rathod committed
47
48
  // Note that since there is no evaluation code currently for instance
  // segmenation this option is unused.
49
  optional bool eval_instance_masks = 12 [default = false];
50
51

  // Minimum score threshold for a detected object box to be visualized
52
  optional float min_score_threshold = 13 [default = 0.5];
53
54

  // Maximum number of detections to visualize
55
  optional int32 max_num_boxes_to_visualize = 14 [default = 20];
56
57
58
59

  // When drawing a single detection, each label is by default visualized as
  // <label name> : <label score>. One can skip the name or/and score using the
  // following fields:
60
61
  optional bool skip_scores = 15 [default = false];
  optional bool skip_labels = 16 [default = false];
62
63
64

  // Whether to show groundtruth boxes in addition to detected boxes in
  // visualizations.
65
  optional bool visualize_groundtruth_boxes = 17 [default = false];
66
67

  // Box color for visualizing groundtruth boxes.
68
  optional string groundtruth_box_visualization_color = 18 [default = "black"];
69
70
71

  // Whether to keep image identifier in filename when exported to
  // visualization_export_dir.
72
  optional bool keep_image_id_for_visualization_export = 19 [default = false];
73
74
75

  // Whether to retain original images (i.e. not pre-processed) in the tensor
  // dictionary, so that they can be displayed in Tensorboard.
76
  optional bool retain_original_images = 23 [default = true];
77
78

  // If True, additionally include per-category metrics.
79
  optional bool include_metrics_per_category = 24 [default = false];
80
81
82
83

  // Recall range within which precision should be computed.
  optional float recall_lower_bound = 26 [default = 0.0];
  optional float recall_upper_bound = 27 [default = 1.0];
84
85
86
87
88

  // Whether to retain additional channels (i.e. not pre-processed) in the
  // tensor dictionary, so that they can be displayed in Tensorboard.
  optional bool retain_original_image_additional_channels = 28
      [default = false];
89
90
91
92
93

  // When this flag is set, images are not resized during evaluation.
  // When this flag is not set (default case), image are resized according
  // to the image_resizer config in the model during evaluation.
  optional bool force_no_resize = 29 [default=false];
94
}