DEIM: DETR with Improved Matching for Fast Convergence
Copyright (c) 2024 The DEIM Authors. All Rights Reserved.
---------------------------------------------------------------------------------
Modified from D-FINE (https://github.com/Peterande/D-FINE)
Copyright (c) 2024 D-FINE authors. All Rights Reserved.
Applies Mixup augmentation to the batch if conditions are met.
Args:
images (torch.Tensor): Batch of images.
targets (list[dict]): List of target dictionaries corresponding to images.
Returns:
tuple: Updated images and targets