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

The Detectron2 data loader

Applying augmentations in Detectron2 can be straightforward and complicated at the same time. It is relatively easy to use the declarative approach and apply existing transformations and augmentations provided by Detectron2, which should meet the most common needs. However, adding custom augmentations that require multiple data samples (e.g., MixUp and Mosaic) is a little complicated. This section describes how Detectron2 loads data and how to incorporate existing and custom data augmentations into training Detectron2 models. Figure 9.1 illustrates the steps and main components of the Detectron2 data loading system.

Figure 9.1: Loading data and data augmentations in Detectron2

Figure 9.1: Loading data and data augmentations in Detectron2

There are classes for Dataset, Sampler, Mapper, and Loader. The Dataset component normally stores a list of data items in JSON format. The Sampler component helps to randomly select one data item (dataset_dict) from the dataset. The selected data item has...

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