Reader small image

You're reading from  Hands-On Computer Vision with Detectron2

Product typeBook
Published inApr 2023
Reading LevelBeginner
PublisherPackt
ISBN-139781800561625
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Van Vung Pham
Van Vung Pham
author image
Van Vung Pham

Van Vung Pham is a passionate research scientist in machine learning, deep learning, data science, and data visualization. He has years of experience and numerous publications in these areas. He is currently working on projects that use deep learning to predict road damage from pictures or videos taken from roads. One of the projects uses Detectron2 and Faster R-CNN to predict and classify road damage and achieve state-of-the-art results for this task. Dr. Pham obtained his PhD from the Computer Science Department, at Texas Tech University, Lubbock, Texas, USA. He is currently an assistant professor at the Computer Science Department, Sam Houston State University, Huntsville, Texas, USA.
Read more about Van Vung Pham

Right arrow

Region Proposal Network

Faster R-CNN is called a two-stage technique. The first stage proposes the regions (bounding boxes) and whether an object falls within that region (objectness). Notably, at this stage, it only predicts whether an object is in the proposed box and does not classify it into a specific class. The second stage then continues to fine-tune the proposed regions and classify objects in the proposed bounding boxes into particular labels. The RPN performs the first stage. This section inspects the details of the RPN and its related components in Faster R-CNN architecture, implemented in Detectron2, as in Figure 4.6.

Figure 4.6: The Region Proposal Network and its components

Figure 4.6: The Region Proposal Network and its components

Continuing from the previous code example, the following code snippet displays the RPN (proposal_generator):

rpn = predictor.model.proposal_generator
type(rpn)

This snippet should print out the following:

detectron2.modeling.proposal_generator.rpn.RPN

The following...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Computer Vision with Detectron2
Published in: Apr 2023Publisher: PacktISBN-13: 9781800561625

Author (1)

author image
Van Vung Pham

Van Vung Pham is a passionate research scientist in machine learning, deep learning, data science, and data visualization. He has years of experience and numerous publications in these areas. He is currently working on projects that use deep learning to predict road damage from pictures or videos taken from roads. One of the projects uses Detectron2 and Faster R-CNN to predict and classify road damage and achieve state-of-the-art results for this task. Dr. Pham obtained his PhD from the Computer Science Department, at Texas Tech University, Lubbock, Texas, USA. He is currently an assistant professor at the Computer Science Department, Sam Houston State University, Huntsville, Texas, USA.
Read more about Van Vung Pham