The following sections provide info for some important files
automatic_control.py
and manual_control.py
share the same code for lane extraction in lane_utils.py
.
automatic_control.py
is used for automatic data collectionmanual_control.py
is used for debugging and gathering map info where images are not saved
Lane labels are saved in the TuSimple format.
lane_config.py
specifies the row anchors used which can be changed to follow the CULane format.
map_info.py
contains the following info for most available towns in CARLA
- the max number of lanes (including curbs) expected for each road id
- bad road ids where there are unfixable issues with the lane labels
This info is used to ensure the labels saved have no error. If a town is not in map info, it will not be used for data collection.
To add a new map to the collection,
- Generate the map using
python manual_control.py -t {TownID} -m
- With the generated map as reference, use
manual_control.py
to drive around the town and add the required information inmap_info.py
using the same class structure as the other towns.
dynamic_weather.py
is used to control how the weather changes in the simulation. The most important parameter is
altitude
, the equation that determines how the time of day changes over time here.
Modify the sine function to change the range of time and ratio of day/night in the generated dataset.