This directory contains tooling to map NeuroRace data. It is a prequisite that you have access to a directory containing such data.
NeuroRace's data packages usually contain a .yaml with metadata and a subfolder system like zed/left/image_raw_color/compressed, containing the cameras pictures.
The 2 functions this tooling contains are mapping NeuroRace data and augmenting the mapped data.
These functions have been split and can be executed separately to optimise runtimes.
The datamapper is designed to be deployed on a remote system and for a path containing one or more packages of NeuroRacer data. It will then look for the .yaml, containing the images metadata and the image data for all folders down the path.
The augmenter is then used to augment the mapped images.
-
Check if the config.py file contains the correct target path for the NeuroRace Data as
SOURCE_DIR. -
If 1. is true, use
python3 datamapper.pyto map the data. It will produce amapped.csvat the location you started datamapper from.
- Have you mapped the data?
- If 1. is true, move the the
mapped.csvfile to the directory containingaugmenter.py. - Check if
config.pycontains the path you want your augemented data to end at asTARGET_DIR. - In
config.py, adjust how to many pictures you want to fill the bins up to withFILL_UP_TO. - Use
python3 augmenter.pyto augment the data. It will be output to theTARGET_DIRpath you set and consist of all the images generated during the augmentation, along with a.yamlfile, mimicing the original.yaml. This.yamlfeatures the path of the augmented image along with metadata used during training of NeuroRace models.
After augmenting the data, there will be a numbers.csv in the folder you started augmenter.py from. It can be visualised using
python3 visualise.py
visualise.py might looking for columns that are falsely labeled or missing. Adjustments can be made fairly easily by changing column names in eithernumbers.csv or visualise.py .
Apart from that, the code has no known issues. Make sure not to end paths with / since os.path.join does not like that.
Questions? Contact me: hello@tobiaskolb.dev