MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / main

Function main

eval/LANE_evaluation/lane2d/src/evaluate.cpp:107–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107int main(int argc, char **argv)
108{
109 // process params
110 string anno_dir = "";
111 string detect_dir = "/data/driving/eval_data/predict_label/";
112 string im_dir = "/data/driving/eval_data/img/";
113 string list_im_file = "/data/driving/eval_data/img/all.txt";
114 string output_folder = "./output";
115 string exp = "exp";
116
117 int width_lane = 30;
118 double iou_threshold = 0.3;
119 int im_width = 1920;
120 int im_height = 1280;
121 int oc;
122 bool show = true;
123 int frame = 1;
124 bool category_flag = false;
125 while ((oc = getopt(argc, argv, "ha:d:i:l:w:t:c:r:sf:o:k:")) != -1)
126 {
127 switch (oc)
128 {
129 case 'h':
130 help();
131 return 0;
132 case 'a':
133 anno_dir = optarg;
134 break;
135 case 'd':
136 detect_dir = optarg;
137 break;
138 case 'i':
139 im_dir = optarg;
140 break;
141 case 'l':
142 list_im_file = optarg;
143 break;
144 case 'w':
145 width_lane = atoi(optarg);
146 break;
147 case 't':
148 iou_threshold = atof(optarg);
149 break;
150 case 'c':
151 im_width = atoi(optarg);
152 break;
153 case 'r':
154 im_height = atoi(optarg);
155 break;
156 case 's':
157 show = true;
158 break;
159 case 'f':
160 frame = atoi(optarg);
161 break;
162 case 'o':
163 output_folder = optarg;
164 break;

Callers

nothing calls this directly

Calls 13

helpFunction · 0.85
read_lane_fileFunction · 0.85
visualizeFunction · 0.85
resizeMethod · 0.80
count_im_pairMethod · 0.80
setTPMethod · 0.80
setFPMethod · 0.80
setFNMethod · 0.80
get_precisionMethod · 0.80
get_recallMethod · 0.80
getTPMethod · 0.80
getFPMethod · 0.80

Tested by

no test coverage detected