Practical overview
When it fits
Use it when you need a Caffe-based starting point for traffic-light image classification and can provide a compatible Caffe environment and, for training, your own dataset.
Who it is for
- Developers building traffic-light recognition into dashcam image-processing workflows.
- Researchers or practitioners evaluating a Caffe model ensemble on traffic-light images.
- Model trainers with their own labeled traffic-light image data.
Documented uses
- Run the provided classifier and weighted-average ensemble evaluation on dashcam images.
- Use the included Caffe training configurations to train or fine-tune a classifier with separately supplied data.
Requirements & limits
- Requires Caffe with Python bindings for the documented workflow.
- The repository provides three weight files used together as an ensemble.
- Training images and labels are not included; the README documents LMDB input and resizing images to 256 × 256.
- Other inference frameworks are not documented.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Convert traffic-light images to resized LMDB data
Prepare image data in LMDB format at 256×256 for model training.
Before you start
- Caffe with Python bindings and the
convert_imagesettool. - Input images in an image directory and a labels file.
Steps
Run Caffe's
convert_imagesetwith--resize_height=256,--resize_width=256, and--shuffle.Provide the image directory, labels file, and destination LMDB path as the command's positional arguments.
Expected outcome
An LMDB dataset containing shuffled images resized to 256×256.
Guide limitations
- Training data is not included in the repository.
- The documented command uses example paths under
~/nexar/; replace them with paths to your own images, labels, and output location.
Run the traffic-light classifier from the testing notebooks
Use the provided testing notebooks to run the model and perform a weighted average.
Before you start
- Caffe with Python bindings.
- The model files in
/model, including the deploy prototxt and all three weights files. - The Jupyter notebooks in
/testing.
Steps
Open a notebook from
/testing.Use the notebook to run the model and perform the weighted average across the model ensemble.
Expected outcome
The notebook runs the classifier and performs weighted averaging of the ensemble outputs.
Guide limitations
- The README does not specify notebook names, input-image preparation, or detailed execution steps.
- The three weights files are used together as an ensemble.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 13 November 2026
- Original website title
- davidbrai/deep-learning-traffic-lights · Official homepage title · retained in its source language

