ANYVERSE

Synthetic data to develop a trustworthy autonomous driving system | Chapter 3

SHARE

CHAPTER 3

Author
Hamid Serry, WMG Graduate Trainee, University of Warwick

Last week, three categories of machine learning algorithms were selected for further analysis: one-stage detectors, two-stage detectors, and transformers. Each implementation comes with its own set of pros and cons, relating to accuracy, speed, and use cases.

Two-Stage Detectors

Two-stage detectors split the image detection process into two tasks: proposing areas of the image which are of significant interest using a Region Proposal Network (RPN); classification and applying bounding boxes using Region of Interest (RoI) pooling [1].

A well-renowned example of a two-stage algorithm is the Region-based Convolutional Neural Network (R-CNN), which employs a selective search algorithm to narrow down the region to just 2000 proposals, as opposed to several hundred thousand.

This then leads onto the first stage which is the extraction of Regions of Interest (ROI) within the input image, which are any areas that could potentially be defined and labeled in the next part, the second stage, the classification of these regions [2].

This would take an enormous amount of training time as each image or frame would require 2000 region proposals to be classified and labeled, on average taking around 84 hours to train the model using the PASCAL VOC 2007 dataset on an Nvidia K40 GPU [3]. At this stage, the model was only capable of being run on still images.

Faster R-CNN was developed over a year later, which addressed a lot of these issues. It was part of a two-stage improvement, with Fast R-CNN having been released 3 months prior. It managed to maintain a mean Average Precision (mAP) of 73.2% using the PASCAL VOC 2007 dataset on a TITAN X GPU while dramatically reducing processing rates, resulting in an improvement to 7 fps [3][4], a step closer to real-time detection.

One-Stage Detectors

One (or single) stage detectors instead return the full model’s output with just one stage, using a CNN to both extract RoI and apply bounding boxes at the same time.

A popular One Stage Detector is YOLO (You 2 Only Look Once), as per the abbreviation, sweeps the image through the network in a single run. By cutting
down the bounding boxes around RoI to just 100 boxes, it manages to vastly improve processing time compared to R-CNN and Faster R-CNN; achieving a processing rate of 45 fps.

This however comes at a cost to its accuracy, with YOLOv1 which received a score of around 63.3 mAP with the same PASCAL VOC 2007 dataset on a TITAN X GPU [3][5]. YOLOv2 achieved largely impressive results of 78.6% mAP and 40fps as compared to Faster R-CNN with a ResNet backbone of 76.4% mAP and 5fp [3].

Transformer Detectors

Lastly, Transformer algorithms work slightly differently, using a ranking algorithm to apply a weighting value to each input, which allows them to prioritise how they handle the data, and therefore are able to determine their own order of processing the inputs [6].

They are commonly used within natural language applications, such as detecting positive and negative speech from comments, or voice-to-text translations, but has also been applied to object detection, with comparisons made to Faster R-CNN.

A comparison was made with the same training parameters using a Faster R-CNN with a ResNet-101 backbone against a Detector Transformer (DETR) also with a RestNet-101 backbone, where it achieved an output of 12 fps compared to Faster R-CNN’s 16 fps under the same conditions [7].

Conclusion

As it stands, Faster R-CNN offers a suitable compromise between a slower two-stage detector that has a larger accuracy and a one-stage detector that is much faster but at a price of the average mean precision. However, in the future, we might consider investigating more deep neural network architectures.

References

[1] K. He, G. Gkioxari, P. Dollr, and R. Girshick, “Mask r-cnn,” in 2017 IEEE International Conference on Computer Vision (ICCV), pp. 2980–2988, Oct 2017

[2] L. Du, R. Zhang and X. Wang, “Overview of two-stage object detection algorithms”, Journal of Physics: Conference Series, vol. 1544, no. 1, p. 012033, 2020. Available: 10.1088/1742-6596/1544/1/012033

[3] L. Jiao et al., “A Survey of Deep Learning-Based Object Detection”, IEEE Access, vol. 7, pp. 128837- 128868, 2019. Available: 10.1109/access.2019.2939201
[4] S. Ren, K. He, R. Girshick and J. Sun, “Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks”, IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 39, no. 6, pp. 1137-1149, 2017. Available: 10.1109/tpami.2016.2577031.
[7] N. Carion, F. Massa, G. Synnaeve, et. Al, “End-to-End Object Detection with Transformers” In European conference on computer vision (pp. 213-229). Springer, Cham. 2020

Read more >>>

Looking to start your Synthetic Data journey or need help with your current project? We'd love to know more.

Looking for the right Synthetic Data to speed up your system? Please, enter the Anyverse now

Client Story

Would you like to know how Cron AI has improved LiDAR simulation accuracy with physically correct synthetic data?

Let's talk about synthetic data!

[contact-form-7 404 "Not Found"]