code: def merge_aug_scores(aug_scores):
      """Merge augmented bbox scores."""
      if isinstance(aug_scores[0], torch.Tensor):
          return torch.mean(torch.stack(aug_scores), dim=0)
      else:
          return np.mean(aug_scores, axis=0)
  
file_path: insightface/detection/scrfd/mmdet/core/post_processing/merge_augs.py
imports: import numpy
  import torch
  from mmcv.ops import nms
  from ..bbox import bbox_mapping_back
label_desc: Use image node_id 3 for calling a global function with example usage: merge_aug_scores(aug_scores) and returns: torch, np