You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tools requires OpenCV C++. Please follow [here](https://docs.opencv.org/master/d7/d9f/tutorial_linux_install.html) to install OpenCV C++. ***When you build OpenCV, remove the paths of anaconda from PATH or it will be failed.***
29
+
```
30
+
# First you need to install OpenCV C++.
31
+
# After installation, make a soft link of OpenCV include path.
We provide three kinds of complie pipelines to build the evaluation tool of CULane.
36
+
37
+
Option 1:
38
+
39
+
```
40
+
cd evaluation/culane
41
+
make
42
+
```
43
+
44
+
Option 2:
45
+
```
46
+
cd evaluation/culane
47
+
mkdir build && cd build
48
+
cmake ..
49
+
make
50
+
mv culane_evaluator ../evaluate
51
+
```
52
+
53
+
For Windows user:
54
+
```
55
+
mkdir build-vs2017
56
+
cd build-vs2017
57
+
cmake .. -G "Visual Studio 15 2017 Win64"
58
+
cmake --build . --config Release
59
+
# or, open the "xxx.sln" file by Visual Studio and click build button
60
+
move culane_evaluator ../evaluate
61
+
```
62
+
63
+
64
+
5. Data preparation
65
+
66
+
Download [CULane](https://xingangpan.github.io/projects/CULane.html) and [Tusimple](https://github.com/TuSimple/tusimple-benchmark/issues/3). Then extract them to `$CULANEROOT` and `$TUSIMPLEROOT`. The directory arrangement of Tusimple should look like:
67
+
```
68
+
$TUSIMPLEROOT
69
+
|──clips
70
+
|──label_data_0313.json
71
+
|──label_data_0531.json
72
+
|──label_data_0601.json
73
+
|──test_tasks_0627.json
74
+
|──test_label.json
75
+
|──readme.md
76
+
```
77
+
The The directory arrangement of CULane should look like:
78
+
```
79
+
$CULANEROOT
80
+
|──driver_100_30frame
81
+
|──driver_161_90frame
82
+
|──driver_182_30frame
83
+
|──driver_193_90frame
84
+
|──driver_23_30frame
85
+
|──driver_37_30frame
86
+
|──laneseg_label_w16
87
+
|──list
88
+
```
89
+
90
+
For Tusimple, the segmentation annotation is not provided, hence we need to generate segmentation from the json annotation.
d. Install CULane evaluation tools. This tools requires OpenCV C++. Please follow [here](https://docs.opencv.org/master/d7/d9f/tutorial_linux_install.html) to install OpenCV C++. ***When you build OpenCV, remove the paths of anaconda from PATH or it will be failed.***
42
-
43
-
```
44
-
# First you need to install OpenCV C++.
45
-
# After installation, make a soft link of OpenCV include path.
Download [CULane](https://xingangpan.github.io/projects/CULane.html) and [Tusimple](https://github.com/TuSimple/tusimple-benchmark/issues/3). Then extract them to `$CULANEROOT` and `$TUSIMPLEROOT`. For Tusimple, the segmentation annotation is not provided, hence we need to generate segmentation from the json annotation.
# If there is no pretrained torchvision model, multi-gpu training may result in multiple downloading. You can first download the corresponding models manually, and then restart the multi-gpu training.
If there is no pretrained torchvision model, multi-gpu training may result in multiple downloading. You can first download the corresponding models manually, and then restart the multi-gpu training.
82
38
39
+
Since our code has auto backup function which will copy all codes to the work_dir accordind to the gitignore. Additional temp files will also be copied and the training will be blocked if it is not filtered by gitignore. So you should keep the working directory clean.
83
40
***
84
41
85
42
Besides config style settings, we also support command line style one. You can override a setting like
@@ -107,6 +64,7 @@ We provide two trained Res-18 models on CULane and Tusimple.
107
64
For evaluation, run
108
65
```
109
66
mkdir tmp
67
+
# This a bad example, you should put the temp files outside the project.
0 commit comments