Skip to content

huangchaoxing/Vision-based-steering-angle-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vision-based-steering-angle-prediction

PROJECT REPORT
Presentation slide
Semester project of ANU ENGN6528/ENGN4528(computer vision)

Background

In this project, we use an end to end two-stream CNN model to predict the steering angle of a self-driving car. We first train the model on the dataset which is collected by SullyChen in LA, USA and then test it on the dataset which is collected on the campus of the Australian National University, Canberra, Australia.

Dependency

Pytorch 1.0
torchvision
OpenCV(cv2)

Dataset

The dataset can be downloaded here

Method

The model takes the RGB information and temporal information as the inputs of the two stream respectively and finally output the steering angle, which is a regression probelm. The temporal information can be optical-flow or dynamic images.
The network architecture is shown below.Detalis can be referred to the technical report.
CNN model

Result

Driving on campus:

gif

Full DEMO video:

https://www.youtube.com/watch?v=7juEYI-gGKw&feature=youtu.be

Root mean square error of different model(in degree)

For the split of the datset, please refer to the report.

Model City Hill
single stream single RGB 19.04 23.89
single stream 3 x RGB 7.23 13.91
3 x RGB +1 x optical flow 7.10 10.92
3x RGB +2 x optical flow 6.09 9.73
3 x RGB +dynamic image of 3 frames 6.93 10.15
3 x RGB +dynamic image of 5 frames 5.99 11.51

Activation heatmap

hmp

Run the code

NOTE: The code shall be slightly modified accroding to your own directory

Pre-processing

Run the frame2flow.py to generate the frame.
You can test the ANU campus driving in the test/ANU_test file and run the test.py.
You will need to download the dataset here:https://drive.google.com/file/d/1Zr0wgDWOhRNm-C8eovcpUSzxLtQSKqBm/view?usp=sharing
Unzip the file and place the two files that contain frames and optical-flow in the same directory of the code.

About

Semester project of ANU ENGN6528(computer vision)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages