def __call__(self, results):
    'Call function to augment common fields in results.\n\n        Args:\n            results (dict): Result dict contains the data to augment.\n\n        Returns:\n            dict: The result dict contains the data that is augmented with                 different scales and flips.\n        '
    aug_data = []
    flip_aug = ([True] if self.flip else [False])
    pcd_horizontal_flip_aug = ([False, True] if (self.flip and self.pcd_horizontal_flip) else [False])
    pcd_vertical_flip_aug = ([False, True] if (self.flip and self.pcd_vertical_flip) else [False])
    for scale in self.img_scale:
        for pts_scale_ratio in self.pts_scale_ratio:
            for flip in flip_aug:
                for pcd_horizontal_flip in pcd_horizontal_flip_aug:
                    for pcd_vertical_flip in pcd_vertical_flip_aug:
                        for direction in self.flip_direction:
                            _results = deepcopy(results)
                            _results['scale'] = scale
                            _results['flip'] = flip
                            _results['pcd_scale_factor'] = pts_scale_ratio
                            _results['flip_direction'] = direction
                            _results['pcd_horizontal_flip'] = pcd_horizontal_flip
                            _results['pcd_vertical_flip'] = pcd_vertical_flip
                            data = self.transforms(_results)
                            aug_data.append(data)
    aug_data_dict = {key: [] for key in aug_data[0]}
    for data in aug_data:
        for (key, val) in data.items():
            aug_data_dict[key].append(val)
    return aug_data_dict
Call function to augment common fields in results.

Args:
    results (dict): Result dict contains the data to augment.

Returns:
    dict: The result dict contains the data that is augmented with                 different scales and flips.
def __call__(self, results):
    'Call function to augment common fields in results.\n\n        Args:\n            results (dict): Result dict contains the data to augment.\n\n        Returns:\n            dict: The result dict contains the data that is augmented with                 different scales and flips.\n        '
    aug_data = []
    flip_aug = ([True] if self.flip else [False])
    pcd_horizontal_flip_aug = ([False, True] if (self.flip and self.pcd_horizontal_flip) else [False])
    pcd_vertical_flip_aug = ([False, True] if (self.flip and self.pcd_vertical_flip) else [False])
    for scale in self.img_scale:
        for pts_scale_ratio in self.pts_scale_ratio:
            for flip in flip_aug:
                for pcd_horizontal_flip in pcd_horizontal_flip_aug:
                    for pcd_vertical_flip in pcd_vertical_flip_aug:
                        for direction in self.flip_direction:
                            _results = deepcopy(results)
                            _results['scale'] = scale
                            _results['flip'] = flip
                            _results['pcd_scale_factor'] = pts_scale_ratio
                            _results['flip_direction'] = direction
                            _results['pcd_horizontal_flip'] = pcd_horizontal_flip
                            _results['pcd_vertical_flip'] = pcd_vertical_flip
                            data = self.transforms(_results)
                            aug_data.append(data)
    aug_data_dict = {key: [] for key in aug_data[0]}
    for data in aug_data:
        for (key, val) in data.items():
            aug_data_dict[key].append(val)
    return aug_data_dict