Applying Train-Time and Test-Time Image Augmentations
The previous chapter introduced the existing augmentation and transformation classes Detectron2 offers. This chapter introduces the steps to apply these existing classes to training. Additionally, Detectron2 offers many image augmentation classes. However, they all work on annotations from a single input at a time, while modern techniques may need to combine annotations from different inputs while creating custom augmentations. Therefore, this chapter also provides the foundation for Detectron2’s data loader component. Understanding this component helps explain how to apply existing image augmentations and modify existing codes to implement custom techniques that need to load data from different inputs. Finally, this chapter details the steps for applying image augmentations during test time to improve accuracy.
By the end of this chapter, you will be able to understand how Detectron2 loads its data, how to apply existing...